certificate

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: 7 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:"certificate-id"`
	Name         string `json:"name"`
	Comment      string `json:"comment"`
	ValidityFrom string `json:"certificate-validity-from"`
	ValidityTo   string `json:"certificate-validity-to"`
	Serial       string `json:"certificate-serial"`
}

type Client

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

func NewClient

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

func (*Client) CreateCertificate

func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)

func (*Client) CreateCertificateWithContext

func (c *Client) CreateCertificateWithContext(ctx context.Context, req *CreateCertificateRequest) (*CreateCertificateResponse, error)

func (*Client) ListCertificates

func (c *Client) ListCertificates() (*ListCertificatesResponse, error)

func (*Client) ListCertificatesWithContext

func (c *Client) ListCertificatesWithContext(ctx context.Context) (*ListCertificatesResponse, error)

func (*Client) SetTimeout

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

func (*Client) UpdateCertificate

func (c *Client) UpdateCertificate(certificateId string, req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

func (*Client) UpdateCertificateWithContext

func (c *Client) UpdateCertificateWithContext(ctx context.Context, certificateId string, req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

type CreateCertificateRequest

type CreateCertificateRequest struct {
	Name        *string `json:"name,omitempty"`
	Certificate *string `json:"certificate,omitempty"`
	PrivateKey  *string `json:"privateKey,omitempty"`
	Comment     *string `json:"comment,omitempty" `
}

type CreateCertificateResponse

type CreateCertificateResponse struct {
	CertificateLocation string `json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCertificateResponse) GetCode

func (r *CreateCertificateResponse) GetCode() string

func (*CreateCertificateResponse) GetMessage

func (r *CreateCertificateResponse) GetMessage() string

type ListCertificatesResponse

type ListCertificatesResponse struct {
	Certificates []*Certificate `json:"ssl-certificates,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCertificatesResponse) GetCode

func (r *ListCertificatesResponse) GetCode() string

func (*ListCertificatesResponse) GetMessage

func (r *ListCertificatesResponse) GetMessage() string

type UpdateCertificateRequest

type UpdateCertificateRequest struct {
	Name        *string `json:"name,omitempty"`
	Certificate *string `json:"certificate,omitempty"`
	PrivateKey  *string `json:"privateKey,omitempty"`
	Comment     *string `json:"comment,omitempty" `
}

type UpdateCertificateResponse

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

func (*UpdateCertificateResponse) GetCode

func (r *UpdateCertificateResponse) GetCode() string

func (*UpdateCertificateResponse) GetMessage

func (r *UpdateCertificateResponse) GetMessage() string

Jump to

Keyboard shortcuts

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