Documentation
¶
Index ¶
- type CertDetail
- type CertRecord
- type Client
- func (c *Client) CreateCert(req *CreateCertRequest) (*CreateCertResponse, error)
- func (c *Client) CreateCertWithContext(ctx context.Context, req *CreateCertRequest) (*CreateCertResponse, error)
- func (c *Client) GetDomainConfig(req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)
- func (c *Client) GetDomainConfigWithContext(ctx context.Context, req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)
- func (c *Client) ListCerts(req *ListCertsRequest) (*ListCertsResponse, error)
- func (c *Client) ListCertsWithContext(ctx context.Context, req *ListCertsRequest) (*ListCertsResponse, error)
- func (c *Client) ModifyDomainConfig(req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)
- func (c *Client) ModifyDomainConfigWithContext(ctx context.Context, req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)
- func (c *Client) QueryCert(req *QueryCertRequest) (*QueryCertResponse, error)
- func (c *Client) QueryCertWithContext(ctx context.Context, req *QueryCertRequest) (*QueryCertResponse, error)
- func (c *Client) QueryDomains(req *QueryDomainsRequest) (*QueryDomainsResponse, error)
- func (c *Client) QueryDomainsWithContext(ctx context.Context, req *QueryDomainsRequest) (*QueryDomainsResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type CreateCertRequest
- type CreateCertResponse
- type DomainHttpsBasicConfig
- type DomainOriginConfig
- type DomainOriginConfigWithWeight
- type DomainRecord
- type GetDomainConfigRequest
- type GetDomainConfigResponse
- type ListCertsRequest
- type ListCertsResponse
- type ModifyDomainConfigRequest
- type ModifyDomainConfigResponse
- type QueryCertRequest
- type QueryCertResponse
- type QueryDomainsRequest
- type QueryDomainsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertDetail ¶
type CertDetail struct {
CertRecord
Certs string `json:"certs"`
Key string `json:"key"`
}
type CertRecord ¶
type CertRecord struct {
Id int64 `json:"id"`
Name string `json:"name"`
CN string `json:"cn"`
SANs []string `json:"sans"`
UsageMode int32 `json:"usage_mode"`
State int32 `json:"state"`
ExpiresTime int64 `json:"expires"`
IssueTime int64 `json:"issue"`
Issuer string `json:"issuer"`
CreatedTime int64 `json:"created"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCert ¶
func (c *Client) CreateCert(req *CreateCertRequest) (*CreateCertResponse, error)
func (*Client) CreateCertWithContext ¶
func (c *Client) CreateCertWithContext(ctx context.Context, req *CreateCertRequest) (*CreateCertResponse, error)
func (*Client) GetDomainConfig ¶
func (c *Client) GetDomainConfig(req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)
func (*Client) GetDomainConfigWithContext ¶
func (c *Client) GetDomainConfigWithContext(ctx context.Context, req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)
func (*Client) ListCerts ¶
func (c *Client) ListCerts(req *ListCertsRequest) (*ListCertsResponse, error)
func (*Client) ListCertsWithContext ¶
func (c *Client) ListCertsWithContext(ctx context.Context, req *ListCertsRequest) (*ListCertsResponse, error)
func (*Client) ModifyDomainConfig ¶
func (c *Client) ModifyDomainConfig(req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)
func (*Client) ModifyDomainConfigWithContext ¶
func (c *Client) ModifyDomainConfigWithContext(ctx context.Context, req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)
func (*Client) QueryCert ¶
func (c *Client) QueryCert(req *QueryCertRequest) (*QueryCertResponse, error)
func (*Client) QueryCertWithContext ¶
func (c *Client) QueryCertWithContext(ctx context.Context, req *QueryCertRequest) (*QueryCertResponse, error)
func (*Client) QueryDomains ¶ added in v0.4.5
func (c *Client) QueryDomains(req *QueryDomainsRequest) (*QueryDomainsResponse, error)
func (*Client) QueryDomainsWithContext ¶ added in v0.4.5
func (c *Client) QueryDomainsWithContext(ctx context.Context, req *QueryDomainsRequest) (*QueryDomainsResponse, error)
type CreateCertRequest ¶
type CreateCertResponse ¶
type CreateCertResponse struct {
ReturnObj *struct {
Id int64 `json:"id"`
} `json:"returnObj,omitempty"`
// contains filtered or unexported fields
}
func (*CreateCertResponse) GetErrorMessage ¶
func (r *CreateCertResponse) GetErrorMessage() string
func (*CreateCertResponse) GetMessage ¶
func (r *CreateCertResponse) GetMessage() string
func (*CreateCertResponse) GetStatusCode ¶
func (r *CreateCertResponse) GetStatusCode() string
type DomainHttpsBasicConfig ¶
type DomainOriginConfig ¶
type DomainOriginConfigWithWeight ¶ added in v0.3.21
type DomainRecord ¶ added in v0.4.5
type GetDomainConfigRequest ¶
type GetDomainConfigResponse ¶
type GetDomainConfigResponse struct {
ReturnObj *struct {
Domain string `json:"domain"`
ProductCode string `json:"product_code"`
Status int32 `json:"status"`
AreaScope int32 `json:"area_scope"`
Cname string `json:"cname"`
Origin []*DomainOriginConfigWithWeight `json:"origin,omitempty"`
HttpsStatus string `json:"https_status"`
HttpsBasic *DomainHttpsBasicConfig `json:"https_basic,omitempty"`
CertName string `json:"cert_name"`
} `json:"returnObj,omitempty"`
// contains filtered or unexported fields
}
func (*GetDomainConfigResponse) GetErrorMessage ¶
func (r *GetDomainConfigResponse) GetErrorMessage() string
func (*GetDomainConfigResponse) GetMessage ¶
func (r *GetDomainConfigResponse) GetMessage() string
func (*GetDomainConfigResponse) GetStatusCode ¶
func (r *GetDomainConfigResponse) GetStatusCode() string
type ListCertsRequest ¶
type ListCertsResponse ¶
type ListCertsResponse struct {
ReturnObj *struct {
Results []*CertRecord `json:"result,omitempty"`
Page int32 `json:"page,omitempty"`
PerPage int32 `json:"per_page,omitempty"`
TotalPage int32 `json:"total_page,omitempty"`
TotalRecords int32 `json:"total_records,omitempty"`
} `json:"returnObj,omitempty"`
// contains filtered or unexported fields
}
func (*ListCertsResponse) GetErrorMessage ¶
func (r *ListCertsResponse) GetErrorMessage() string
func (*ListCertsResponse) GetMessage ¶
func (r *ListCertsResponse) GetMessage() string
func (*ListCertsResponse) GetStatusCode ¶
func (r *ListCertsResponse) GetStatusCode() string
type ModifyDomainConfigRequest ¶
type ModifyDomainConfigRequest struct {
Domain *string `json:"domain,omitempty"`
ProductCode *string `json:"product_code,omitempty"`
Origin []*DomainOriginConfig `json:"origin,omitempty"`
HttpsStatus *string `json:"https_status,omitempty"`
HttpsBasic *DomainHttpsBasicConfig `json:"https_basic,omitempty"`
CertName *string `json:"cert_name,omitempty"`
}
type ModifyDomainConfigResponse ¶
type ModifyDomainConfigResponse struct {
// contains filtered or unexported fields
}
func (*ModifyDomainConfigResponse) GetError ¶
func (r *ModifyDomainConfigResponse) GetError() string
func (*ModifyDomainConfigResponse) GetErrorMessage ¶
func (r *ModifyDomainConfigResponse) GetErrorMessage() string
func (*ModifyDomainConfigResponse) GetMessage ¶
func (r *ModifyDomainConfigResponse) GetMessage() string
func (*ModifyDomainConfigResponse) GetStatusCode ¶
func (r *ModifyDomainConfigResponse) GetStatusCode() string
type QueryCertRequest ¶
type QueryCertResponse ¶
type QueryCertResponse struct {
ReturnObj *struct {
Result *CertDetail `json:"result,omitempty"`
} `json:"returnObj,omitempty"`
// contains filtered or unexported fields
}
func (*QueryCertResponse) GetErrorMessage ¶
func (r *QueryCertResponse) GetErrorMessage() string
func (*QueryCertResponse) GetMessage ¶
func (r *QueryCertResponse) GetMessage() string
func (*QueryCertResponse) GetStatusCode ¶
func (r *QueryCertResponse) GetStatusCode() string
type QueryDomainsRequest ¶ added in v0.4.5
type QueryDomainsRequest struct {
Page *int32 `json:"page,omitempty" url:"page,omitempty"`
PageSize *int32 `json:"page_size,omitempty" url:"page_size,omitempty"`
Domain *string `json:"domain,omitempty" url:"domain,omitempty"`
ProductCode *string `json:"product_code,omitempty" url:"product_code,omitempty"`
Status *int32 `json:"status,omitempty" url:"status,omitempty"`
AreaScope *int32 `json:"area_scope,omitempty" url:"area_scope,omitempty"`
}
type QueryDomainsResponse ¶ added in v0.4.5
type QueryDomainsResponse struct {
ReturnObj *struct {
Results []*DomainRecord `json:"result,omitempty"`
Page int32 `json:"page,omitempty"`
PageSize int32 `json:"page_size,omitempty"`
PageCount int32 `json:"page_count,omitempty"`
Total int32 `json:"total,omitempty"`
} `json:"returnObj,omitempty"`
// contains filtered or unexported fields
}
func (*QueryDomainsResponse) GetError ¶ added in v0.4.5
func (r *QueryDomainsResponse) GetError() string
func (*QueryDomainsResponse) GetErrorMessage ¶ added in v0.4.5
func (r *QueryDomainsResponse) GetErrorMessage() string
func (*QueryDomainsResponse) GetMessage ¶ added in v0.4.5
func (r *QueryDomainsResponse) GetMessage() string
func (*QueryDomainsResponse) GetStatusCode ¶ added in v0.4.5
func (r *QueryDomainsResponse) GetStatusCode() string
Click to show internal directories.
Click to hide internal directories.