resolver

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResolverConfig

func WriteResolverConfig(ctx context.Context, c client.Client, namespace, name, key, configType, content string) error

WriteResolverConfig writes the resolver configuration to a ConfigMap or Secret

Types

type Builder

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

Builder manages the NATS JWT resolver directory structure

func NewBuilder

func NewBuilder(fs afero.Fs, baseDir string) *Builder

NewBuilder creates a new resolver builder

func (*Builder) AccountJWTExists

func (b *Builder) AccountJWTExists(accountID string) (bool, error)

AccountJWTExists checks if an account JWT exists

func (*Builder) DeleteAccountJWT

func (b *Builder) DeleteAccountJWT(accountID string) error

DeleteAccountJWT removes an account JWT from the resolver directory

func (*Builder) GetAccountJWTPath

func (b *Builder) GetAccountJWTPath(accountID string) string

GetAccountJWTPath returns the path to an account JWT

func (*Builder) GetOperatorJWTPath

func (b *Builder) GetOperatorJWTPath() string

GetOperatorJWTPath returns the path to the operator JWT

func (*Builder) GetResolverConfig

func (b *Builder) GetResolverConfig() string

GetResolverConfig generates the resolver configuration for NATS server

func (*Builder) Initialize

func (b *Builder) Initialize() error

Initialize creates the resolver directory structure

func (*Builder) WriteAccountJWT

func (b *Builder) WriteAccountJWT(accountID, accountJWT string) error

WriteAccountJWT writes an account JWT to the resolver directory

func (*Builder) WriteOperatorJWT

func (b *Builder) WriteOperatorJWT(operatorJWT string) error

WriteOperatorJWT writes the operator JWT to the resolver directory

Jump to

Keyboard shortcuts

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