kmsadminpb

package
v0.0.0-...-9fa10a5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyRingsAdminService_CreateKeyRing_FullMethodName = "/blocky.kms.admin.v1alpha.KeyRingsAdminService/CreateKeyRing"
	KeyRingsAdminService_ListKeyRings_FullMethodName  = "/blocky.kms.admin.v1alpha.KeyRingsAdminService/ListKeyRings"
	KeyRingsAdminService_GetKeyRing_FullMethodName    = "/blocky.kms.admin.v1alpha.KeyRingsAdminService/GetKeyRing"
	KeyRingsAdminService_UpdateKeyRing_FullMethodName = "/blocky.kms.admin.v1alpha.KeyRingsAdminService/UpdateKeyRing"
	KeyRingsAdminService_DeleteKeyRing_FullMethodName = "/blocky.kms.admin.v1alpha.KeyRingsAdminService/DeleteKeyRing"
)
View Source
const (
	KeysAdminService_CreateKey_FullMethodName         = "/blocky.kms.admin.v1alpha.KeysAdminService/CreateKey"
	KeysAdminService_GetKey_FullMethodName            = "/blocky.kms.admin.v1alpha.KeysAdminService/GetKey"
	KeysAdminService_ListKeys_FullMethodName          = "/blocky.kms.admin.v1alpha.KeysAdminService/ListKeys"
	KeysAdminService_UpdateKey_FullMethodName         = "/blocky.kms.admin.v1alpha.KeysAdminService/UpdateKey"
	KeysAdminService_DeleteKey_FullMethodName         = "/blocky.kms.admin.v1alpha.KeysAdminService/DeleteKey"
	KeysAdminService_CreateKeyMaterial_FullMethodName = "/blocky.kms.admin.v1alpha.KeysAdminService/CreateKeyMaterial"
	KeysAdminService_GetKeyMaterial_FullMethodName    = "/blocky.kms.admin.v1alpha.KeysAdminService/GetKeyMaterial"
	KeysAdminService_ListKeyMaterials_FullMethodName  = "/blocky.kms.admin.v1alpha.KeysAdminService/ListKeyMaterials"
	KeysAdminService_DeleteKeyMaterial_FullMethodName = "/blocky.kms.admin.v1alpha.KeysAdminService/DeleteKeyMaterial"
)

Variables

View Source
var File_blocky_kms_admin_v1alpha_key_rings_admin_service_proto protoreflect.FileDescriptor
View Source
var File_blocky_kms_admin_v1alpha_keys_admin_service_proto protoreflect.FileDescriptor
View Source
var KeyRingsAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.kms.admin.v1alpha.KeyRingsAdminService",
	HandlerType: (*KeyRingsAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateKeyRing",
			Handler:    _KeyRingsAdminService_CreateKeyRing_Handler,
		},
		{
			MethodName: "ListKeyRings",
			Handler:    _KeyRingsAdminService_ListKeyRings_Handler,
		},
		{
			MethodName: "GetKeyRing",
			Handler:    _KeyRingsAdminService_GetKeyRing_Handler,
		},
		{
			MethodName: "UpdateKeyRing",
			Handler:    _KeyRingsAdminService_UpdateKeyRing_Handler,
		},
		{
			MethodName: "DeleteKeyRing",
			Handler:    _KeyRingsAdminService_DeleteKeyRing_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/kms/admin/v1alpha/key_rings_admin_service.proto",
}

KeyRingsAdminService_ServiceDesc is the grpc.ServiceDesc for KeyRingsAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var KeysAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.kms.admin.v1alpha.KeysAdminService",
	HandlerType: (*KeysAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateKey",
			Handler:    _KeysAdminService_CreateKey_Handler,
		},
		{
			MethodName: "GetKey",
			Handler:    _KeysAdminService_GetKey_Handler,
		},
		{
			MethodName: "ListKeys",
			Handler:    _KeysAdminService_ListKeys_Handler,
		},
		{
			MethodName: "UpdateKey",
			Handler:    _KeysAdminService_UpdateKey_Handler,
		},
		{
			MethodName: "DeleteKey",
			Handler:    _KeysAdminService_DeleteKey_Handler,
		},
		{
			MethodName: "CreateKeyMaterial",
			Handler:    _KeysAdminService_CreateKeyMaterial_Handler,
		},
		{
			MethodName: "GetKeyMaterial",
			Handler:    _KeysAdminService_GetKeyMaterial_Handler,
		},
		{
			MethodName: "ListKeyMaterials",
			Handler:    _KeysAdminService_ListKeyMaterials_Handler,
		},
		{
			MethodName: "DeleteKeyMaterial",
			Handler:    _KeysAdminService_DeleteKeyMaterial_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/kms/admin/v1alpha/keys_admin_service.proto",
}

