Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, req CreateRequest) (string, error)
- func (c *Client) Delete(ctx context.Context, req DeleteRequest) (string, error)
- func (c *Client) Find(ctx context.Context, req FindRequest) (FindResponse, error)
- func (c *Client) Index(ctx context.Context) ([]map[string]interface{}, error)
- func (c *Client) Update(ctx context.Context, req UpdateRequest) (string, error)
- type CreateRequest
- type DeleteRequest
- type FindRequest
- type FindResponse
- type HTTPClient
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req FindRequest) (FindResponse, error)
Find Return existing ACME account information.
type CreateRequest ¶
type CreateRequest struct { Contact string `url:"contact" json:"contact"` // Contact email addresses. // The following parameters are optional Directory *string `url:"directory,omitempty" json:"directory,omitempty"` // URL of ACME CA directory endpoint. Name *string `url:"name,omitempty" json:"name,omitempty"` // ACME account config file name. TosUrl *string `url:"tos_url,omitempty" json:"tos_url,omitempty"` // URL of CA TermsOfService - setting this indicates agreement. }
type DeleteRequest ¶
type DeleteRequest struct { // The following parameters are optional Name *string `url:"name,omitempty" json:"name,omitempty"` // ACME account config file name. }
type FindRequest ¶
type FindRequest struct { // The following parameters are optional Name *string `url:"name,omitempty" json:"name,omitempty"` // ACME account config file name. }
type FindResponse ¶
type FindResponse struct { // The following parameters are optional Account *map[string]interface{} `url:"account,omitempty" json:"account,omitempty"` Directory *string `url:"directory,omitempty" json:"directory,omitempty"` // URL of ACME CA directory endpoint. Location *string `url:"location,omitempty" json:"location,omitempty"` Tos *string `url:"tos,omitempty" json:"tos,omitempty"` }
type HTTPClient ¶
type UpdateRequest ¶
Click to show internal directories.
Click to hide internal directories.