Documentation
¶
Overview ¶
A simple SDK client for Asia-ISP CDN.
Index ¶
- type Certificate
- type CertificateDetail
- type CertificateQueryListResponse
- type CertificateQueryResponse
- type CertificateUploadRequest
- type CertificateUploadResponse
- type Client
- func (c *Client) CertificateQuery(certId string) (*CertificateQueryResponse, error)
- func (c *Client) CertificateQueryList() (*CertificateQueryListResponse, error)
- func (c *Client) CertificateQueryListWithContext(ctx context.Context) (*CertificateQueryListResponse, error)
- func (c *Client) CertificateQueryWithContext(ctx context.Context, certId string) (*CertificateQueryResponse, error)
- func (c *Client) CertificateUpload(req *CertificateUploadRequest) (*CertificateUploadResponse, error)
- func (c *Client) CertificateUploadWithContext(ctx context.Context, req *CertificateUploadRequest) (*CertificateUploadResponse, error)
- func (c *Client) DomainModify(req *DomainModifyRequest) (*DomainModifyResponse, error)
- func (c *Client) DomainModifyWithContext(ctx context.Context, req *DomainModifyRequest) (*DomainModifyResponse, error)
- func (c *Client) DomainQueryList(req *DomainQueryListRequest) (*DomainQueryListResponse, error)
- func (c *Client) DomainQueryListWithContext(ctx context.Context, req *DomainQueryListRequest) (*DomainQueryListResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type Domain
- type DomainModifyRequest
- type DomainModifyResponse
- type DomainQueryListRequest
- type DomainQueryListResponse
- type Options
- type OptionsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type CertificateDetail ¶
type CertificateQueryListResponse ¶
type CertificateQueryListResponse struct {
Data []*Certificate `json:"data,omitempty"`
// contains filtered or unexported fields
}
type CertificateQueryResponse ¶
type CertificateQueryResponse struct {
Data *CertificateDetail `json:"data,omitempty"`
// contains filtered or unexported fields
}
type CertificateUploadResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(optFns ...OptionsFunc) (*Client, error)
func (*Client) CertificateQuery ¶
func (c *Client) CertificateQuery(certId string) (*CertificateQueryResponse, error)
func (*Client) CertificateQueryList ¶
func (c *Client) CertificateQueryList() (*CertificateQueryListResponse, error)
func (*Client) CertificateQueryListWithContext ¶
func (c *Client) CertificateQueryListWithContext(ctx context.Context) (*CertificateQueryListResponse, error)
func (*Client) CertificateQueryWithContext ¶
func (*Client) CertificateUpload ¶
func (c *Client) CertificateUpload(req *CertificateUploadRequest) (*CertificateUploadResponse, error)
func (*Client) CertificateUploadWithContext ¶
func (c *Client) CertificateUploadWithContext(ctx context.Context, req *CertificateUploadRequest) (*CertificateUploadResponse, error)
func (*Client) DomainModify ¶
func (c *Client) DomainModify(req *DomainModifyRequest) (*DomainModifyResponse, error)
func (*Client) DomainModifyWithContext ¶
func (c *Client) DomainModifyWithContext(ctx context.Context, req *DomainModifyRequest) (*DomainModifyResponse, error)
func (*Client) DomainQueryList ¶
func (c *Client) DomainQueryList(req *DomainQueryListRequest) (*DomainQueryListResponse, error)
func (*Client) DomainQueryListWithContext ¶
func (c *Client) DomainQueryListWithContext(ctx context.Context, req *DomainQueryListRequest) (*DomainQueryListResponse, error)
type Domain ¶
type Domain struct {
Domain string `json:"domain"`
ServiceType string `json:"serviceType"`
Scope string `json:"scope"`
Cname string `json:"cname"`
ICP string `json:"icp"`
Protocol string `json:"protocol"`
CertId int64 `json:"certId"`
OriginProtocol string `json:"originProtocol"`
OriginHost string `json:"originHost"`
OriginType string `json:"originType"`
OriginAddr string `json:"originAddr"`
OriginBackAddr string `json:"originBackAddr"`
DomainStatus int32 `json:"domainStatus"`
OperatingStatus int32 `json:"operatingStatus"`
}
type DomainModifyRequest ¶
type DomainModifyResponse ¶
type DomainModifyResponse struct {
Data int64 `json:"data,omitempty"`
// contains filtered or unexported fields
}
type DomainQueryListRequest ¶
type DomainQueryListResponse ¶
type DomainQueryListResponse struct {
Data []*Domain `json:"data,omitempty"`
// contains filtered or unexported fields
}
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithAkSk ¶
func WithAkSk(ak, sk string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.