 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Client
- func (c *Client) Index(ctx context.Context, req IndexRequest) ([]map[string]interface{}, error)
- func (c *Client) NewCertificate(ctx context.Context, req NewCertificateRequest) (string, error)
- func (c *Client) RenewCertificate(ctx context.Context, req RenewCertificateRequest) (string, error)
- func (c *Client) RevokeCertificate(ctx context.Context, req RevokeCertificateRequest) (string, error)
 
- type HTTPClient
- type IndexRequest
- type NewCertificateRequest
- type RenewCertificateRequest
- type RevokeCertificateRequest
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) NewCertificate ¶
NewCertificate Order a new certificate from ACME-compatible CA.
func (*Client) RenewCertificate ¶
RenewCertificate Renew existing certificate from CA.
func (*Client) RevokeCertificate ¶
func (c *Client) RevokeCertificate(ctx context.Context, req RevokeCertificateRequest) (string, error)
RevokeCertificate Revoke existing certificate from CA.
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
}
    type NewCertificateRequest ¶
type NewCertificateRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
	// The following parameters are optional
	Force *util.SpecialBool `url:"force,omitempty" json:"force,omitempty"` // Overwrite existing custom certificate.
}
    type RenewCertificateRequest ¶
type RenewCertificateRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
	// The following parameters are optional
	Force *util.SpecialBool `url:"force,omitempty" json:"force,omitempty"` // Force renewal even if expiry is more than 30 days away.
}
    type RevokeCertificateRequest ¶
type RevokeCertificateRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
}
     Click to show internal directories. 
   Click to hide internal directories.