Documentation
¶
Index ¶
- type Certificate
- type Client
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) UpsertCertificate(certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)
- func (c *Client) UpsertCertificateWithContext(ctx context.Context, certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)
- type Options
- type OptionsFunc
- type UpsertCertificateRequest
- type UpsertCertificateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct {
Id *string `json:"id,omitempty"`
Cert *string `json:"cert,omitempty"`
CertAlt *string `json:"cert_alt,omitempty"`
Key *string `json:"key,omitempty"`
KeyAlt *string `json:"key_alt,omitempty"`
SNIs []*string `json:"snis,omitempty"`
Tags []*string `json:"tags,omitempty"`
CreatedAt *string `json:"created_at,omitempty"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) UpsertCertificate ¶
func (c *Client) UpsertCertificate(certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)
func (*Client) UpsertCertificateWithContext ¶
func (c *Client) UpsertCertificateWithContext(ctx context.Context, certificateId string, req *UpsertCertificateRequest) (*UpsertCertificateResponse, error)
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithApiToken ¶
func WithApiToken(apiToken string) OptionsFunc
func WithWorkspace ¶
func WithWorkspace(workspace string) OptionsFunc
type UpsertCertificateRequest ¶
type UpsertCertificateRequest Certificate
type UpsertCertificateResponse ¶
type UpsertCertificateResponse Certificate
Click to show internal directories.
Click to hide internal directories.