restclient

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 11 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, retryCfg RetryConfig) (*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, name 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, name 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)

type RetryConfig added in v0.8.0

type RetryConfig struct {
	RetryMax        int
	RetryWaitMin    int // seconds
	RetryWaitMax    int // seconds
	RetryStatusCode []int
	Debug           bool
}

RetryConfig controls the retryablehttp client behaviour.

Jump to

Keyboard shortcuts

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