restclient

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 15 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 {
	BaseURL string
	Logger  *logrus.Logger
	Token   string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, token, certFile, keyFile, caFile string, insecure bool, logger *logrus.Logger) (*Client, error)

func (*Client) CreateCertificate

func (c *Client) CreateCertificate(data models.CertificateParams, timeout int) (models.CertMap, error)

func (*Client) DeleteCertificate

func (c *Client) DeleteCertificate(issuer, domain string, revoke bool, timeout int) error

func (*Client) GetAllCertificateMetadata

func (c *Client) GetAllCertificateMetadata(timeout int) ([]models.Certificate, error)

func (*Client) GetCertificateMetadata

func (c *Client) GetCertificateMetadata(issuer, domain string, timeout int) (models.Certificate, error)

func (*Client) GetSelfToken

func (c *Client) GetSelfToken(timeout int) (models.Token, error)

func (*Client) ReadCertificate

func (c *Client) ReadCertificate(data models.Certificate, timeout int) (models.CertMap, error)

func (*Client) UpdateCertificate

func (c *Client) UpdateCertificate(data models.CertificateParams, timeout int) (models.CertMap, error)

Jump to

Keyboard shortcuts

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