dogecloudsdk

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"msg,omitempty"`
}

type BindCdnCertRequest

type BindCdnCertRequest struct {
	CertId   int64   `json:"id"`
	DomainId *int64  `json:"did,omitempty"`
	Domain   *string `json:"domain,omitempty"`
}

type BindCdnCertResponse

type BindCdnCertResponse struct {
	BaseResponse
}

type Client

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

func NewClient

func NewClient(accessKey, secretKey string) *Client

func (*Client) BindCdnCertWithDomain

func (c *Client) BindCdnCertWithDomain(certId int64, domain string) (*BindCdnCertResponse, error)

func (*Client) BindCdnCertWithDomainId

func (c *Client) BindCdnCertWithDomainId(certId int64, domainId int64) (*BindCdnCertResponse, error)

func (*Client) UploadCdnCert

func (c *Client) UploadCdnCert(note, cert, private string) (*UploadCdnCertResponse, error)

type UploadCdnCertRequest

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

type UploadCdnCertResponse

type UploadCdnCertResponse struct {
	BaseResponse
	Data *UploadCdnCertResponseData `json:"data,omitempty"`
}

type UploadCdnCertResponseData

type UploadCdnCertResponseData struct {
	Id int64 `json:"id"`
}

Jump to

Keyboard shortcuts

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