v3

package
v0.0.0-...-6005464 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Crypt.ProtoReflect.Descriptor instead.

func (*Crypt) GetDecryptRules

func (x *Crypt) GetDecryptRules() []*CryptRule

func (*Crypt) GetEncryptRules

func (x *Crypt) GetEncryptRules() []*CryptRule

func (*Crypt) GetSelfNamespace

func (x *Crypt) GetSelfNamespace() string

func (*Crypt) ProtoMessage

func (*Crypt) ProtoMessage()

func (*Crypt) ProtoReflect

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

func (*Crypt) Reset

func (x *Crypt) Reset()

func (*Crypt) String

func (x *Crypt) String() string

func (*Crypt) Validate

func (m *Crypt) Validate() error

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

func (m *Crypt) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use CryptRule.ProtoReflect.Descriptor instead.

func (*CryptRule) GetAlgorithm

func (x *CryptRule) GetAlgorithm() string

func (*CryptRule) GetDestination

func (x *CryptRule) GetDestination() string

func (*CryptRule) GetReserveKey

func (x *CryptRule) GetReserveKey() string

func (*CryptRule) GetReserveKeyVersion

func (x *CryptRule) GetReserveKeyVersion() string

func (*CryptRule) GetSecretKey

func (x *CryptRule) GetSecretKey() string

func (*CryptRule) GetSecretKeyVersion

func (x *CryptRule) GetSecretKeyVersion() string

func (*CryptRule) GetSource

func (x *CryptRule) GetSource() string

func (*CryptRule) ProtoMessage

func (*CryptRule) ProtoMessage()

func (*CryptRule) ProtoReflect

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

func (*CryptRule) Reset

func (x *CryptRule) Reset()

func (*CryptRule) String

func (x *CryptRule) String() string

func (*CryptRule) Validate

func (m *CryptRule) Validate() error

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

func (m *CryptRule) ValidateAll() error

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

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.

Jump to

Keyboard shortcuts

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