Documentation
¶
Index ¶
- type Client
- func (c *Client) NodeUploadCustomCertificate(node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)
- func (c *Client) NodeUploadCustomCertificateWithContext(ctx context.Context, node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type CustomCertificate
- type NodeUploadCustomCertificateRequest
- type NodeUploadCustomCertificateResponse
- type Options
- type OptionsFunc
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 (*Client) NodeUploadCustomCertificate ¶
func (c *Client) NodeUploadCustomCertificate(node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)
func (*Client) NodeUploadCustomCertificateWithContext ¶
func (c *Client) NodeUploadCustomCertificateWithContext(ctx context.Context, node string, req *NodeUploadCustomCertificateRequest) (*NodeUploadCustomCertificateResponse, error)
type CustomCertificate ¶
type NodeUploadCustomCertificateRequest ¶
type NodeUploadCustomCertificateRequest CustomCertificate
type NodeUploadCustomCertificateResponse ¶
type NodeUploadCustomCertificateResponse struct {
Data *struct {
FileName string `json:"filename,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
Subject string `json:"subject,omitempty"`
Issuer string `json:"issuer,omitempty"`
SAN []string `json:"san,omitempty"`
NotAfter int64 `json:"notafter,omitempty"`
NotBefore int64 `json:"notbefore,omitempty"`
} `json:"data,omitempty"`
}
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithApiToken ¶
func WithApiToken(tokenId string, tokenSecret string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.