Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
- func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
- func (c *Client) Index(ctx context.Context) (*IndexResponse, error)
- func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type FindRequest
- type FindResponse
- type HTTPClient
- type IndexResponse
- type UpdateRequest
- type UpdateResponse
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) Create ¶
func (c *Client) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error)
Create Register a new ACME account with CA.
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
Delete Deactivate existing ACME account at CA.
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
Find Return existing ACME account information.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context) (*IndexResponse, error)
Index ACMEAccount index.
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
Update Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh.
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 CreateResponse ¶
type CreateResponse string
type DeleteRequest ¶
type DeleteRequest map[string]interface{}
type DeleteResponse ¶
type DeleteResponse string
type FindRequest ¶
type FindRequest map[string]interface{}
type FindResponse ¶
type FindResponse map[string]interface{}
type HTTPClient ¶
type IndexResponse ¶
type IndexResponse []*map[string]interface{}
type UpdateRequest ¶
type UpdateRequest map[string]interface{}
type UpdateResponse ¶
type UpdateResponse string
Click to show internal directories.
Click to hide internal directories.