Documentation
¶
Index ¶
- Variables
- type BasicCredential
- func (*BasicCredential) Descriptor() ([]byte, []int)deprecated
- func (x *BasicCredential) GetPassword() string
- func (x *BasicCredential) GetUsername() string
- func (*BasicCredential) ProtoMessage()
- func (x *BasicCredential) ProtoReflect() protoreflect.Message
- func (x *BasicCredential) Reset()
- func (x *BasicCredential) String() string
- func (m *BasicCredential) Validate() error
- func (m *BasicCredential) ValidateAll() error
- type BasicCredentialMultiError
- type BasicCredentialValidationError
- func (e BasicCredentialValidationError) Cause() error
- func (e BasicCredentialValidationError) Error() string
- func (e BasicCredentialValidationError) ErrorName() string
- func (e BasicCredentialValidationError) Field() string
- func (e BasicCredentialValidationError) Key() bool
- func (e BasicCredentialValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_security_authn_basic_v1_credential_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BasicCredential ¶
type BasicCredential 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
}
BasicCredential holds the credentials for HTTP Basic authentication.
func (*BasicCredential) Descriptor
deprecated
func (*BasicCredential) Descriptor() ([]byte, []int)
Deprecated: Use BasicCredential.ProtoReflect.Descriptor instead.
func (*BasicCredential) GetPassword ¶
func (x *BasicCredential) GetPassword() string
func (*BasicCredential) GetUsername ¶
func (x *BasicCredential) GetUsername() string
func (*BasicCredential) ProtoMessage ¶
func (*BasicCredential) ProtoMessage()
func (*BasicCredential) ProtoReflect ¶
func (x *BasicCredential) ProtoReflect() protoreflect.Message
func (*BasicCredential) Reset ¶
func (x *BasicCredential) Reset()
func (*BasicCredential) String ¶
func (x *BasicCredential) String() string
func (*BasicCredential) Validate ¶
func (m *BasicCredential) Validate() error
Validate checks the field values on BasicCredential 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 (*BasicCredential) ValidateAll ¶
func (m *BasicCredential) ValidateAll() error
ValidateAll checks the field values on BasicCredential 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 BasicCredentialMultiError, or nil if none found.
type BasicCredentialMultiError ¶
type BasicCredentialMultiError []error
BasicCredentialMultiError is an error wrapping multiple validation errors returned by BasicCredential.ValidateAll() if the designated constraints aren't met.
func (BasicCredentialMultiError) AllErrors ¶
func (m BasicCredentialMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BasicCredentialMultiError) Error ¶
func (m BasicCredentialMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BasicCredentialValidationError ¶
type BasicCredentialValidationError struct {
// contains filtered or unexported fields
}
BasicCredentialValidationError is the validation error returned by BasicCredential.Validate if the designated constraints aren't met.
func (BasicCredentialValidationError) Cause ¶
func (e BasicCredentialValidationError) Cause() error
Cause function returns cause value.
func (BasicCredentialValidationError) Error ¶
func (e BasicCredentialValidationError) Error() string
Error satisfies the builtin error interface
func (BasicCredentialValidationError) ErrorName ¶
func (e BasicCredentialValidationError) ErrorName() string
ErrorName returns error name.
func (BasicCredentialValidationError) Field ¶
func (e BasicCredentialValidationError) Field() string
Field function returns field value.
func (BasicCredentialValidationError) Key ¶
func (e BasicCredentialValidationError) Key() bool
Key function returns key value.
func (BasicCredentialValidationError) Reason ¶
func (e BasicCredentialValidationError) Reason() string
Reason function returns reason value.