nats

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: 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 Client

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

func NewClient

func NewClient(natsURL string, secretGetter SecretGetter) *Client

func (*Client) DeleteAccountJWT

func (n *Client) DeleteAccountJWT(jwt string) error

func (*Client) Disconnect

func (n *Client) Disconnect()

func (*Client) EnsureConnected

func (n *Client) EnsureConnected(namespace string) error

func (*Client) LookupAccountJWT

func (n *Client) LookupAccountJWT(accountID string) (string, error)

func (*Client) UploadAccountJWT

func (n *Client) UploadAccountJWT(jwt string) error

type Data

type Data struct {
	Account string `json:"account,omitempty"`
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Response

type Response struct {
	Data Data `json:"data"`
}

type SecretGetter

type SecretGetter interface {
	GetByLabels(ctx context.Context, namespace string, labels map[string]string) (*v1.SecretList, error)
}

Jump to

Keyboard shortcuts

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