apiserver: k8s.io/apiserver/pkg/storage/value/encrypt/envelope/v1beta1 Index | Files

package v1beta1

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

Package v1beta1 contains definition of kms-plugin's gRPC service.

Index

Package Files

service.pb.go v1beta1.go

func IsVersionCheckMethod Uses

func IsVersionCheckMethod(method string) bool

IsVersionCheckMethod determines whether the supplied method is a version check against kms-plugin.

func RegisterKeyManagementServiceServer Uses

func RegisterKeyManagementServiceServer(s *grpc.Server, srv KeyManagementServiceServer)

type DecryptRequest Uses

type DecryptRequest struct {
    // Version of the KMS plugin API.
    Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    // The data to be decrypted.
    Cipher               []byte   `protobuf:"bytes,2,opt,name=cipher,proto3" json:"cipher,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptRequest) Descriptor Uses

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

func (*DecryptRequest) GetCipher Uses

func (m *DecryptRequest) GetCipher() []byte

func (*DecryptRequest) GetVersion Uses

func (m *DecryptRequest) GetVersion() string

func (*DecryptRequest) ProtoMessage Uses

func (*DecryptRequest) ProtoMessage()

func (*DecryptRequest) Reset Uses

func (m *DecryptRequest) Reset()

func (*DecryptRequest) String Uses

func (m *DecryptRequest) String() string

func (*DecryptRequest) XXX_DiscardUnknown Uses

func (m *DecryptRequest) XXX_DiscardUnknown()

func (*DecryptRequest) XXX_Marshal Uses

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

func (*DecryptRequest) XXX_Merge Uses

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

func (*DecryptRequest) XXX_Size Uses

func (m *DecryptRequest) XXX_Size() int

func (*DecryptRequest) XXX_Unmarshal Uses

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

type DecryptResponse Uses

type DecryptResponse struct {
    // The decrypted data.
    Plain                []byte   `protobuf:"bytes,1,opt,name=plain,proto3" json:"plain,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DecryptResponse) Descriptor Uses

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

func (*DecryptResponse) GetPlain Uses

func (m *DecryptResponse) GetPlain() []byte

func (*DecryptResponse) ProtoMessage Uses

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) Reset Uses

func (m *DecryptResponse) Reset()

func (*DecryptResponse) String Uses

func (m *DecryptResponse) String() string

func (*DecryptResponse) XXX_DiscardUnknown Uses

func (m *DecryptResponse) XXX_DiscardUnknown()

func (*DecryptResponse) XXX_Marshal Uses

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

func (*DecryptResponse) XXX_Merge Uses

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

func (*DecryptResponse) XXX_Size Uses

func (m *DecryptResponse) XXX_Size() int

func (*DecryptResponse) XXX_Unmarshal Uses

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

type EncryptRequest Uses

type EncryptRequest struct {
    // Version of the KMS plugin API.
    Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    // The data to be encrypted.
    Plain                []byte   `protobuf:"bytes,2,opt,name=plain,proto3" json:"plain,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EncryptRequest) Descriptor Uses

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

func (*EncryptRequest) GetPlain Uses

func (m *EncryptRequest) GetPlain() []byte

func (*EncryptRequest) GetVersion Uses

func (m *EncryptRequest) GetVersion() string

func (*EncryptRequest) ProtoMessage Uses

func (*EncryptRequest) ProtoMessage()

func (*EncryptRequest) Reset Uses

func (m *EncryptRequest) Reset()

func (*EncryptRequest) String Uses

func (m *EncryptRequest) String() string

func (*EncryptRequest) XXX_DiscardUnknown Uses

func (m *EncryptRequest) XXX_DiscardUnknown()

func (*EncryptRequest) XXX_Marshal Uses

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

func (*EncryptRequest) XXX_Merge Uses

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

func (*EncryptRequest) XXX_Size Uses

func (m *EncryptRequest) XXX_Size() int

func (*EncryptRequest) XXX_Unmarshal Uses

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

type EncryptResponse Uses

type EncryptResponse struct {
    // The encrypted data.
    Cipher               []byte   `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*EncryptResponse) Descriptor Uses

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

func (*EncryptResponse) GetCipher Uses

func (m *EncryptResponse) GetCipher() []byte

