Documentation ¶
Index ¶
- Variables
- type Credential
- func (*Credential) Descriptor() ([]byte, []int)deprecated
- func (x *Credential) GetCaCert() []byte
- func (x *Credential) GetCert() []byte
- func (x *Credential) GetKey() []byte
- func (*Credential) ProtoMessage()
- func (x *Credential) ProtoReflect() protoreflect.Message
- func (x *Credential) Reset()
- func (x *Credential) String() string
- func (m *Credential) Validate() error
- func (m *Credential) ValidateAll() error
- type CredentialMultiError
- type CredentialValidationError
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (e CredentialValidationError) Error() string
Error satisfies the builtin error interface
func (CredentialValidationError) ErrorName ¶
func (e CredentialValidationError) ErrorName() string
ErrorName returns error name.
func (CredentialValidationError) Field ¶
func (e CredentialValidationError) Field() string
Field function returns field value.
func (CredentialValidationError) Key ¶
func (e CredentialValidationError) Key() bool
Key function returns key value.
func (CredentialValidationError) Reason ¶
func (e CredentialValidationError) Reason() string
Reason function returns reason value.