ussl

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRAlgorithmInfo

type CSRAlgorithmInfo struct {
	Algorithm       string
	AlgorithmOption []string
}

type CertificateDownloadInfo

type CertificateDownloadInfo struct {
	FileData string
	FileName string
}

type CertificateInfo

type CertificateInfo struct {
	Type            string
	CertificateID   int
	CertificateType string
	CaOrganization  string
	Algorithm       string
	ValidityPeriod  int
	State           string
	StateCode       string
	Name            string
	Brand           string
	Domains         string
	DomainsCount    int
	Mode            string
	CSROnline       int
	CSR             string
	CSRKeyParameter string
	CSREncryptAlgo  string
	IssuedDate      int
	ExpiredDate     int
}

type CertificateListItem

type CertificateListItem struct {
	CertificateID     int
	CertificateSN     string
	CertificateCat    string
	Mode              string
	Domains           string
	Brand             string
	ValidityPeriod    int
	Type              string
	NotBefore         int
	NotAfter          int
	AlarmState        int
	State             string
	StateCode         string
	Name              string
	MaxDomainsCount   int
	DomainsCount      int
	CaChannel         string
	CSRAlgorithms     []CSRAlgorithmInfo
	TopOrganizationID int
	OrganizationID    int
	IsFree            int
	YearOfValidity    int
	Channel           int
	CreateTime        int
	CertificateUrl    string
}

type DownloadCertificateRequest

type DownloadCertificateRequest struct {
	request.CommonBase

	CertificateID *int `required:"true"`
}

type DownloadCertificateResponse

type DownloadCertificateResponse struct {
	response.CommonBase

	CertificateUrl string
	CertCA         *CertificateDownloadInfo
	Certificate    *CertificateDownloadInfo
}

type GetCertificateDetailInfoRequest

type GetCertificateDetailInfoRequest struct {
	request.CommonBase

	CertificateID *int `required:"true"`
}

type GetCertificateDetailInfoResponse

type GetCertificateDetailInfoResponse struct {
	response.CommonBase

	CertificateInfo *CertificateInfo
}

type GetCertificateListRequest

type GetCertificateListRequest struct {
	request.CommonBase

	Mode           *string `required:"true"`
	StateCode      *string `required:"false"`
	Brand          *string `required:"false"`
	CaOrganization *string `required:"false"`
	Domain         *string `required:"false"`
	Sort           *string `required:"false"`
	Page           *int    `required:"false"`
	PageSize       *int    `required:"false"`
}

type GetCertificateListResponse

type GetCertificateListResponse struct {
	response.CommonBase

	CertificateList []*CertificateListItem
	TotalCount      int
}

type USSLClient

type USSLClient struct {
	*ucloud.Client
}

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *USSLClient

func (*USSLClient) DownloadCertificate

func (*USSLClient) GetCertificateDetailInfo

func (*USSLClient) GetCertificateList

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

func (*USSLClient) NewDownloadCertificateRequest

func (c *USSLClient) NewDownloadCertificateRequest() *DownloadCertificateRequest

func (*USSLClient) NewGetCertificateDetailInfoRequest

func (c *USSLClient) NewGetCertificateDetailInfoRequest() *GetCertificateDetailInfoRequest

func (*USSLClient) NewGetCertificateListRequest

func (c *USSLClient) NewGetCertificateListRequest() *GetCertificateListRequest

func (*USSLClient) NewUploadNormalCertificateRequest

func (c *USSLClient) NewUploadNormalCertificateRequest() *UploadNormalCertificateRequest

func (*USSLClient) UploadNormalCertificate

type UploadNormalCertificateRequest

type UploadNormalCertificateRequest struct {
	request.CommonBase

	CertificateName *string `required:"true"`
	SslPublicKey    *string `required:"true"`
	SslPrivateKey   *string `required:"true"`
	SslMD5          *string `required:"true"`
	SslCaKey        *string `required:"false"`
}

type UploadNormalCertificateResponse

type UploadNormalCertificateResponse struct {
	response.CommonBase

	CertificateID  int
	LongResourceID string
}

Jump to

Keyboard shortcuts

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