Skip to content

API Reference

Package v1alpha1 contains API Schema definitions for the nats v1alpha1 API group.

Account is the Schema for the accounts API.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringnauth.io/v1alpha1
kind stringAccount
kind stringKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
apiVersion stringAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec AccountSpec
status AccountStatus

Appears in:

FieldDescriptionDefaultValidation
accountLimits AccountLimits
exports Exports
imports Imports
jetStreamLimits JetStreamLimits
natsLimits NatsLimits

Appears in:

FieldDescriptionDefaultValidation
imports integer-1
exports integer-1
wildcards booleantrue
conn integer-1
leaf integer-1

AccountList contains a list of Account.

FieldDescriptionDefaultValidation
apiVersion stringnauth.io/v1alpha1
kind stringAccountList
kind stringKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
apiVersion stringAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items Account array

Appears in:

FieldDescriptionDefaultValidation
name string
namespace string

AccountSpec defines the desired state of Account.

Appears in:

FieldDescriptionDefaultValidation
accountLimits AccountLimits
exports Exports
imports Imports
jetStreamLimits JetStreamLimits
natsLimits NatsLimits

AccountStatus defines the observed state of Account.

Appears in:

FieldDescriptionDefaultValidation
claims AccountClaims
conditions Condition array
observedGeneration integer
reconcileTimestamp Time
signingKey KeyInfo

Underlying type: TagList

Appears in:

Appears in:

FieldDescriptionDefaultValidation
name string
subject Subject
type ExportTypeEnum: [stream service]
tokenReq boolean
revocations RevocationList
responseType ResponseTypeEnum: [Singleton Stream Chunked]
responseThreshold Duration
serviceLatency ServiceLatency
accountTokenPosition integer
advertise boolean
allowTrace boolean

Underlying type: string

ExportType defines the type of import/export.

Validation:

  • Enum: [stream service]

Appears in:

FieldDescription
streamStream defines the type field value for a stream “stream”
serviceService defines the type field value for a service “service”

Underlying type: Export

Appears in:

FieldDescriptionDefaultValidation
name string
subject Subject
type ExportTypeEnum: [stream service]
tokenReq boolean
revocations RevocationList
responseType ResponseTypeEnum: [Singleton Stream Chunked]
responseThreshold Duration
serviceLatency ServiceLatency
accountTokenPosition integer
advertise boolean
allowTrace boolean

Appears in:

FieldDescriptionDefaultValidation
accountRef AccountRefAccountRefName references the account used to create the user.
name string
subject SubjectSubject field in an import is always from the perspective of the
initial publisher - in the case of a stream it is the account owning
the stream (the exporter), and in the case of a service it is the
account making the request (the importer).
account string
localSubject RenamingSubjectLocal subject used to subscribe (for streams) and publish (for services) to.
This value only needs setting if you want to change the value of Subject.
If the value of Subject ends in > then LocalSubject needs to end in > as well.
LocalSubject can contain $ wildcard references where number references the nth wildcard in Subject.
The sum of wildcard reference and * tokens needs to match the number of * token in Subject.
type ExportTypeEnum: [stream service]
share boolean
allowTrace boolean

Underlying type: Import

Appears in:

FieldDescriptionDefaultValidation
accountRef AccountRefAccountRefName references the account used to create the user.
name string
subject SubjectSubject field in an import is always from the perspective of the
initial publisher - in the case of a stream it is the account owning
the stream (the exporter), and in the case of a service it is the
account making the request (the importer).
account string
localSubject RenamingSubjectLocal subject used to subscribe (for streams) and publish (for services) to.
This value only needs setting if you want to change the value of Subject.
If the value of Subject ends in > then LocalSubject needs to end in > as well.
LocalSubject can contain $ wildcard references where number references the nth wildcard in Subject.
The sum of wildcard reference and * tokens needs to match the number of * token in Subject.
type ExportTypeEnum: [stream service]
share boolean
allowTrace boolean

Appears in:

FieldDescriptionDefaultValidation
memStorage integer-1
diskStorage integer-1
streams integer-1
consumer integer-1
maxAckPending integer-1
memMaxStreamBytes integer-1
diskMaxStreamBytes integer-1
maxBytesRequired booleanfalse

Appears in:

FieldDescriptionDefaultValidation
name string
creationDate Time
expirationDate Time

Appears in:

FieldDescriptionDefaultValidation
subs integer-1
data integer-1
payload integer-1

Permission defines allow/deny subjects

Appears in:

FieldDescriptionDefaultValidation
allow StringList
deny StringList

Permissions are used to restrict subject access, either on a user or for everyone on a server by default

Appears in:

FieldDescriptionDefaultValidation
pub Permission
sub Permission
resp ResponsePermission

Underlying type: Subject

Appears in:

ResponsePermission can be used to allow responses to any reply subject that is received on a valid subscription.

Appears in:

FieldDescriptionDefaultValidation
max integer
ttl Duration

Underlying type: string

ResponseType is used to store an export response type

Validation:

  • Enum: [Singleton Stream Chunked]

Appears in:

Underlying type: object

Appears in:

Underlying type: integer

Appears in:

Appears in:

FieldDescriptionDefaultValidation
sampling SamplingRate
results Subject

Underlying type: string array

StringList is a wrapper for an array of strings

Appears in:

Underlying type: string

Subject is a string that represents a NATS subject

Appears in:

Underlying type: string array

TagList is a unique array of lower case strings All tag list methods lower case the strings in the arguments

Appears in:

TimeRange is used to represent a start and end time

Appears in:

FieldDescriptionDefaultValidation
start string
end string

User is the Schema for the users API.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringnauth.io/v1alpha1
kind stringUser
kind stringKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
apiVersion stringAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec UserSpec
status UserStatus

Appears in:

FieldDescriptionDefaultValidation
accountName string
permissions Permissions
natsLimits NatsLimits
userLimits UserLimits

Appears in:

FieldDescriptionDefaultValidation
src CIDRListSrc is a comma separated list of CIDR specifications
times TimeRange array
timesLocation string

UserList contains a list of User.

FieldDescriptionDefaultValidation
apiVersion stringnauth.io/v1alpha1
kind stringUserList
kind stringKind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
apiVersion stringAPIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items User array

UserSpec defines the desired state of User.

Appears in:

FieldDescriptionDefaultValidation
accountName stringAccountName references the account used to create the user.
permissions Permissions
userLimits UserLimits
natsLimits NatsLimits

UserStatus defines the observed state of User.

Appears in:

FieldDescriptionDefaultValidation
conditions Condition array
claims UserClaims
observedGeneration integer
reconcileTimestamp Time