ports

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountReader

type AccountReader interface {
	Get(ctx context.Context, accountRef domain.NamespacedName) (account *v1alpha1.Account, err error)
}

type ConfigMapReader

type ConfigMapReader interface {
	Get(ctx context.Context, configMapRef domain.NamespacedName) (map[string]string, error)
}

type NatsClient

type NatsClient interface {
	Connect(natsURL string, userCreds NatsUserCreds) (NatsConnection, error)
}

type NatsClusterReader

type NatsClusterReader interface {
	Get(ctx context.Context, clusterRef domain.NamespacedName) (*v1alpha1.NatsCluster, error)
}

type NatsConnection

type NatsConnection interface {
	Disconnect()
	EnsureConnected() error
	LookupAccountJWT(accountID string) (string, error)
	UploadAccountJWT(jwt string) error
	DeleteAccountJWT(jwt string) error
}

type NatsOperatorSigningKey

type NatsOperatorSigningKey nkeys.KeyPair

type NatsUserCreds

type NatsUserCreds struct {
	Creds     []byte
	AccountID string
}

func NewNatsUserCreds

func NewNatsUserCreds(creds []byte) (*NatsUserCreds, error)

func (*NatsUserCreds) Validate

func (n *NatsUserCreds) Validate() error

type SecretClient

type SecretClient interface {
	SecretReader
	Apply(ctx context.Context, owner metav1.Object, meta metav1.ObjectMeta, valueMap map[string]string) error
	Delete(ctx context.Context, secretRef domain.NamespacedName) error
	DeleteByLabels(ctx context.Context, namespace domain.Namespace, labels map[string]string) error
	Label(ctx context.Context, secretRef domain.NamespacedName, labels map[string]string) error
}

type SecretReader

type SecretReader interface {
	Get(ctx context.Context, secretRef domain.NamespacedName) (map[string]string, error)
	GetByLabels(ctx context.Context, namespace domain.Namespace, 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