KeysAdminService_ServiceDesc is the grpc.ServiceDesc for KeysAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKeyRingsAdminServiceServer

func RegisterKeyRingsAdminServiceServer(s grpc.ServiceRegistrar, srv KeyRingsAdminServiceServer)

func RegisterKeysAdminServiceServer

func RegisterKeysAdminServiceServer(s grpc.ServiceRegistrar, srv KeysAdminServiceServer)

Types

type CreateKeyMaterialRequest

type CreateKeyMaterialRequest struct {

	// Required. The resource name of the Key to rotate.
	// Format:
	// - `projects/{projects}/keys/{key}`
	// - `keys/{key}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.CreateKeyMaterial.

func (*CreateKeyMaterialRequest) Descriptor deprecated

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

Deprecated: Use CreateKeyMaterialRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyMaterialRequest) GetParent

func (x *CreateKeyMaterialRequest) GetParent() string

func (*CreateKeyMaterialRequest) ProtoMessage

func (*CreateKeyMaterialRequest) ProtoMessage()

func (*CreateKeyMaterialRequest) ProtoReflect

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

func (*CreateKeyMaterialRequest) Reset

func (x *CreateKeyMaterialRequest) Reset()

func (*CreateKeyMaterialRequest) String

func (x *CreateKeyMaterialRequest) String() string

type CreateKeyRequest

