v1

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_c1_utls_v1_tls_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Credential

type Credential struct {
	CaCert []byte `protobuf:"bytes,1,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
	Key    []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Cert   []byte `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

func (*Credential) Descriptor() ([]byte, []int)

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetCaCert

func (x *Credential) GetCaCert() []byte

func (*Credential) GetCert

func (x *Credential) GetCert() []byte

func (*Credential) GetKey

func (x *Credential) GetKey() []byte

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

func (*Credential) Validate

func (m *Credential) Validate() error

Validate checks the field values on Credential 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 (*Credential) ValidateAll

func (m *Credential) ValidateAll() error

ValidateAll checks the field values on Credential 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 CredentialMultiError, or nil if none found.

type CredentialMultiError

type CredentialMultiError []error

CredentialMultiError is an error wrapping multiple validation errors returned by Credential.ValidateAll() if the designated constraints aren't met.

func (CredentialMultiError) AllErrors

func (m CredentialMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CredentialMultiError) Error

func (m CredentialMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CredentialValidationError

type CredentialValidationError struct {
	// contains filtered or unexported fields
}

CredentialValidationError is the validation error returned by Credential.Validate if the designated constraints aren't met.

func (CredentialValidationError) Cause

func (e CredentialValidationError) Cause() error

Cause function returns cause value.

func (CredentialValidationError) Error

Error satisfies the builtin error interface

func (CredentialValidationError) ErrorName

func (e CredentialValidationError) ErrorName() string

ErrorName returns error name.

func (CredentialValidationError) Field

Field function returns field value.

func (CredentialValidationError) Key

Key function returns key value.

func (CredentialValidationError) Reason

func (e CredentialValidationError) 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