Documentation ¶
Index ¶
- Variables
- type Crypt
- func (*Crypt) Descriptor() ([]byte, []int)deprecated
- func (x *Crypt) GetDecryptRules() []*CryptRule
- func (x *Crypt) GetEncryptRules() []*CryptRule
- func (x *Crypt) GetSelfNamespace() string
- func (*Crypt) ProtoMessage()
- func (x *Crypt) ProtoReflect() protoreflect.Message
- func (x *Crypt) Reset()
- func (x *Crypt) String() string
- func (m *Crypt) Validate() error
- func (m *Crypt) ValidateAll() error
- type CryptMultiError
- type CryptRule
- func (*CryptRule) Descriptor() ([]byte, []int)deprecated
- func (x *CryptRule) GetAlgorithm() string
- func (x *CryptRule) GetDestination() string
- func (x *CryptRule) GetReserveKey() string
- func (x *CryptRule) GetReserveKeyVersion() string
- func (x *CryptRule) GetSecretKey() string
- func (x *CryptRule) GetSecretKeyVersion() string
- func (x *CryptRule) GetSource() string
- func (*CryptRule) ProtoMessage()
- func (x *CryptRule) ProtoReflect() protoreflect.Message
- func (x *CryptRule) Reset()
- func (x *CryptRule) String() string
- func (m *CryptRule) Validate() error
- func (m *CryptRule) ValidateAll() error
- type CryptRuleMultiError
- type CryptRuleValidationError
- type CryptValidationError
Constants ¶
This section is empty.
Variables ¶
var File_kuscia_api_filters_http_kuscia_crypt_v3_crypt_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Crypt ¶
type Crypt struct { SelfNamespace string `protobuf:"bytes,1,opt,name=self_namespace,json=selfNamespace,proto3" json:"self_namespace,omitempty"` EncryptRules []*CryptRule `protobuf:"bytes,2,rep,name=encrypt_rules,json=encryptRules,proto3" json:"encrypt_rules,omitempty"` DecryptRules []*CryptRule `protobuf:"bytes,3,rep,name=decrypt_rules,json=decryptRules,proto3" json:"decrypt_rules,omitempty"` // contains filtered or unexported fields }
func (*Crypt) Descriptor
deprecated
func (*Crypt) GetDecryptRules ¶
func (*Crypt) GetEncryptRules ¶
func (*Crypt) GetSelfNamespace ¶
func (*Crypt) ProtoMessage ¶
func (*Crypt) ProtoMessage()
func (*Crypt) ProtoReflect ¶
func (x *Crypt) ProtoReflect() protoreflect.Message
func (*Crypt) Validate ¶
Validate checks the field values on Crypt 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 (*Crypt) ValidateAll ¶
ValidateAll checks the field values on Crypt 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 CryptMultiError, or nil if none found.
type CryptMultiError ¶
type CryptMultiError []error
CryptMultiError is an error wrapping multiple validation errors returned by Crypt.ValidateAll() if the designated constraints aren't met.
func (CryptMultiError) AllErrors ¶
func (m CryptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CryptMultiError) Error ¶
func (m CryptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CryptRule ¶
type CryptRule struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` Algorithm string `protobuf:"bytes,3,opt,name=algorithm,proto3" json:"algorithm,omitempty"` SecretKey string `protobuf:"bytes,4,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` SecretKeyVersion string `protobuf:"bytes,5,opt,name=secret_key_version,json=secretKeyVersion,proto3" json:"secret_key_version,omitempty"` ReserveKey string `protobuf:"bytes,6,opt,name=reserve_key,json=reserveKey,proto3" json:"reserve_key,omitempty"` ReserveKeyVersion string `protobuf:"bytes,7,opt,name=reserve_key_version,json=reserveKeyVersion,proto3" json:"reserve_key_version,omitempty"` // contains filtered or unexported fields }
func (*CryptRule) Descriptor
deprecated
func (*CryptRule) GetAlgorithm ¶
func (*CryptRule) GetDestination ¶
func (*CryptRule) GetReserveKey ¶
func (*CryptRule) GetReserveKeyVersion ¶
func (*CryptRule) GetSecretKey ¶
func (*CryptRule) GetSecretKeyVersion ¶
func (*CryptRule) ProtoMessage ¶
func (*CryptRule) ProtoMessage()
func (*CryptRule) ProtoReflect ¶
func (x *CryptRule) ProtoReflect() protoreflect.Message
func (*CryptRule) Validate ¶
Validate checks the field values on CryptRule 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 (*CryptRule) ValidateAll ¶
ValidateAll checks the field values on CryptRule 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 CryptRuleMultiError, or nil if none found.
type CryptRuleMultiError ¶
type CryptRuleMultiError []error
CryptRuleMultiError is an error wrapping multiple validation errors returned by CryptRule.ValidateAll() if the designated constraints aren't met.
func (CryptRuleMultiError) AllErrors ¶
func (m CryptRuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CryptRuleMultiError) Error ¶
func (m CryptRuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CryptRuleValidationError ¶
type CryptRuleValidationError struct {
// contains filtered or unexported fields
}
CryptRuleValidationError is the validation error returned by CryptRule.Validate if the designated constraints aren't met.
func (CryptRuleValidationError) Cause ¶
func (e CryptRuleValidationError) Cause() error
Cause function returns cause value.
func (CryptRuleValidationError) Error ¶
func (e CryptRuleValidationError) Error() string
Error satisfies the builtin error interface
func (CryptRuleValidationError) ErrorName ¶
func (e CryptRuleValidationError) ErrorName() string
ErrorName returns error name.
func (CryptRuleValidationError) Field ¶
func (e CryptRuleValidationError) Field() string
Field function returns field value.
func (CryptRuleValidationError) Key ¶
func (e CryptRuleValidationError) Key() bool
Key function returns key value.
func (CryptRuleValidationError) Reason ¶
func (e CryptRuleValidationError) Reason() string
Reason function returns reason value.
type CryptValidationError ¶
type CryptValidationError struct {
// contains filtered or unexported fields
}
CryptValidationError is the validation error returned by Crypt.Validate if the designated constraints aren't met.
func (CryptValidationError) Cause ¶
func (e CryptValidationError) Cause() error
Cause function returns cause value.
func (CryptValidationError) Error ¶
func (e CryptValidationError) Error() string
Error satisfies the builtin error interface
func (CryptValidationError) ErrorName ¶
func (e CryptValidationError) ErrorName() string
ErrorName returns error name.
func (CryptValidationError) Field ¶
func (e CryptValidationError) Field() string
Field function returns field value.
func (CryptValidationError) Key ¶
func (e CryptValidationError) Key() bool
Key function returns key value.
func (CryptValidationError) Reason ¶
func (e CryptValidationError) Reason() string
Reason function returns reason value.