func (*EncryptResponse) ProtoMessage Uses

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) Reset Uses

func (m *EncryptResponse) Reset()

func (*EncryptResponse) String Uses

func (m *EncryptResponse) String() string

func (*EncryptResponse) XXX_DiscardUnknown Uses

func (m *EncryptResponse) XXX_DiscardUnknown()

func (*EncryptResponse) XXX_Marshal Uses

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

func (*EncryptResponse) XXX_Merge Uses

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

func (*EncryptResponse) XXX_Size Uses

func (m *EncryptResponse) XXX_Size() int

func (*EncryptResponse) XXX_Unmarshal Uses

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

type KeyManagementServiceClient Uses

type KeyManagementServiceClient interface {
    // Version returns the runtime name and runtime version of the KMS provider.
    Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
    // Execute decryption operation in KMS provider.
    Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
    // Execute encryption operation in KMS provider.
    Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
}

KeyManagementServiceClient is the client API for KeyManagementService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeyManagementServiceClient Uses

func NewKeyManagementServiceClient(cc *grpc.ClientConn) KeyManagementServiceClient

type KeyManagementServiceServer Uses

type KeyManagementServiceServer interface {
    // Version returns the runtime name and runtime version of the KMS provider.
    Version(context.Context, *VersionRequest) (*VersionResponse, error)
    // Execute decryption operation in KMS provider.
    Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
    // Execute encryption operation in KMS provider.
    Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
}

KeyManagementServiceServer is the server API for KeyManagementService service.

type UnimplementedKeyManagementServiceServer Uses

type UnimplementedKeyManagementServiceServer struct {
}

UnimplementedKeyManagementServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeyManagementServiceServer) Decrypt Uses

func (*UnimplementedKeyManagementServiceServer) Decrypt(ctx context.Context, req *DecryptRequest) (*DecryptResponse, error)

func (*UnimplementedKeyManagementServiceServer) Encrypt Uses

func (*UnimplementedKeyManagementServiceServer) Encrypt(ctx context.Context, req *EncryptRequest) (*EncryptResponse, error)

func (*UnimplementedKeyManagementServiceServer) Version Uses

func (*UnimplementedKeyManagementServiceServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error)

type VersionRequest Uses

type VersionRequest struct {
    // Version of the KMS plugin API.
    Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*VersionRequest) Descriptor Uses

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

func (*VersionRequest) GetVersion Uses

func (m *VersionRequest) GetVersion() string

func (*VersionRequest) ProtoMessage Uses

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) Reset Uses

func (m *VersionRequest) Reset()

func (*VersionRequest) String Uses

func (m *VersionRequest) String() string

func (*VersionRequest) XXX_DiscardUnknown Uses

func (m *VersionRequest) XXX_DiscardUnknown()

func (*VersionRequest) XXX_Marshal Uses

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

func (*VersionRequest) XXX_Merge Uses

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

func (*VersionRequest) XXX_Size Uses

func (m *VersionRequest) XXX_Size() int

func (*VersionRequest) XXX_Unmarshal Uses

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

type VersionResponse Uses

type VersionResponse struct {
    // Version of the KMS plugin API.
    Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    // Name of the KMS provider.
    RuntimeName string `protobuf:"bytes,2,opt,name=runtime_name,json=runtimeName,proto3" json:"runtime_name,omitempty"`
    // Version of the KMS provider. The string must be semver-compatible.
    RuntimeVersion       string   `protobuf:"bytes,3,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*VersionResponse) Descriptor Uses

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

func (*VersionResponse) GetRuntimeName Uses

func (m *VersionResponse) GetRuntimeName() string

func (*VersionResponse) GetRuntimeVersion Uses

func (m *VersionResponse) GetRuntimeVersion() string

func (*VersionResponse) GetVersion Uses

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage Uses

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset Uses

func (m *VersionResponse) Reset()

func (*VersionResponse) String Uses

func (m *VersionResponse) String() string

func (*VersionResponse) XXX_DiscardUnknown Uses

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal Uses

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

func (*VersionResponse) XXX_Merge Uses

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

func (*VersionResponse) XXX_Size Uses

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal Uses

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

Package v1beta1 imports 7 packages (graph) and is imported by 8 packages. Updated 2019-10-31. Refresh now. Tools for package owners.