Documentation
¶
Index ¶
- type BucketDomain
- type BucketInfo
- type BucketPager
- type Client
- func (c *Client) GetBuckets(req *GetBucketsRequest) (*GetBucketsResponse, error)
- func (c *Client) GetBucketsWithContext(ctx context.Context, req *GetBucketsRequest) (*GetBucketsResponse, error)
- func (c *Client) GetHttpsCertificateManager(certificateId string) (*GetHttpsCertificateManagerResponse, error)
- func (c *Client) GetHttpsCertificateManagerWithContext(ctx context.Context, certificateId string) (*GetHttpsCertificateManagerResponse, error)
- func (c *Client) GetHttpsServiceManager(domain string) (*GetHttpsServiceManagerResponse, error)
- func (c *Client) GetHttpsServiceManagerWithContext(ctx context.Context, domain string) (*GetHttpsServiceManagerResponse, error)
- func (c *Client) MigrateHttpsDomain(req *MigrateHttpsDomainRequest) (*MigrateHttpsDomainResponse, error)
- func (c *Client) MigrateHttpsDomainWithContext(ctx context.Context, req *MigrateHttpsDomainRequest) (*MigrateHttpsDomainResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) UpdateHttpsCertificateManager(req *UpdateHttpsCertificateManagerRequest) (*UpdateHttpsCertificateManagerResponse, error)
- func (c *Client) UpdateHttpsCertificateManagerWithContext(ctx context.Context, req *UpdateHttpsCertificateManagerRequest) (*UpdateHttpsCertificateManagerResponse, error)
- func (c *Client) UploadHttpsCertificate(req *UploadHttpsCertificateRequest) (*UploadHttpsCertificateResponse, error)
- func (c *Client) UploadHttpsCertificateWithContext(ctx context.Context, req *UploadHttpsCertificateRequest) (*UploadHttpsCertificateResponse, error)
- type GetBucketsRequest
- type GetBucketsResponse
- type GetHttpsCertificateManagerResponse
- type GetHttpsServiceManagerResponse
- type HttpsCertificateManagerDomain
- type HttpsServiceManagerDomain
- type HttpsServiceManagerDomainValidity
- type MigrateHttpsDomainRequest
- type MigrateHttpsDomainResponse
- type UpdateHttpsCertificateManagerRequest
- type UpdateHttpsCertificateManagerResponse
- type UploadHttpsCertificateRequest
- type UploadHttpsCertificateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketDomain ¶ added in v0.4.5
type BucketInfo ¶ added in v0.4.5
type BucketInfo struct {
BucketName string `json:"bucket_name"`
BusinessType string `json:"business_type"`
Type string `json:"type"`
Status string `json:"status"`
Tag string `json:"tag"`
IsFusionCDN bool `json:"fusion_cdn"`
IsSecurityCDN bool `json:"security_cdn"`
Domains []*BucketDomain `json:"domains"`
Visible bool `json:"visible"`
CreatedAt string `json:"created_at"`
}
type BucketPager ¶ added in v0.4.5
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBuckets ¶ added in v0.4.5
func (c *Client) GetBuckets(req *GetBucketsRequest) (*GetBucketsResponse, error)
func (*Client) GetBucketsWithContext ¶ added in v0.4.5
func (c *Client) GetBucketsWithContext(ctx context.Context, req *GetBucketsRequest) (*GetBucketsResponse, error)
func (*Client) GetHttpsCertificateManager ¶
func (c *Client) GetHttpsCertificateManager(certificateId string) (*GetHttpsCertificateManagerResponse, error)
func (*Client) GetHttpsCertificateManagerWithContext ¶
func (*Client) GetHttpsServiceManager ¶
func (c *Client) GetHttpsServiceManager(domain string) (*GetHttpsServiceManagerResponse, error)
func (*Client) GetHttpsServiceManagerWithContext ¶
func (*Client) MigrateHttpsDomain ¶
func (c *Client) MigrateHttpsDomain(req *MigrateHttpsDomainRequest) (*MigrateHttpsDomainResponse, error)
func (*Client) MigrateHttpsDomainWithContext ¶
func (c *Client) MigrateHttpsDomainWithContext(ctx context.Context, req *MigrateHttpsDomainRequest) (*MigrateHttpsDomainResponse, error)
func (*Client) UpdateHttpsCertificateManager ¶
func (c *Client) UpdateHttpsCertificateManager(req *UpdateHttpsCertificateManagerRequest) (*UpdateHttpsCertificateManagerResponse, error)
func (*Client) UpdateHttpsCertificateManagerWithContext ¶
func (c *Client) UpdateHttpsCertificateManagerWithContext(ctx context.Context, req *UpdateHttpsCertificateManagerRequest) (*UpdateHttpsCertificateManagerResponse, error)
func (*Client) UploadHttpsCertificate ¶
func (c *Client) UploadHttpsCertificate(req *UploadHttpsCertificateRequest) (*UploadHttpsCertificateResponse, error)
func (*Client) UploadHttpsCertificateWithContext ¶
func (c *Client) UploadHttpsCertificateWithContext(ctx context.Context, req *UploadHttpsCertificateRequest) (*UploadHttpsCertificateResponse, error)
type GetBucketsRequest ¶ added in v0.4.5
type GetBucketsRequest struct {
BucketName string `json:"status" url:"bucket_name"`
BusinessType string `json:"business_type" url:"business_type"`
Type string `json:"type" url:"type"`
Status string `json:"state" url:"state"`
Tag string `json:"tag" url:"tag"`
IsSecurityCDN bool `json:"security_cdn" url:"security_cdn"`
WithDomains bool `json:"with_domains" url:"with_domains"`
Page int32 `json:"page" url:"page"`
PerPage int32 `json:"perPage" url:"perPage"`
}
type GetBucketsResponse ¶ added in v0.4.5
type GetBucketsResponse struct {
Data *struct {
Buckets []*BucketInfo `json:"buckets"`
Pager BucketPager `json:"pager"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
type GetHttpsCertificateManagerResponse ¶
type GetHttpsCertificateManagerResponse struct {
Data *struct {
AuthenticateNum int32 `json:"authenticate_num"`
AuthenticateDomains []string `json:"authenticate_domain"`
Domains []HttpsCertificateManagerDomain `json:"domains"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
type GetHttpsServiceManagerResponse ¶
type GetHttpsServiceManagerResponse struct {
Data *struct {
Status int32 `json:"status"`
Domains []HttpsServiceManagerDomain `json:"result"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
type HttpsServiceManagerDomain ¶
type HttpsServiceManagerDomain struct {
CertificateId string `json:"certificate_id"`
CommonName string `json:"commonName"`
Https bool `json:"https"`
ForceHttps bool `json:"force_https"`
PaymentType string `json:"payment_type"`
DomainType string `json:"domain_type"`
Validity HttpsServiceManagerDomainValidity `json:"validity"`
}
type MigrateHttpsDomainResponse ¶
type MigrateHttpsDomainResponse struct {
Data *struct {
Status bool `json:"status"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
type UpdateHttpsCertificateManagerResponse ¶
type UpdateHttpsCertificateManagerResponse struct {
Data *struct {
Status bool `json:"status"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
type UploadHttpsCertificateResponse ¶
type UploadHttpsCertificateResponse struct {
Data *struct {
Status int32 `json:"status"`
Result struct {
CertificateId string `json:"certificate_id"`
CommonName string `json:"commonName"`
Serial string `json:"serial"`
} `json:"result"`
// contains filtered or unexported fields
} `json:"data,omitempty"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.