authv1

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AuthN.ProtoReflect.Descriptor instead.

func (*AuthN) GetAuth

func (m *AuthN) GetAuth() isAuthN_Auth

func (*AuthN) GetBasic

func (x *AuthN) GetBasic() *BasicAuth

func (*AuthN) GetBearer

func (x *AuthN) GetBearer() *BearerAuth

func (*AuthN) GetType

func (x *AuthN) GetType() string

func (*AuthN) ProtoMessage

func (*AuthN) ProtoMessage()

func (*AuthN) ProtoReflect

func (x *AuthN) ProtoReflect() protoreflect.Message

func (*AuthN) Reset

func (x *AuthN) Reset()

func (*AuthN) String

func (x *AuthN) String() string

func (*AuthN) Validate

func (m *AuthN) Validate() error

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

func (m *AuthN) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use AuthZ.ProtoReflect.Descriptor instead.

func (*AuthZ) GetId

func (x *AuthZ) GetId() string

func (*AuthZ) GetRoles

func (x *AuthZ) GetRoles() []string

func (*AuthZ) GetRoot

func (x *AuthZ) GetRoot() bool

func (*AuthZ) GetTimestamp

func (x *AuthZ) GetTimestamp() *timestamppb.Timestamp

func (*AuthZ) GetUser

func (x *AuthZ) GetUser() string

func (*AuthZ) GetUsername

func (x *AuthZ) GetUsername() string

func (*AuthZ) ProtoMessage

func (*AuthZ) ProtoMessage()

func (*AuthZ) ProtoReflect

func (x *AuthZ) ProtoReflect() protoreflect.Message

func (*AuthZ) Reset

func (x *AuthZ) Reset()

func (*AuthZ) String

func (x *AuthZ) String() string

func (*AuthZ) Validate

func (m *AuthZ) Validate() error

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

func (m *AuthZ) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use BasicAuth.ProtoReflect.Descriptor instead.

func (*BasicAuth) GetPassword

func (x *BasicAuth) GetPassword() string

func (*BasicAuth) GetUsername

func (x *BasicAuth) GetUsername() string

func (*BasicAuth) ProtoMessage

func (*BasicAuth) ProtoMessage()

func (*BasicAuth) ProtoReflect

func (x *BasicAuth) ProtoReflect() protoreflect.Message

func (*BasicAuth) Reset

func (x *BasicAuth) Reset()

func (*BasicAuth) String

func (x *BasicAuth) String() string

func (*BasicAuth) Validate

func (m *BasicAuth) Validate() error

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

func (m *BasicAuth) ValidateAll() error

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

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

Error satisfies the builtin error interface

func (BearerAuthValidationError) ErrorName

func (e BearerAuthValidationError) ErrorName() string

ErrorName returns error name.

func (BearerAuthValidationError) Field

Field function returns field value.

func (BearerAuthValidationError) Key

Key function returns key value.

func (BearerAuthValidationError) Reason

func (e BearerAuthValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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