type CreateKeyRequest struct {

	// The parent resource name to which new key ring should belong.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The Key to create.
	Key *Key `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.CreateKey.

func (*CreateKeyRequest) Descriptor deprecated

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

Deprecated: Use CreateKeyRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyRequest) GetKey

func (x *CreateKeyRequest) GetKey() *Key

func (*CreateKeyRequest) GetParent

func (x *CreateKeyRequest) GetParent() string

func (*CreateKeyRequest) ProtoMessage

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) ProtoReflect

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

func (*CreateKeyRequest) Reset

func (x *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String

func (x *CreateKeyRequest) String() string

type CreateKeyRingRequest

type CreateKeyRingRequest struct {

	// The parent resource name to which new key ring should belong.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required, resource to create.
	KeyRing *KeyRing `protobuf:"bytes,2,opt,name=key_ring,json=keyRing,proto3" json:"key_ring,omitempty"`
	// contains filtered or unexported fields
}

The request message for

func (*CreateKeyRingRequest) Descriptor deprecated

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

Deprecated: Use CreateKeyRingRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyRingRequest) GetKeyRing

func (x *CreateKeyRingRequest) GetKeyRing() *KeyRing

func (*CreateKeyRingRequest) GetParent

func (x *CreateKeyRingRequest) GetParent() string

func (*CreateKeyRingRequest) ProtoMessage

func (*CreateKeyRingRequest) ProtoMessage()

func (*CreateKeyRingRequest) ProtoReflect

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

func (*CreateKeyRingRequest) Reset

func (x *CreateKeyRingRequest) Reset()

func (*CreateKeyRingRequest) String

func (x *CreateKeyRingRequest) String() string

type DeleteKeyMaterialRequest

type DeleteKeyMaterialRequest struct {

	// Required. The resource name of the KeyMaterial to delete.
	// Format:
	// - `projects/{projects}/keys/{key}/materials/{material}`
	// - `keys/{key}/materials/{material}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.DeleteKeyMaterial.

func (*DeleteKeyMaterialRequest) Descriptor deprecated

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

Deprecated: Use DeleteKeyMaterialRequest.ProtoReflect.Descriptor instead.

func (*DeleteKeyMaterialRequest) GetName

func (x *DeleteKeyMaterialRequest) GetName() string

func (*DeleteKeyMaterialRequest) ProtoMessage

func (*DeleteKeyMaterialRequest) ProtoMessage()

func (*DeleteKeyMaterialRequest) ProtoReflect

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

func (*DeleteKeyMaterialRequest) Reset

func (x *DeleteKeyMaterialRequest) Reset()

func (*DeleteKeyMaterialRequest) String

func (x *DeleteKeyMaterialRequest) String() string

type DeleteKeyRequest

type DeleteKeyRequest struct {

	// Required. The resource name of the Key to delete.
	// Format:
	// - `projects/{projects}/keys/{key}`
	// - `keys/{key}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.DeleteKey.

func (*DeleteKeyRequest) Descriptor deprecated

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

Deprecated: Use DeleteKeyRequest.ProtoReflect.Descriptor instead.

func (*DeleteKeyRequest) GetName

func (x *DeleteKeyRequest) GetName() string

func (*DeleteKeyRequest) ProtoMessage

func (*DeleteKeyRequest) ProtoMessage()

func (*DeleteKeyRequest) ProtoReflect

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

func (*DeleteKeyRequest) Reset

func (x *DeleteKeyRequest) Reset()

func (*DeleteKeyRequest) String

func (x *DeleteKeyRequest) String() string

type DeleteKeyRingRequest

type DeleteKeyRingRequest struct {

	// Required. The resource name of the key ring to delete.
	// Format:
	// - `projects/{project}/keyRings/{key_ring}`
	// - 'keyRings/{key_ring}'
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for DeleteKeyRingRequest.

func (*DeleteKeyRingRequest) Descriptor deprecated

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

Deprecated: Use DeleteKeyRingRequest.ProtoReflect.Descriptor instead.

func (*DeleteKeyRingRequest) GetName

func (x *DeleteKeyRingRequest) GetName() string

func (*DeleteKeyRingRequest) ProtoMessage

func (*DeleteKeyRingRequest) ProtoMessage()

func (*DeleteKeyRingRequest) ProtoReflect

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

func (*DeleteKeyRingRequest) Reset

func (x *DeleteKeyRingRequest) Reset()

func (*DeleteKeyRingRequest) String

func (x *DeleteKeyRingRequest) String() string

type GetKeyMaterialRequest

type GetKeyMaterialRequest struct {

	// Required. The resource name of the KeyMaterial to get.
	// Format:
	// - `projects/{projects}/keys/{key}/materials/{material}`
	// - `keys/{key}/materials/{material}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.GetKeyMaterial.

func (*GetKeyMaterialRequest) Descriptor deprecated

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

Deprecated: Use GetKeyMaterialRequest.ProtoReflect.Descriptor instead.

func (*GetKeyMaterialRequest) GetName

func (x *GetKeyMaterialRequest) GetName() string

func (*GetKeyMaterialRequest) ProtoMessage

func (*GetKeyMaterialRequest) ProtoMessage()

func (*GetKeyMaterialRequest) ProtoReflect

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

func (*GetKeyMaterialRequest) Reset

func (x *GetKeyMaterialRequest) Reset()

func (*GetKeyMaterialRequest) String

func (x *GetKeyMaterialRequest) String() string

type GetKeyRequest

type GetKeyRequest struct {

	// Required. The resource name of the Key to get.
	// The format of the key resource name:
	// - `projects/{project}/keys/{key}`
	// - `keys/{key}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.GetKey.

func (*GetKeyRequest) Descriptor deprecated

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

Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.

func (*GetKeyRequest) GetName

func (x *GetKeyRequest) GetName() string

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) ProtoReflect

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

func (*GetKeyRequest) Reset

func (x *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (x *GetKeyRequest) String() string

type GetKeyRingRequest

type GetKeyRingRequest struct {

	// Required. The resource name of the key ring to retrieve.
	// Format:
	// - `projects/{project}/keyRings/{key_ring}`
	// - 'keyRings/{key_ring}'
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for

func (*GetKeyRingRequest) Descriptor deprecated

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

Deprecated: Use GetKeyRingRequest.ProtoReflect.Descriptor instead.

func (*GetKeyRingRequest) GetName

func (x *GetKeyRingRequest) GetName() string

func (*GetKeyRingRequest) ProtoMessage

func (*GetKeyRingRequest) ProtoMessage()

func (*GetKeyRingRequest) ProtoReflect

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

func (*GetKeyRingRequest) Reset

func (x *GetKeyRingRequest) Reset()

func (*GetKeyRingRequest) String

func (x *GetKeyRingRequest) String() string

type Key

type Key struct {

	// Resource name of the Key.
	// The format of the key resource name:
	// - `keys/*`
	// - `projects/*/keys/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique server-generated UUID identifier for the key.
	// It could be used as the key identifier in its resource name.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The aliases that can be used to refer to the key.
	// The full path of the alias is:
	// - 'keys/{key_alias}'
	// - 'projects/*/keys/{key_alias}'
	Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// The key algorithm type
	AlgorithmType crypto.KeyAlgorithmType `` /* 142-byte string literal not displayed */
	// The parameters used to generate the key material.
	AlgorithmParameters *crypto.KeyAlgorithmParameters `protobuf:"bytes,5,opt,name=algorithm_parameters,json=algorithmParameters,proto3" json:"algorithm_parameters,omitempty"`
	// Supported signing algorithms of the key.
	SigningAlgorithms []crypto.SignatureAlgorithm `` /* 163-byte string literal not displayed */
	// Supported encryption algorithms of the key.
	EncryptionAlgorithms []crypto.EncryptionAlgorithm `` /* 173-byte string literal not displayed */
	// The display name of the key.
	DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Time when the key was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the key was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Time when the key was last rotated.
	LastRotatedTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_rotated_time,json=lastRotatedTime,proto3" json:"last_rotated_time,omitempty"`
	// Rotation interval of the material derived from this key.
	// If not provided, the key will not be rotated automatically.
	RotationInterval *durationpb.Duration `protobuf:"bytes,12,opt,name=rotation_interval,json=rotationInterval,proto3" json:"rotation_interval,omitempty"`
	// Determines if a key is protected against accidental deletion.
	// If not provided, the key will not be protected.
	DestroyProtection bool `protobuf:"varint,13,opt,name=destroy_protection,json=destroyProtection,proto3" json:"destroy_protection,omitempty"`
	// contains filtered or unexported fields
}

Key represents a cryptographic key.

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetAlgorithmParameters

func (x *Key) GetAlgorithmParameters() *crypto.KeyAlgorithmParameters

func (*Key) GetAlgorithmType

func (x *Key) GetAlgorithmType() crypto.KeyAlgorithmType

func (*Key) GetAliases

func (x *Key) GetAliases() []string

func (*Key) GetCreateTime

func (x *Key) GetCreateTime() *timestamppb.Timestamp

func (*Key) GetDestroyProtection

func (x *Key) GetDestroyProtection() bool

func (*Key) GetDisplayName

func (x *Key) GetDisplayName() string

func (*Key) GetEncryptionAlgorithms

func (x *Key) GetEncryptionAlgorithms() []crypto.EncryptionAlgorithm

func (*Key) GetLastRotatedTime

func (x *Key) GetLastRotatedTime() *timestamppb.Timestamp

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetRotationInterval

func (x *Key) GetRotationInterval() *durationpb.Duration

func (*Key) GetSigningAlgorithms

func (x *Key) GetSigningAlgorithms() []crypto.SignatureAlgorithm

func (*Key) GetUid

func (x *Key) GetUid() string

func (*Key) GetUpdateTime

func (x *Key) GetUpdateTime() *timestamppb.Timestamp

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type KeyMaterial

type KeyMaterial struct {

	// The resource name of the key material.
	// The format of the key material resource name:
	// `keys/*/materials/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The creation time of the key material.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Public key material content.
	PublicKey *crypto.KeyMaterial `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}

Is a cryptographic key material directly used for the cryptographic operations. The parameters of the material are derived from the key.

func (*KeyMaterial) Descriptor deprecated

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

Deprecated: Use KeyMaterial.ProtoReflect.Descriptor instead.

func (*KeyMaterial) GetCreateTime

func (x *KeyMaterial) GetCreateTime() *timestamppb.Timestamp

func (*KeyMaterial) GetName

func (x *KeyMaterial) GetName() string

func (*KeyMaterial) GetPublicKey

func (x *KeyMaterial) GetPublicKey() *crypto.KeyMaterial

func (*KeyMaterial) ProtoMessage

func (*KeyMaterial) ProtoMessage()

func (*KeyMaterial) ProtoReflect

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

func (*KeyMaterial) Reset

func (x *KeyMaterial) Reset()

func (*KeyMaterial) String

func (x *KeyMaterial) String() string

type KeyRing

type KeyRing struct {

	// The resource name of the key ring.
	// Key ring names have the form:
	// - `projects/{project}/keyRings/{key_ring}` - for project specific key rings
	// - 'keyRings/{key_ring}' - for root key rings
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique id of the key ring.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The display name of the key ring.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The aliases of the key ring.
	Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// Creation time of the key ring.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Update time of the key ring.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The resource names of the keys in this key ring.
	Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"`
	// Delete protection of the key ring.
	// When the delete protection is set to true, the key ring cannot be deleted,
	// and no keys in the key ring can be deleted either.
	DeleteProtection bool `protobuf:"varint,8,opt,name=delete_protection,json=deleteProtection,proto3" json:"delete_protection,omitempty"`
	// ETag of the key ring.
	Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

Is a ring of cryptographic keys, that can be combined and used for multiple purposes.

func (*KeyRing) Descriptor deprecated

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

Deprecated: Use KeyRing.ProtoReflect.Descriptor instead.

func (*KeyRing) GetAliases

func (x *KeyRing) GetAliases() []string

func (*KeyRing) GetCreateTime

func (x *KeyRing) GetCreateTime() *timestamppb.Timestamp

func (*KeyRing) GetDeleteProtection

func (x *KeyRing) GetDeleteProtection() bool

func (*KeyRing) GetDisplayName

func (x *KeyRing) GetDisplayName() string

func (*KeyRing) GetEtag

func (x *KeyRing) GetEtag() string

func (*KeyRing) GetKeys

func (x *KeyRing) GetKeys() []string

func (*KeyRing) GetName

func (x *KeyRing) GetName() string

func (*KeyRing) GetUid

func (x *KeyRing) GetUid() string

func (*KeyRing) GetUpdateTime

func (x *KeyRing) GetUpdateTime() *timestamppb.Timestamp

func (*KeyRing) ProtoMessage

func (*KeyRing) ProtoMessage()

func (*KeyRing) ProtoReflect

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

func (*KeyRing) Reset

func (x *KeyRing) Reset()

func (*KeyRing) String

func (x *KeyRing) String() string

type KeyRingsAdminServiceClient

type KeyRingsAdminServiceClient interface {
	// Create a new key ring.
	CreateKeyRing(ctx context.Context, in *CreateKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error)
	// List key rings.
	ListKeyRings(ctx context.Context, in *ListKeyRingsRequest, opts ...grpc.CallOption) (*ListKeyRingsResponse, error)
	// Get key ring.
	GetKeyRing(ctx context.Context, in *GetKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error)
	// Update key ring.
	UpdateKeyRing(ctx context.Context, in *UpdateKeyRingRequest, opts ...grpc.CallOption) (*KeyRing, error)
	// Delete key ring.
	DeleteKeyRing(ctx context.Context, in *DeleteKeyRingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

KeyRingsAdminServiceClient is the client API for KeyRingsAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KeyRingsAdminServiceServer

type KeyRingsAdminServiceServer interface {
	// Create a new key ring.
	CreateKeyRing(context.Context, *CreateKeyRingRequest) (*KeyRing, error)
	// List key rings.
	ListKeyRings(context.Context, *ListKeyRingsRequest) (*ListKeyRingsResponse, error)
	// Get key ring.
	GetKeyRing(context.Context, *GetKeyRingRequest) (*KeyRing, error)
	// Update key ring.
	UpdateKeyRing(context.Context, *UpdateKeyRingRequest) (*KeyRing, error)
	// Delete key ring.
	DeleteKeyRing(context.Context, *DeleteKeyRingRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

KeyRingsAdminServiceServer is the server API for KeyRingsAdminService service. All implementations must embed UnimplementedKeyRingsAdminServiceServer for forward compatibility

type KeysAdminServiceClient

type KeysAdminServiceClient interface {
	// Creates a new key.
	CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Gets a single key.
	GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Lists Keys.
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
	// Updates the metadata and/or key material of a Key.
	UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Deletes a Key.
	DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates a new key material of a Key.
	CreateKeyMaterial(ctx context.Context, in *CreateKeyMaterialRequest, opts ...grpc.CallOption) (*KeyMaterial, error)
	// Gets a key material by identifier.
	GetKeyMaterial(ctx context.Context, in *GetKeyMaterialRequest, opts ...grpc.CallOption) (*KeyMaterial, error)
	// Lists key materials.
	ListKeyMaterials(ctx context.Context, in *ListKeyMaterialsRequest, opts ...grpc.CallOption) (*ListKeyMaterialsResponse, error)
	// Deletes a key material
	DeleteKeyMaterial(ctx context.Context, in *DeleteKeyMaterialRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

KeysAdminServiceClient is the client API for KeysAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KeysAdminServiceServer

type KeysAdminServiceServer interface {
	// Creates a new key.
	CreateKey(context.Context, *CreateKeyRequest) (*Key, error)
	// Gets a single key.
	GetKey(context.Context, *GetKeyRequest) (*Key, error)
	// Lists Keys.
	ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
	// Updates the metadata and/or key material of a Key.
	UpdateKey(context.Context, *UpdateKeyRequest) (*Key, error)
	// Deletes a Key.
	DeleteKey(context.Context, *DeleteKeyRequest) (*emptypb.Empty, error)
	// Creates a new key material of a Key.
	CreateKeyMaterial(context.Context, *CreateKeyMaterialRequest) (*KeyMaterial, error)
	// Gets a key material by identifier.
	GetKeyMaterial(context.Context, *GetKeyMaterialRequest) (*KeyMaterial, error)
	// Lists key materials.
	ListKeyMaterials(context.Context, *ListKeyMaterialsRequest) (*ListKeyMaterialsResponse, error)
	// Deletes a key material
	DeleteKeyMaterial(context.Context, *DeleteKeyMaterialRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

KeysAdminServiceServer is the server API for KeysAdminService service. All implementations must embed UnimplementedKeysAdminServiceServer for forward compatibility

type ListKeyMaterialsRequest

type ListKeyMaterialsRequest struct {

	// Required. The resource name of the Key to list KeyMaterials from.
	// Format:
	// - `projects/{projects}/keys/{key}`
	// - `keys/{key}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of KeyMaterials to return. The service may return
	// fewer than this value. If unspecified, at most 50 KeyMaterials will be
	// returned. The maximum value is 100; values above 100 will be coerced to
	// 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A pagination token returned from a previous call to
	// ListKeyMaterials that indicates where this listing should continue from.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.ListKeyMaterials.

func (*ListKeyMaterialsRequest) Descriptor deprecated

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

Deprecated: Use ListKeyMaterialsRequest.ProtoReflect.Descriptor instead.

func (*ListKeyMaterialsRequest) GetPageSize

func (x *ListKeyMaterialsRequest) GetPageSize() int32

func (*ListKeyMaterialsRequest) GetPageToken

func (x *ListKeyMaterialsRequest) GetPageToken() string

func (*ListKeyMaterialsRequest) GetParent

func (x *ListKeyMaterialsRequest) GetParent() string

func (*ListKeyMaterialsRequest) ProtoMessage

func (*ListKeyMaterialsRequest) ProtoMessage()

func (*ListKeyMaterialsRequest) ProtoReflect

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

func (*ListKeyMaterialsRequest) Reset

func (x *ListKeyMaterialsRequest) Reset()

func (*ListKeyMaterialsRequest) String

func (x *ListKeyMaterialsRequest) String() string

type ListKeyMaterialsResponse

type ListKeyMaterialsResponse struct {

	// The list of KeyMaterials.
	KeyMaterials []*KeyMaterial `protobuf:"bytes,1,rep,name=key_materials,json=keyMaterials,proto3" json:"key_materials,omitempty"`
	// A token to retrieve next page of results. Pass this value in
	// ListKeyMaterialsRequest.page_token to retrieve the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for KeysAdminService.ListKeyMaterials.

func (*ListKeyMaterialsResponse) Descriptor deprecated

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

Deprecated: Use ListKeyMaterialsResponse.ProtoReflect.Descriptor instead.

func (*ListKeyMaterialsResponse) GetKeyMaterials

func (x *ListKeyMaterialsResponse) GetKeyMaterials() []*KeyMaterial

func (*ListKeyMaterialsResponse) GetNextPageToken

func (x *ListKeyMaterialsResponse) GetNextPageToken() string

func (*ListKeyMaterialsResponse) ProtoMessage

func (*ListKeyMaterialsResponse) ProtoMessage()

func (*ListKeyMaterialsResponse) ProtoReflect

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

func (*ListKeyMaterialsResponse) Reset

func (x *ListKeyMaterialsResponse) Reset()

func (*ListKeyMaterialsResponse) String

func (x *ListKeyMaterialsResponse) String() string

type ListKeyRingsRequest

type ListKeyRingsRequest struct {

	// The parent resource from which to list the key rings.
	// The format is:
	//   - `projects/{project}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of KeyRings to return in the response. The
	// server allows a maximum of 300 KeyRings to return. If unspecified, the
	// server will use 50 as the default, unless its configuration specifies
	// a smaller default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A pagination token returned from a previous call to
	// ListKeyRingsRequest that indicates where this listing should continue from.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for

func (*ListKeyRingsRequest) Descriptor deprecated

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

Deprecated: Use ListKeyRingsRequest.ProtoReflect.Descriptor instead.

func (*ListKeyRingsRequest) GetPageSize

func (x *ListKeyRingsRequest) GetPageSize() int32

func (*ListKeyRingsRequest) GetPageToken

func (x *ListKeyRingsRequest) GetPageToken() string

func (*ListKeyRingsRequest) GetParent

func (x *ListKeyRingsRequest) GetParent() string

func (*ListKeyRingsRequest) ProtoMessage

func (*ListKeyRingsRequest) ProtoMessage()

func (*ListKeyRingsRequest) ProtoReflect

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

func (*ListKeyRingsRequest) Reset

func (x *ListKeyRingsRequest) Reset()

func (*ListKeyRingsRequest) String

func (x *ListKeyRingsRequest) String() string

type ListKeyRingsResponse

type ListKeyRingsResponse struct {

	// List of key rings matching the request.
	KeyRings []*KeyRing `protobuf:"bytes,1,rep,name=key_rings,json=keyRings,proto3" json:"key_rings,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of KeyRings that matched the query.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

The response message for ListKeyRings method.

func (*ListKeyRingsResponse) Descriptor deprecated

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

Deprecated: Use ListKeyRingsResponse.ProtoReflect.Descriptor instead.

func (*ListKeyRingsResponse) GetKeyRings

func (x *ListKeyRingsResponse) GetKeyRings() []*KeyRing

func (*ListKeyRingsResponse) GetNextPageToken

func (x *ListKeyRingsResponse) GetNextPageToken() string

func (*ListKeyRingsResponse) GetTotalSize

func (x *ListKeyRingsResponse) GetTotalSize() int32

func (*ListKeyRingsResponse) ProtoMessage

func (*ListKeyRingsResponse) ProtoMessage()

func (*ListKeyRingsResponse) ProtoReflect

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

func (*ListKeyRingsResponse) Reset

func (x *ListKeyRingsResponse) Reset()

func (*ListKeyRingsResponse) String

func (x *ListKeyRingsResponse) String() string

type ListKeysRequest

type ListKeysRequest struct {

	// The parent resource name.
	// The format of the parent resource name:
	// - `projects/{project}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of keys to return. The service may return fewer than
	// this value. If unspecified, at most 50 keys will be returned. The maximum
	// value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A pagination token returned from a previous call to ListKeys
	// that indicates where this listing should continue from.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.ListKeys.

func (*ListKeysRequest) Descriptor deprecated

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

Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.

func (*ListKeysRequest) GetPageSize

func (x *ListKeysRequest) GetPageSize() int32

func (*ListKeysRequest) GetPageToken

func (x *ListKeysRequest) GetPageToken() string

func (*ListKeysRequest) GetParent

func (x *ListKeysRequest) GetParent() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) ProtoReflect

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

func (*ListKeysRequest) Reset

func (x *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (x *ListKeysRequest) String() string

type ListKeysResponse

type ListKeysResponse struct {

	// The list of Keys.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// A token to retrieve next page of results. Pass this value in
	// ListKeysRequest.page_token to retrieve the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for KeysAdminService.ListKeys.

func (*ListKeysResponse) Descriptor deprecated

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

Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.

func (*ListKeysResponse) GetKeys

func (x *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) GetNextPageToken

func (x *ListKeysResponse) GetNextPageToken() string

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) ProtoReflect

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

func (*ListKeysResponse) Reset

func (x *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (x *ListKeysResponse) String() string

type UnimplementedKeyRingsAdminServiceServer

type UnimplementedKeyRingsAdminServiceServer struct {
}

UnimplementedKeyRingsAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKeyRingsAdminServiceServer) CreateKeyRing

func (UnimplementedKeyRingsAdminServiceServer) DeleteKeyRing

func (UnimplementedKeyRingsAdminServiceServer) GetKeyRing

func (UnimplementedKeyRingsAdminServiceServer) ListKeyRings

func (UnimplementedKeyRingsAdminServiceServer) UpdateKeyRing

type UnimplementedKeysAdminServiceServer

type UnimplementedKeysAdminServiceServer struct {
}

UnimplementedKeysAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKeysAdminServiceServer) CreateKey

func (UnimplementedKeysAdminServiceServer) CreateKeyMaterial

func (UnimplementedKeysAdminServiceServer) DeleteKey

func (UnimplementedKeysAdminServiceServer) DeleteKeyMaterial

func (UnimplementedKeysAdminServiceServer) GetKey

func (UnimplementedKeysAdminServiceServer) GetKeyMaterial

func (UnimplementedKeysAdminServiceServer) ListKeyMaterials

func (UnimplementedKeysAdminServiceServer) ListKeys

func (UnimplementedKeysAdminServiceServer) UpdateKey

type UnsafeKeyRingsAdminServiceServer

type UnsafeKeyRingsAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKeyRingsAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyRingsAdminServiceServer will result in compilation errors.

type UnsafeKeysAdminServiceServer

type UnsafeKeysAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKeysAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeysAdminServiceServer will result in compilation errors.

type UpdateKeyRequest

type UpdateKeyRequest struct {

	// Required. The Key to update.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Required. The update mask applies to the resource. For the `FieldMask`
	// definition, see
	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	// If not set, all mutable fields will be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request message for KeysAdminService.UpdateKey.

func (*UpdateKeyRequest) Descriptor deprecated

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

Deprecated: Use UpdateKeyRequest.ProtoReflect.Descriptor instead.

func (*UpdateKeyRequest) GetKey

func (x *UpdateKeyRequest) GetKey() *Key

func (*UpdateKeyRequest) GetUpdateMask

func (x *UpdateKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateKeyRequest) ProtoMessage

func (*UpdateKeyRequest) ProtoMessage()

func (*UpdateKeyRequest) ProtoReflect

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

func (*UpdateKeyRequest) Reset

func (x *UpdateKeyRequest) Reset()

func (*UpdateKeyRequest) String

func (x *UpdateKeyRequest) String() string

type UpdateKeyRingRequest

type UpdateKeyRingRequest struct {

	// Required, resource to update.
	KeyRing *KeyRing `protobuf:"bytes,1,opt,name=key_ring,json=keyRing,proto3" json:"key_ring,omitempty"`
	// The list of fields to update.
	// If empty, all modifiable fields will be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request message for

func (*UpdateKeyRingRequest) Descriptor deprecated

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

Deprecated: Use UpdateKeyRingRequest.ProtoReflect.Descriptor instead.

func (*UpdateKeyRingRequest) GetKeyRing

func (x *UpdateKeyRingRequest) GetKeyRing() *KeyRing

func (*UpdateKeyRingRequest) GetUpdateMask

func (x *UpdateKeyRingRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateKeyRingRequest) ProtoMessage

func (*UpdateKeyRingRequest) ProtoMessage()

func (*UpdateKeyRingRequest) ProtoReflect

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

func (*UpdateKeyRingRequest) Reset

func (x *UpdateKeyRingRequest) Reset()

func (*UpdateKeyRingRequest) String

func (x *UpdateKeyRingRequest) String() string

Jump to

Keyboard shortcuts

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