dogecloud

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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) 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 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