Documentation
¶
Index ¶
- func WriteResolverConfig(ctx context.Context, c client.Client, ...) error
- type Builder
- func (b *Builder) AccountJWTExists(accountID string) (bool, error)
- func (b *Builder) DeleteAccountJWT(accountID string) error
- func (b *Builder) GetAccountJWTPath(accountID string) string
- func (b *Builder) GetOperatorJWTPath() string
- func (b *Builder) GetResolverConfig() string
- func (b *Builder) Initialize() error
- func (b *Builder) WriteAccountJWT(accountID, accountJWT string) error
- func (b *Builder) WriteOperatorJWT(operatorJWT string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder manages the NATS JWT resolver directory structure
func NewBuilder ¶
NewBuilder creates a new resolver builder
func (*Builder) AccountJWTExists ¶
AccountJWTExists checks if an account JWT exists
func (*Builder) DeleteAccountJWT ¶
DeleteAccountJWT removes an account JWT from the resolver directory
func (*Builder) GetAccountJWTPath ¶
GetAccountJWTPath returns the path to an account JWT
func (*Builder) GetOperatorJWTPath ¶
GetOperatorJWTPath returns the path to the operator JWT
func (*Builder) GetResolverConfig ¶
GetResolverConfig generates the resolver configuration for NATS server
func (*Builder) Initialize ¶
Initialize creates the resolver directory structure
func (*Builder) WriteAccountJWT ¶
WriteAccountJWT writes an account JWT to the resolver directory
func (*Builder) WriteOperatorJWT ¶
WriteOperatorJWT writes the operator JWT to the resolver directory
Click to show internal directories.
Click to hide internal directories.