Documentation
¶
Index ¶
- type Client
- func (c *Client) CustomCertificateCreate(req *CustomCertificateCreateRequest) (*CustomCertificateCreateResponse, error)
- func (c *Client) CustomCertificateCreateWithContext(ctx context.Context, req *CustomCertificateCreateRequest) (*CustomCertificateCreateResponse, error)
- func (c *Client) CustomCertificateEdit(req *CustomCertificateEditRequest) (*CustomCertificateEditResponse, error)
- func (c *Client) CustomCertificateEditWithContext(ctx context.Context, req *CustomCertificateEditRequest) (*CustomCertificateEditResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type CustomCertificate
- type CustomCertificateCreateRequest
- type CustomCertificateCreateResponse
- type CustomCertificateEditRequest
- type CustomCertificateEditResponse
- type GeoRestriction
- 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 NewClient ¶
func NewClient(optFns ...OptionsFunc) (*Client, error)
func (*Client) CustomCertificateCreate ¶
func (c *Client) CustomCertificateCreate(req *CustomCertificateCreateRequest) (*CustomCertificateCreateResponse, error)
func (*Client) CustomCertificateCreateWithContext ¶
func (c *Client) CustomCertificateCreateWithContext(ctx context.Context, req *CustomCertificateCreateRequest) (*CustomCertificateCreateResponse, error)
func (*Client) CustomCertificateEdit ¶
func (c *Client) CustomCertificateEdit(req *CustomCertificateEditRequest) (*CustomCertificateEditResponse, error)
func (*Client) CustomCertificateEditWithContext ¶
func (c *Client) CustomCertificateEditWithContext(ctx context.Context, req *CustomCertificateEditRequest) (*CustomCertificateEditResponse, error)
type CustomCertificate ¶
type CustomCertificate struct {
ID string `json:"id"`
ZoneID string `json:"zone_id"`
BundleMethod string `json:"bundle_method"`
CustomCsrID string `json:"custom_csr_id"`
GeoRestrictions []GeoRestriction `json:"geo_restrictions"`
Hosts []string `json:"hosts"`
Issuer string `json:"issuer"`
PolicyRestrictions string `json:"policy_restrictions"`
Priority float64 `json:"priority"`
Signature string `json:"signature"`
Status string `json:"status"`
ExpiresOn string `json:"expires_on"`
UploadedOn string `json:"uploaded_on"`
ModifiedOn string `json:"modified_on"`
}
type CustomCertificateCreateRequest ¶
type CustomCertificateCreateRequest struct {
ZoneId string `json:"-"`
CustomCsrId *string `json:"custom_csr_id,omitempty"`
Certificate *string `json:"certificate,omitempty"`
PrivateKey *string `json:"private_key,omitempty"`
BundleMethod *string `json:"bundle_method,omitempty"`
Type *string `json:"type,omitempty"`
Deploy *string `json:"deploy,omitempty"`
Policy *string `json:"policy,omitempty"`
GeoRestrictions []*GeoRestriction `json:"geo_restrictions,omitempty"`
}
type CustomCertificateCreateResponse ¶
type CustomCertificateCreateResponse struct {
Result *CustomCertificate `json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*CustomCertificateCreateResponse) GetAPIError ¶
func (r *CustomCertificateCreateResponse) GetAPIError() error
func (*CustomCertificateCreateResponse) GetSuccess ¶
func (r *CustomCertificateCreateResponse) GetSuccess() bool
type CustomCertificateEditRequest ¶
type CustomCertificateEditRequest struct {
ZoneId string `json:"-"`
CertificateId string `json:"-"`
CustomCsrId *string `json:"custom_csr_id,omitempty"`
Certificate *string `json:"certificate,omitempty"`
PrivateKey *string `json:"private_key,omitempty"`
BundleMethod *string `json:"bundle_method,omitempty"`
Deploy *string `json:"deploy,omitempty"`
Policy *string `json:"policy,omitempty"`
GeoRestrictions []*GeoRestriction `json:"geo_restrictions,omitempty"`
}
type CustomCertificateEditResponse ¶
type CustomCertificateEditResponse struct {
Result *CustomCertificate `json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*CustomCertificateEditResponse) GetAPIError ¶
func (r *CustomCertificateEditResponse) GetAPIError() error
func (*CustomCertificateEditResponse) GetSuccess ¶
func (r *CustomCertificateEditResponse) GetSuccess() bool
type GeoRestriction ¶
type GeoRestriction struct {
Label string `json:"label"`
}
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithApiToken ¶
func WithApiToken(apiToken string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.