Documentation ¶
Index ¶
- Variables
- type AuthN
- func (*AuthN) Descriptor() ([]byte, []int)deprecated
- func (m *AuthN) GetAuth() isAuthN_Auth
- func (x *AuthN) GetBasic() *BasicAuth
- func (x *AuthN) GetBearer() *BearerAuth
- func (x *AuthN) GetType() string
- func (*AuthN) ProtoMessage()
- func (x *AuthN) ProtoReflect() protoreflect.Message
- func (x *AuthN) Reset()
- func (x *AuthN) String() string
- func (m *AuthN) Validate() error
- func (m *AuthN) ValidateAll() error
- type AuthNMultiError
- type AuthNValidationError
- type AuthN_Basic
- type AuthN_Bearer
- type AuthZ
- func (*AuthZ) Descriptor() ([]byte, []int)deprecated
- func (x *AuthZ) GetId() string
- func (x *AuthZ) GetRoles() []string
- func (x *AuthZ) GetRoot() bool
- func (x *AuthZ) GetTimestamp() *timestamppb.Timestamp
- func (x *AuthZ) GetUser() string
- func (x *AuthZ) GetUsername() string
- func (*AuthZ) ProtoMessage()
- func (x *AuthZ) ProtoReflect() protoreflect.Message
- func (x *AuthZ) Reset()
- func (x *AuthZ) String() string
- func (m *AuthZ) Validate() error
- func (m *AuthZ) ValidateAll() error
- type AuthZMultiError
- type AuthZValidationError
- type BasicAuth
- func (*BasicAuth) Descriptor() ([]byte, []int)deprecated
- func (x *BasicAuth) GetPassword() string
- func (x *BasicAuth) GetUsername() string
- func (*BasicAuth) ProtoMessage()
- func (x *BasicAuth) ProtoReflect() protoreflect.Message
- func (x *BasicAuth) Reset()
- func (x *BasicAuth) String() string
- func (m *BasicAuth) Validate() error
- func (m *BasicAuth) ValidateAll() error
- type BasicAuthMultiError
- type BasicAuthValidationError
- type BearerAuth
- func (*BearerAuth) Descriptor() ([]byte, []int)deprecated
- func (x *BearerAuth) GetToken() string
- func (*BearerAuth) ProtoMessage()
- func (x *BearerAuth) ProtoReflect() protoreflect.Message
- func (x *BearerAuth) Reset()
- func (x *BearerAuth) String() string
- func (m *BearerAuth) Validate() error
- func (m *BearerAuth) ValidateAll() error
- type BearerAuthMultiError
- type BearerAuthValidationError
Constants ¶
This section is empty.
Variables ¶
var File_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthN ¶
type AuthN struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Types that are assignable to Auth: // // *AuthN_Basic // *AuthN_Bearer Auth isAuthN_Auth `protobuf_oneof:"auth"` // contains filtered or unexported fields }
func (*AuthN) Descriptor
deprecated
func (*AuthN) GetBearer ¶
func (x *AuthN) GetBearer() *BearerAuth
func (*AuthN) ProtoMessage ¶
func (*AuthN) ProtoMessage()
func (*AuthN) ProtoReflect ¶
func (x *AuthN) ProtoReflect() protoreflect.Message
func (*AuthN) Validate ¶
Validate checks the field values on AuthN with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthN) ValidateAll ¶
ValidateAll checks the field values on AuthN with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthNMultiError, or nil if none found.
type AuthNMultiError ¶
type AuthNMultiError []error
AuthNMultiError is an error wrapping multiple validation errors returned by AuthN.ValidateAll() if the designated constraints aren't met.
func (AuthNMultiError) AllErrors ¶
func (m AuthNMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthNMultiError) Error ¶
func (m AuthNMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthNValidationError ¶
type AuthNValidationError struct {
// contains filtered or unexported fields
}
AuthNValidationError is the validation error returned by AuthN.Validate if the designated constraints aren't met.
func (AuthNValidationError) Cause ¶
func (e AuthNValidationError) Cause() error
Cause function returns cause value.
func (AuthNValidationError) Error ¶
func (e AuthNValidationError) Error() string
Error satisfies the builtin error interface
func (AuthNValidationError) ErrorName ¶
func (e AuthNValidationError) ErrorName() string
ErrorName returns error name.
func (AuthNValidationError) Field ¶
func (e AuthNValidationError) Field() string
Field function returns field value.
func (AuthNValidationError) Key ¶
func (e AuthNValidationError) Key() bool
Key function returns key value.
func (AuthNValidationError) Reason ¶
func (e AuthNValidationError) Reason() string
Reason function returns reason value.
type AuthN_Basic ¶
type AuthN_Basic struct {
Basic *BasicAuth `protobuf:"bytes,10,opt,name=basic,proto3,oneof"`
}
type AuthN_Bearer ¶
type AuthN_Bearer struct {
Bearer *BearerAuth `protobuf:"bytes,11,opt,name=bearer,proto3,oneof"`
}
type AuthZ ¶
type AuthZ struct { Root bool `protobuf:"varint,1,opt,name=root,proto3" json:"root,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` // Roles; Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*AuthZ) Descriptor
deprecated
func (*AuthZ) GetTimestamp ¶
func (x *AuthZ) GetTimestamp() *timestamppb.Timestamp
func (*AuthZ) GetUsername ¶
func (*AuthZ) ProtoMessage ¶
func (*AuthZ) ProtoMessage()
func (*AuthZ) ProtoReflect ¶
func (x *AuthZ) ProtoReflect() protoreflect.Message
func (*AuthZ) Validate ¶
Validate checks the field values on AuthZ with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthZ) ValidateAll ¶
ValidateAll checks the field values on AuthZ with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthZMultiError, or nil if none found.
type AuthZMultiError ¶
type AuthZMultiError []error
AuthZMultiError is an error wrapping multiple validation errors returned by AuthZ.ValidateAll() if the designated constraints aren't met.
func (AuthZMultiError) AllErrors ¶
func (m AuthZMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthZMultiError) Error ¶
func (m AuthZMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthZValidationError ¶
type AuthZValidationError struct {
// contains filtered or unexported fields
}
AuthZValidationError is the validation error returned by AuthZ.Validate if the designated constraints aren't met.
func (AuthZValidationError) Cause ¶
func (e AuthZValidationError) Cause() error
Cause function returns cause value.
func (AuthZValidationError) Error ¶
func (e AuthZValidationError) Error() string
Error satisfies the builtin error interface
func (AuthZValidationError) ErrorName ¶
func (e AuthZValidationError) ErrorName() string
ErrorName returns error name.
func (AuthZValidationError) Field ¶
func (e AuthZValidationError) Field() string
Field function returns field value.
func (AuthZValidationError) Key ¶
func (e AuthZValidationError) Key() bool
Key function returns key value.
func (AuthZValidationError) Reason ¶
func (e AuthZValidationError) Reason() string
Reason function returns reason value.
type BasicAuth ¶
type BasicAuth struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*BasicAuth) Descriptor
deprecated
func (*BasicAuth) GetPassword ¶
func (*BasicAuth) GetUsername ¶
func (*BasicAuth) ProtoMessage ¶
func (*BasicAuth) ProtoMessage()
func (*BasicAuth) ProtoReflect ¶
func (x *BasicAuth) ProtoReflect() protoreflect.Message
func (*BasicAuth) Validate ¶
Validate checks the field values on BasicAuth with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BasicAuth) ValidateAll ¶
ValidateAll checks the field values on BasicAuth with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BasicAuthMultiError, or nil if none found.
type BasicAuthMultiError ¶
type BasicAuthMultiError []error
BasicAuthMultiError is an error wrapping multiple validation errors returned by BasicAuth.ValidateAll() if the designated constraints aren't met.
func (BasicAuthMultiError) AllErrors ¶
func (m BasicAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BasicAuthMultiError) Error ¶
func (m BasicAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BasicAuthValidationError ¶
type BasicAuthValidationError struct {
// contains filtered or unexported fields
}
BasicAuthValidationError is the validation error returned by BasicAuth.Validate if the designated constraints aren't met.
func (BasicAuthValidationError) Cause ¶
func (e BasicAuthValidationError) Cause() error
Cause function returns cause value.
func (BasicAuthValidationError) Error ¶
func (e BasicAuthValidationError) Error() string
Error satisfies the builtin error interface
func (BasicAuthValidationError) ErrorName ¶
func (e BasicAuthValidationError) ErrorName() string
ErrorName returns error name.
func (BasicAuthValidationError) Field ¶
func (e BasicAuthValidationError) Field() string
Field function returns field value.
func (BasicAuthValidationError) Key ¶
func (e BasicAuthValidationError) Key() bool
Key function returns key value.
func (BasicAuthValidationError) Reason ¶
func (e BasicAuthValidationError) Reason() string
Reason function returns reason value.
type BearerAuth ¶
type BearerAuth struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*BearerAuth) Descriptor
deprecated
func (*BearerAuth) Descriptor() ([]byte, []int)
Deprecated: Use BearerAuth.ProtoReflect.Descriptor instead.
func (*BearerAuth) GetToken ¶
func (x *BearerAuth) GetToken() string
func (*BearerAuth) ProtoMessage ¶
func (*BearerAuth) ProtoMessage()
func (*BearerAuth) ProtoReflect ¶
func (x *BearerAuth) ProtoReflect() protoreflect.Message
func (*BearerAuth) Reset ¶
func (x *BearerAuth) Reset()
func (*BearerAuth) String ¶
func (x *BearerAuth) String() string
func (*BearerAuth) Validate ¶
func (m *BearerAuth) Validate() error
Validate checks the field values on BearerAuth with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BearerAuth) ValidateAll ¶
func (m *BearerAuth) ValidateAll() error
ValidateAll checks the field values on BearerAuth with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BearerAuthMultiError, or nil if none found.
type BearerAuthMultiError ¶
type BearerAuthMultiError []error
BearerAuthMultiError is an error wrapping multiple validation errors returned by BearerAuth.ValidateAll() if the designated constraints aren't met.
func (BearerAuthMultiError) AllErrors ¶
func (m BearerAuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BearerAuthMultiError) Error ¶
func (m BearerAuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BearerAuthValidationError ¶
type BearerAuthValidationError struct {
// contains filtered or unexported fields
}
BearerAuthValidationError is the validation error returned by BearerAuth.Validate if the designated constraints aren't met.
func (BearerAuthValidationError) Cause ¶
func (e BearerAuthValidationError) Cause() error
Cause function returns cause value.
func (BearerAuthValidationError) Error ¶
func (e BearerAuthValidationError) Error() string
Error satisfies the builtin error interface
func (BearerAuthValidationError) ErrorName ¶
func (e BearerAuthValidationError) ErrorName() string
ErrorName returns error name.
func (BearerAuthValidationError) Field ¶
func (e BearerAuthValidationError) Field() string
Field function returns field value.
func (BearerAuthValidationError) Key ¶
func (e BearerAuthValidationError) Key() bool
Key function returns key value.
func (BearerAuthValidationError) Reason ¶
func (e BearerAuthValidationError) Reason() string
Reason function returns reason value.