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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operator.
func (*Operator) DeepCopyInto ¶
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.
Click to show internal directories.
Click to hide internal directories.