v1alpha1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Overview

+k8s:deepcopy-gen=package

+k8s:deepcopy-gen=package

+k8s:deepcopy-gen=package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(claims *OperatorClaims) *jwt.OperatorClaims

Types

type Operator

type Operator struct {
	// Slice of other operator NKey names that can be used to sign on behalf of the main
	// operator identity.
	// +kubebuilder:validation:Optional
	SigningKeys []string `json:"signingKeys,omitempty"`
	// AccountServerURL is a partial URL like "https://host.domain.org:<port>/jwt/v1"
	// tools will use the prefix and build queries by appending /accounts/<account_id>
	// or /operator to the path provided. Note this assumes that the account server
	// can handle requests in a nats-account-server compatible way. See
	// https://github.com/nats-io/nats-account-server.
	// +kubebuilder:validation:Optional
	AccountServerURL string `json:"accountServerUrl,omitempty"`
	// A list of NATS urls (tls://host:port) where tools can connect to the server
	// using proper credentials.
	// +kubebuilder:validation:Optional
	OperatorServiceURLs []string `json:"operatorServiceUrls,omitempty"`
	// Identity of the system account by its name
	// +kubebuilder:validation:Optional
	SystemAccount string `json:"systemAccount,omitempty"`
	// Min Server version
	// +kubebuilder:validation:Optional
	AssertServerVersion string `json:"assertServerVersion,omitempty"`
	// Signing of subordinate objects will require signing keys
	// +kubebuilder:validation:Optional
	StrictSigningKeyUsage bool `json:"strictSigningKeyUsage,omitempty"`
	common.GenericFields  `json:",inline"`
}

Operator represents JWT claims for an operator.

func (*Operator) DeepCopy

func (in *Operator) DeepCopy() *Operator

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operator.

func (*Operator) DeepCopyInto

func (in *Operator) DeepCopyInto(out *Operator)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OperatorClaims

type OperatorClaims struct {
	common.ClaimsData `json:",inline"`
	// Operator specific claims
	// +kubebuilder:validation:Optional
	Operator `json:"operator,omitempty"`
}

+kubebuilder:object:generate=true Specifies claims of the JWT

func (*OperatorClaims) DeepCopy

func (in *OperatorClaims) DeepCopy() *OperatorClaims

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorClaims.

func (*OperatorClaims) DeepCopyInto

func (in *OperatorClaims) DeepCopyInto(out *OperatorClaims)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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