cms

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAkSk added in v0.4.25

func WithAkSk(ak, sk string) openapi.OptionsFunc

Types

type Certificate added in v0.4.25

type Certificate struct {
	Id                  string `json:"id"`
	Origin              string `json:"origin"`
	Type                string `json:"type"`
	ResourceId          string `json:"resourceId"`
	ResourceType        string `json:"resourceType"`
	CertificateId       string `json:"certificateId"`
	CertificateMode     string `json:"certificateMode"`
	Name                string `json:"name"`
	Status              string `json:"status"`
	DetailStatus        string `json:"detailStatus"`
	ManagedStatus       string `json:"managedStatus"`
	Fingerprint         string `json:"fingerprint"`
	IssueTime           string `json:"issueTime"`
	ExpireTime          string `json:"expireTime"`
	DomainType          string `json:"domainType"`
	DomainName          string `json:"domainName"`
	EncryptionStandard  string `json:"encryptionStandard"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm"`
	CreateTime          string `json:"createTime"`
	UpdateTime          string `json:"updateTime"`
}

type Client

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

func NewClient

func NewClient(optFns ...openapi.OptionsFunc) (*Client, error)

func (*Client) GetCertificateList

func (c *Client) GetCertificateList(req *GetCertificateListRequest) (*GetCertificateListResponse, error)

func (*Client) GetCertificateListWithContext

func (c *Client) GetCertificateListWithContext(ctx context.Context, req *GetCertificateListRequest) (*GetCertificateListResponse, error)

func (*Client) SetTimeout

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

func (*Client) UploadCertificate

func (c *Client) UploadCertificate(req *UploadCertificateRequest) (*UploadCertificateResponse, error)

func (*Client) UploadCertificateWithContext

func (c *Client) UploadCertificateWithContext(ctx context.Context, req *UploadCertificateRequest) (*UploadCertificateResponse, error)

type GetCertificateListRequest

type GetCertificateListRequest struct {
	Status   *string `json:"status,omitempty"`
	Keyword  *string `json:"keyword,omitempty"`
	PageNum  *int32  `json:"pageNum,omitempty"`
	PageSize *int32  `json:"pageSize,omitempty"`
	Origin   *string `json:"origin,omitempty"`
}

type GetCertificateListResponse

type GetCertificateListResponse struct {
	ReturnObj *struct {
		List      []*Certificate `json:"list,omitempty"`
		TotalSize int32          `json:"totalSize,omitempty"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCertificateListResponse) GetError

func (r *GetCertificateListResponse) GetError() string

func (*GetCertificateListResponse) GetErrorMessage

func (r *GetCertificateListResponse) GetErrorMessage() string

func (*GetCertificateListResponse) GetMessage

func (r *GetCertificateListResponse) GetMessage() string

func (*GetCertificateListResponse) GetStatusCode

func (r *GetCertificateListResponse) GetStatusCode() string

type UploadCertificateRequest

type UploadCertificateRequest struct {
	Name               *string `json:"name,omitempty"`
	Certificate        *string `json:"certificate,omitempty"`
	CertificateChain   *string `json:"certificateChain,omitempty"`
	PrivateKey         *string `json:"privateKey,omitempty"`
	EncryptionStandard *string `json:"encryptionStandard,omitempty"`
	EncCertificate     *string `json:"encCertificate,omitempty"`
	EncPrivateKey      *string `json:"encPrivateKey,omitempty"`
}

type UploadCertificateResponse

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

func (*UploadCertificateResponse) GetError

func (r *UploadCertificateResponse) GetError() string

func (*UploadCertificateResponse) GetErrorMessage

func (r *UploadCertificateResponse) GetErrorMessage() string

func (*UploadCertificateResponse) GetMessage

func (r *UploadCertificateResponse) GetMessage() string

func (*UploadCertificateResponse) GetStatusCode

func (r *UploadCertificateResponse) GetStatusCode() string

Jump to

Keyboard shortcuts

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