caclient

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAUnavailableError added in v0.1.1

type CAUnavailableError struct {
	Message string
}

CAUnavailableError indicates the CA service is temporarily unavailable. This is typically a transient infrastructure issue.

func (*CAUnavailableError) Error added in v0.1.1

func (e *CAUnavailableError) Error() string

type Client

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

Client is a CA Client

func New

func New(url string, options ...Option) *Client

New creates a new CA Client

func (*Client) GetCert

GetCert converts a token to a cert

type InvalidRequestError added in v0.1.1

type InvalidRequestError struct {
	Message string
}

InvalidRequestError indicates the certificate request was malformed. This typically indicates a bug in the client code.

func (*InvalidRequestError) Error added in v0.1.1

func (e *InvalidRequestError) Error() string

type InvalidTokenError added in v0.1.1

type InvalidTokenError struct {
	Message string
}

InvalidTokenError indicates the authentication token is invalid or expired. The broker should clear the token and re-authenticate.

func (*InvalidTokenError) Error added in v0.1.1

func (e *InvalidTokenError) Error() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures the agent

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient specifies the http client to use

func WithLogger added in v0.1.1

func WithLogger(logger *slog.Logger) Option

WithLogger specifies the logger to use

type PolicyDeniedError added in v0.1.1

type PolicyDeniedError struct {
	Message string
}

PolicyDeniedError indicates authentication succeeded but policy denied access. The token is valid, but the user is not authorized for this connection.

func (*PolicyDeniedError) Error added in v0.1.1

func (e *PolicyDeniedError) Error() string

Jump to

Keyboard shortcuts

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