cachefly

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiToken string) (*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) SetTimeout

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

type CreateCertificateRequest

type CreateCertificateRequest struct {
	Certificate    *string `json:"certificate,omitempty"`
	CertificateKey *string `json:"certificateKey,omitempty"`
	Password       *string `json:"password,omitempty"`
}

type CreateCertificateResponse

type CreateCertificateResponse struct {
	Id                string   `json:"_id"`
	SubjectCommonName string   `json:"subjectCommonName"`
	SubjectNames      []string `json:"subjectNames"`
	Expired           bool     `json:"expired"`
	Expiring          bool     `json:"expiring"`
	InUse             bool     `json:"inUse"`
	Managed           bool     `json:"managed"`
	Services          []string `json:"services"`
	Domains           []string `json:"domains"`
	NotBefore         string   `json:"notBefore"`
	NotAfter          string   `json:"notAfter"`
	CreatedAt         string   `json:"createdAt"`
	// contains filtered or unexported fields
}

func (*CreateCertificateResponse) GetMessage

func (r *CreateCertificateResponse) GetMessage() string

Jump to

Keyboard shortcuts

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