dogecloud

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 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 BindCdnCertRequest

type BindCdnCertRequest struct {
	CertId int64  `json:"id"`
	Domain string `json:"domain"`
}

type BindCdnCertResponse

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

func (*BindCdnCertResponse) GetCode

func (r *BindCdnCertResponse) GetCode() int

func (*BindCdnCertResponse) GetMessage

func (r *BindCdnCertResponse) GetMessage() string

type Client

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

func NewClient

func NewClient(accessKey, secretKey string) (*Client, error)

func (*Client) BindCdnCert

func (c *Client) BindCdnCert(req *BindCdnCertRequest) (*BindCdnCertResponse, error)

func (*Client) BindCdnCertWithContext

func (c *Client) BindCdnCertWithContext(ctx context.Context, req *BindCdnCertRequest) (*BindCdnCertResponse, error)

func (*Client) ListCdnDomain added in v0.4.5

func (c *Client) ListCdnDomain() (*ListCdnDomainResponse, error)

func (*Client) ListCdnDomainWithContext added in v0.4.5

func (c *Client) ListCdnDomainWithContext(ctx context.Context) (*ListCdnDomainResponse, error)

func (*Client) SetTimeout

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

func (*Client) UploadCdnCert

func (c *Client) UploadCdnCert(req *UploadCdnCertRequest) (*UploadCdnCertResponse, error)

func (*Client) UploadCdnCertWithContext

func (c *Client) UploadCdnCertWithContext(ctx context.Context, req *UploadCdnCertRequest) (*UploadCdnCertResponse, error)

type ListCdnDomainResponse added in v0.4.5

type ListCdnDomainResponse struct {
	Data *struct {
		Domains []*struct {
			Id          int64           `json:"id"`
			Name        string          `json:"name"`
			Cname       string          `json:"cname"`
			ServiceType string          `json:"service_type"`
			Status      string          `json:"status"`
			Source      json.RawMessage `json:"source"`
			CreateTime  string          `json:"ctime"`
			CertId      int64           `json:"cert_id"`
		} `json:"domains"`
	} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCdnDomainResponse) GetCode added in v0.4.5

func (r *ListCdnDomainResponse) GetCode() int

func (*ListCdnDomainResponse) GetMessage added in v0.4.5

func (r *ListCdnDomainResponse) GetMessage() string

type UploadCdnCertRequest

type UploadCdnCertRequest struct {
	Note        string `json:"note"`
	Certificate string `json:"cert"`
	PrivateKey  string `json:"private"`
}

type UploadCdnCertResponse

type UploadCdnCertResponse struct {
	Data *struct {
		Id int64 `json:"id"`
	} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadCdnCertResponse) GetCode

func (r *UploadCdnCertResponse) GetCode() int

func (*UploadCdnCertResponse) GetMessage

func (r *UploadCdnCertResponse) GetMessage() string

Jump to

Keyboard shortcuts

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