console

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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(username, password string) (*Client, 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 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