package v2

import "k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/v2"

Package v2 contains definition of kms-plugin's serialized types.

Index

Types

type EncryptedObject

type EncryptedObject struct {
	// EncryptedData is the encrypted data.
	EncryptedData []byte `protobuf:"bytes,1,opt,name=encryptedData,proto3" json:"encryptedData,omitempty"`
	// KeyID is the KMS key ID used for encryption operations.
	KeyID string `protobuf:"bytes,2,opt,name=keyID,proto3" json:"keyID,omitempty"`
	// EncryptedDEK is the encrypted DEK.
	EncryptedDEK []byte `protobuf:"bytes,3,opt,name=encryptedDEK,proto3" json:"encryptedDEK,omitempty"`
	// Annotations is additional metadata that was provided by the KMS plugin.
	Annotations          map[string][]byte `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

EncryptedObject is the representation of data stored in etcd after envelope encryption.

func (*EncryptedObject) Descriptor

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

func (*EncryptedObject) GetAnnotations

func (m *EncryptedObject) GetAnnotations() map[string][]byte

func (*EncryptedObject) GetEncryptedDEK

func (m *EncryptedObject) GetEncryptedDEK() []byte

func (*EncryptedObject) GetEncryptedData

func (m *EncryptedObject) GetEncryptedData() []byte

func (*EncryptedObject) GetKeyID

func (m *EncryptedObject) GetKeyID() string

func (*EncryptedObject) ProtoMessage

func (*EncryptedObject) ProtoMessage()

func (*EncryptedObject) Reset

func (m *EncryptedObject) Reset()

func (*EncryptedObject) String

func (m *EncryptedObject) String() string

func (*EncryptedObject) XXX_DiscardUnknown

func (m *EncryptedObject) XXX_DiscardUnknown()

func (*EncryptedObject) XXX_Marshal

func (m *EncryptedObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptedObject) XXX_Merge

func (m *EncryptedObject) XXX_Merge(src proto.Message)

func (*EncryptedObject) XXX_Size

func (m *EncryptedObject) XXX_Size() int

func (*EncryptedObject) XXX_Unmarshal

func (m *EncryptedObject) XXX_Unmarshal(b []byte) error

Source Files

api.pb.go v2.go

Version
v0.27.8
Published
Nov 15, 2023
Platform
js/wasm
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.