console

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketDomain added in v0.4.5

type BucketDomain struct {
	Domain string `json:"domain"`
	Status string `json:"status"`
}

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 BucketPager struct {
	Page  int32 `json:"page"`
	Pages int64 `json:"pages"`
	Total int64 `json:"total"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(username, password string) (*Client, error)

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 (c *Client) GetHttpsCertificateManagerWithContext(ctx context.Context, certificateId string) (*GetHttpsCertificateManagerResponse, error)

func (*Client) GetHttpsServiceManager

func (c *Client) GetHttpsServiceManager(domain string) (*GetHttpsServiceManagerResponse, error)

func (*Client) GetHttpsServiceManagerWithContext

func (c *Client) GetHttpsServiceManagerWithContext(ctx context.Context, domain string) (*GetHttpsServiceManagerResponse, error)

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) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

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
}

func (*GetBucketsResponse) GetData added in v0.4.5

func (r *GetBucketsResponse) GetData() *apiResponseBaseData

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
}

func (*GetHttpsCertificateManagerResponse) GetData

func (r *GetHttpsCertificateManagerResponse) GetData() *apiResponseBaseData

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
}

func (*GetHttpsServiceManagerResponse) GetData

func (r *GetHttpsServiceManagerResponse) GetData() *apiResponseBaseData

type HttpsCertificateManagerDomain

type HttpsCertificateManagerDomain struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	BucketId   int64  `json:"bucket_id"`
	BucketName string `json:"bucket_name"`
}

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 HttpsServiceManagerDomainValidity

type HttpsServiceManagerDomainValidity struct {
	Start int64 `json:"start"`
	End   int64 `json:"end"`
}

type MigrateHttpsDomainRequest

type MigrateHttpsDomainRequest struct {
	CertificateId string `json:"crt_id"`
	Domain        string `json:"domain_name"`
}

type MigrateHttpsDomainResponse

type MigrateHttpsDomainResponse struct {
	Data *struct {
		Status bool `json:"status"`
		// contains filtered or unexported fields
	} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*MigrateHttpsDomainResponse) GetData

func (r *MigrateHttpsDomainResponse) GetData() *apiResponseBaseData

type UpdateHttpsCertificateManagerRequest

type UpdateHttpsCertificateManagerRequest struct {
	CertificateId string `json:"certificate_id"`
	Domain        string `json:"domain"`
	Https         bool   `json:"https"`
	ForceHttps    bool   `json:"force_https"`
}

type UpdateHttpsCertificateManagerResponse

type UpdateHttpsCertificateManagerResponse struct {
	Data *struct {
		Status bool `json:"status"`
		// contains filtered or unexported fields
	} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateHttpsCertificateManagerResponse) GetData

func (r *UpdateHttpsCertificateManagerResponse) GetData() *apiResponseBaseData

type UploadHttpsCertificateRequest

type UploadHttpsCertificateRequest struct {
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"private_key"`
}

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
}

func (*UploadHttpsCertificateResponse) GetData

func (r *UploadHttpsCertificateResponse) GetData() *apiResponseBaseData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL