basicv1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (BasicCredentialValidationError) Error

Error satisfies the builtin error interface

func (BasicCredentialValidationError) ErrorName

func (e BasicCredentialValidationError) ErrorName() string

ErrorName returns error name.

func (BasicCredentialValidationError) Field

Field function returns field value.

func (BasicCredentialValidationError) Key

Key function returns key value.

func (BasicCredentialValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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