certificate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	StatusCode int
	Message    string `json:"error"`
}

APIError represents an error returned by the API.

func (APIError) Error

func (a APIError) Error() string

type Certificate

type Certificate struct {
	Domains     []string  `json:"domains"`
	NotAfter    time.Time `json:"notAfter"`
	NotBefore   time.Time `json:"notBefore"`
	Certificate []byte    `json:"certificate"`
	PrivateKey  []byte    `json:"privateKey"`
}

Certificate represents the certificate returned by the platform.

type Client

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

Client allows interacting with the certificates service.

func NewClient

func NewClient(baseURL, token string) (*Client, error)

NewClient creates a new certificates for the certificates service.

func (*Client) GetCertificateByDomains added in v0.8.0

func (c *Client) GetCertificateByDomains(ctx context.Context, domains []string) (Certificate, error)

GetCertificateByDomains obtains a certificate for the workspace.

func (*Client) GetWildcardCertificate added in v0.8.0

func (c *Client) GetWildcardCertificate(ctx context.Context) (Certificate, error)

GetWildcardCertificate obtains a certificate for the workspace.

Jump to

Keyboard shortcuts

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