lockbox

package
v0.0.0-...-5fa7aab Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 16 Imported by: 15

Documentation

Index

Constants

View Source
const (
	SecretService_Get_FullMethodName                        = "/yandex.cloud.lockbox.v1.SecretService/Get"
	SecretService_List_FullMethodName                       = "/yandex.cloud.lockbox.v1.SecretService/List"
	SecretService_Create_FullMethodName                     = "/yandex.cloud.lockbox.v1.SecretService/Create"
	SecretService_Update_FullMethodName                     = "/yandex.cloud.lockbox.v1.SecretService/Update"
	SecretService_Delete_FullMethodName                     = "/yandex.cloud.lockbox.v1.SecretService/Delete"
	SecretService_Activate_FullMethodName                   = "/yandex.cloud.lockbox.v1.SecretService/Activate"
	SecretService_Deactivate_FullMethodName                 = "/yandex.cloud.lockbox.v1.SecretService/Deactivate"
	SecretService_ListVersions_FullMethodName               = "/yandex.cloud.lockbox.v1.SecretService/ListVersions"
	SecretService_AddVersion_FullMethodName                 = "/yandex.cloud.lockbox.v1.SecretService/AddVersion"
	SecretService_ScheduleVersionDestruction_FullMethodName = "/yandex.cloud.lockbox.v1.SecretService/ScheduleVersionDestruction"
	SecretService_CancelVersionDestruction_FullMethodName   = "/yandex.cloud.lockbox.v1.SecretService/CancelVersionDestruction"
	SecretService_ListOperations_FullMethodName             = "/yandex.cloud.lockbox.v1.SecretService/ListOperations"
	SecretService_ListAccessBindings_FullMethodName         = "/yandex.cloud.lockbox.v1.SecretService/ListAccessBindings"
	SecretService_SetAccessBindings_FullMethodName          = "/yandex.cloud.lockbox.v1.SecretService/SetAccessBindings"
	SecretService_UpdateAccessBindings_FullMethodName       = "/yandex.cloud.lockbox.v1.SecretService/UpdateAccessBindings"
)
View Source
const (
	PayloadService_Get_FullMethodName = "/yandex.cloud.lockbox.v1.PayloadService/Get"
)

Variables

View Source
var (
	Secret_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "ACTIVE",
		3: "INACTIVE",
	}
	Secret_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"ACTIVE":             2,
		"INACTIVE":           3,
	}
)

Enum value maps for Secret_Status.

View Source
var (
	Version_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "ACTIVE",
		2: "SCHEDULED_FOR_DESTRUCTION",
		3: "DESTROYED",
	}
	Version_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":        0,
		"ACTIVE":                    1,
		"SCHEDULED_FOR_DESTRUCTION": 2,
		"DESTROYED":                 3,
	}
)

Enum value maps for Version_Status.

View Source
var File_yandex_cloud_lockbox_v1_payload_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_lockbox_v1_payload_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_lockbox_v1_secret_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_lockbox_v1_secret_service_proto protoreflect.FileDescriptor
View Source
var PayloadService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.lockbox.v1.PayloadService",
	HandlerType: (*PayloadServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _PayloadService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/lockbox/v1/payload_service.proto",
}

PayloadService_ServiceDesc is the grpc.ServiceDesc for PayloadService 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 SecretService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.lockbox.v1.SecretService",
	HandlerType: (*SecretServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _SecretService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _SecretService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _SecretService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _SecretService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _SecretService_Delete_Handler,
		},
		{
			MethodName: "Activate",
			Handler:    _SecretService_Activate_Handler,
		},
		{
			MethodName: "Deactivate",
			Handler:    _SecretService_Deactivate_Handler,
		},
		{
			MethodName: "ListVersions",
			Handler:    _SecretService_ListVersions_Handler,
		},
		{
			MethodName: "AddVersion",
			Handler:    _SecretService_AddVersion_Handler,
		},
		{
			MethodName: "ScheduleVersionDestruction",
			Handler:    _SecretService_ScheduleVersionDestruction_Handler,
		},
		{
			MethodName: "CancelVersionDestruction",
			Handler:    _SecretService_CancelVersionDestruction_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _SecretService_ListOperations_Handler,
		},
		{
			MethodName: "ListAccessBindings",
			Handler:    _SecretService_ListAccessBindings_Handler,
		},
		{
			MethodName: "SetAccessBindings",
			Handler:    _SecretService_SetAccessBindings_Handler,
		},
		{
			MethodName: "UpdateAccessBindings",
			Handler:    _SecretService_UpdateAccessBindings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/lockbox/v1/secret_service.proto",
}

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

Functions

func RegisterPayloadServiceServer

func RegisterPayloadServiceServer(s grpc.ServiceRegistrar, srv PayloadServiceServer)

func RegisterSecretServiceServer

func RegisterSecretServiceServer(s grpc.ServiceRegistrar, srv SecretServiceServer)

Types

type ActivateSecretMetadata

type ActivateSecretMetadata struct {

	// ID of the secret being activated.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateSecretMetadata) Descriptor deprecated

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

Deprecated: Use ActivateSecretMetadata.ProtoReflect.Descriptor instead.

func (*ActivateSecretMetadata) GetSecretId

func (x *ActivateSecretMetadata) GetSecretId() string

func (*ActivateSecretMetadata) ProtoMessage

func (*ActivateSecretMetadata) ProtoMessage()

func (*ActivateSecretMetadata) ProtoReflect

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

func (*ActivateSecretMetadata) Reset

func (x *ActivateSecretMetadata) Reset()

func (*ActivateSecretMetadata) SetSecretId

func (m *ActivateSecretMetadata) SetSecretId(v string)

func (*ActivateSecretMetadata) String

func (x *ActivateSecretMetadata) String() string

type ActivateSecretRequest

type ActivateSecretRequest struct {

	// ID of the secret to be activated.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateSecretRequest) Descriptor deprecated

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

Deprecated: Use ActivateSecretRequest.ProtoReflect.Descriptor instead.

func (*ActivateSecretRequest) GetSecretId

func (x *ActivateSecretRequest) GetSecretId() string

func (*ActivateSecretRequest) ProtoMessage

func (*ActivateSecretRequest) ProtoMessage()

func (*ActivateSecretRequest) ProtoReflect

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

func (*ActivateSecretRequest) Reset

func (x *ActivateSecretRequest) Reset()

func (*ActivateSecretRequest) SetSecretId

func (m *ActivateSecretRequest) SetSecretId(v string)

func (*ActivateSecretRequest) String

func (x *ActivateSecretRequest) String() string

type AddVersionMetadata

type AddVersionMetadata struct {

	// ID of the secret.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the added version.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddVersionMetadata) Descriptor deprecated

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

Deprecated: Use AddVersionMetadata.ProtoReflect.Descriptor instead.

func (*AddVersionMetadata) GetSecretId

func (x *AddVersionMetadata) GetSecretId() string

func (*AddVersionMetadata) GetVersionId

func (x *AddVersionMetadata) GetVersionId() string

func (*AddVersionMetadata) ProtoMessage

func (*AddVersionMetadata) ProtoMessage()

func (*AddVersionMetadata) ProtoReflect

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

func (*AddVersionMetadata) Reset

func (x *AddVersionMetadata) Reset()

func (*AddVersionMetadata) SetSecretId

func (m *AddVersionMetadata) SetSecretId(v string)

func (*AddVersionMetadata) SetVersionId

func (m *AddVersionMetadata) SetVersionId(v string)

func (*AddVersionMetadata) String

func (x *AddVersionMetadata) String() string

type AddVersionRequest

type AddVersionRequest struct {

	// ID of the secret.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Description of the version.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Describe how payload entries of the base version change in the added version.
	PayloadEntries []*PayloadEntryChange `protobuf:"bytes,3,rep,name=payload_entries,json=payloadEntries,proto3" json:"payload_entries,omitempty"`
	// Optional base version id. Defaults to the current version if not specified
	BaseVersionId string `protobuf:"bytes,4,opt,name=base_version_id,json=baseVersionId,proto3" json:"base_version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddVersionRequest) Descriptor deprecated

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

Deprecated: Use AddVersionRequest.ProtoReflect.Descriptor instead.

func (*AddVersionRequest) GetBaseVersionId

func (x *AddVersionRequest) GetBaseVersionId() string

func (*AddVersionRequest) GetDescription

func (x *AddVersionRequest) GetDescription() string

func (*AddVersionRequest) GetPayloadEntries

func (x *AddVersionRequest) GetPayloadEntries() []*PayloadEntryChange

func (*AddVersionRequest) GetSecretId

func (x *AddVersionRequest) GetSecretId() string

func (*AddVersionRequest) ProtoMessage

func (*AddVersionRequest) ProtoMessage()

func (*AddVersionRequest) ProtoReflect

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

func (*AddVersionRequest) Reset

func (x *AddVersionRequest) Reset()

func (*AddVersionRequest) SetBaseVersionId

func (m *AddVersionRequest) SetBaseVersionId(v string)

func (*AddVersionRequest) SetDescription

func (m *AddVersionRequest) SetDescription(v string)

func (*AddVersionRequest) SetPayloadEntries

func (m *AddVersionRequest) SetPayloadEntries(v []*PayloadEntryChange)

func (*AddVersionRequest) SetSecretId

func (m *AddVersionRequest) SetSecretId(v string)

func (*AddVersionRequest) String

func (x *AddVersionRequest) String() string

type CancelVersionDestructionMetadata

type CancelVersionDestructionMetadata struct {

	// ID of the secret whose version's destruction is being cancelled.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the version whose scheduled destruction is being cancelled.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelVersionDestructionMetadata) Descriptor deprecated

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

Deprecated: Use CancelVersionDestructionMetadata.ProtoReflect.Descriptor instead.

func (*CancelVersionDestructionMetadata) GetSecretId

func (x *CancelVersionDestructionMetadata) GetSecretId() string

func (*CancelVersionDestructionMetadata) GetVersionId

func (x *CancelVersionDestructionMetadata) GetVersionId() string

func (*CancelVersionDestructionMetadata) ProtoMessage

func (*CancelVersionDestructionMetadata) ProtoMessage()

func (*CancelVersionDestructionMetadata) ProtoReflect

func (*CancelVersionDestructionMetadata) Reset

func (*CancelVersionDestructionMetadata) SetSecretId

func (m *CancelVersionDestructionMetadata) SetSecretId(v string)

func (*CancelVersionDestructionMetadata) SetVersionId

func (m *CancelVersionDestructionMetadata) SetVersionId(v string)

func (*CancelVersionDestructionMetadata) String

type CancelVersionDestructionRequest

type CancelVersionDestructionRequest struct {

	// ID of the secret to cancel a version's destruction for.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the secret whose scheduled destruction should be cancelled.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelVersionDestructionRequest) Descriptor deprecated

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

Deprecated: Use CancelVersionDestructionRequest.ProtoReflect.Descriptor instead.

func (*CancelVersionDestructionRequest) GetSecretId

func (x *CancelVersionDestructionRequest) GetSecretId() string

func (*CancelVersionDestructionRequest) GetVersionId

func (x *CancelVersionDestructionRequest) GetVersionId() string

func (*CancelVersionDestructionRequest) ProtoMessage

func (*CancelVersionDestructionRequest) ProtoMessage()

func (*CancelVersionDestructionRequest) ProtoReflect

func (*CancelVersionDestructionRequest) Reset

func (*CancelVersionDestructionRequest) SetSecretId

func (m *CancelVersionDestructionRequest) SetSecretId(v string)

func (*CancelVersionDestructionRequest) SetVersionId

func (m *CancelVersionDestructionRequest) SetVersionId(v string)

func (*CancelVersionDestructionRequest) String

type CreateSecretMetadata

type CreateSecretMetadata struct {

	// ID of the secret being created.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the current version of the secret being created.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSecretMetadata) Descriptor deprecated

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

Deprecated: Use CreateSecretMetadata.ProtoReflect.Descriptor instead.

func (*CreateSecretMetadata) GetSecretId

func (x *CreateSecretMetadata) GetSecretId() string

func (*CreateSecretMetadata) GetVersionId

func (x *CreateSecretMetadata) GetVersionId() string

func (*CreateSecretMetadata) ProtoMessage

func (*CreateSecretMetadata) ProtoMessage()

func (*CreateSecretMetadata) ProtoReflect

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

func (*CreateSecretMetadata) Reset

func (x *CreateSecretMetadata) Reset()

func (*CreateSecretMetadata) SetSecretId

func (m *CreateSecretMetadata) SetSecretId(v string)

func (*CreateSecretMetadata) SetVersionId

func (m *CreateSecretMetadata) SetVersionId(v string)

func (*CreateSecretMetadata) String

func (x *CreateSecretMetadata) String() string

type CreateSecretRequest

type CreateSecretRequest struct {

	// ID of the folder to create a secret in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the secret.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the secret.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
	// For example, `"project": "mvp"` or `"source": "dictionary"`.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Optional ID of the KMS key will be used to encrypt and decrypt the secret.
	KmsKeyId string `protobuf:"bytes,5,opt,name=kms_key_id,json=kmsKeyId,proto3" json:"kms_key_id,omitempty"`
	// Description of the first version.
	VersionDescription string `protobuf:"bytes,6,opt,name=version_description,json=versionDescription,proto3" json:"version_description,omitempty"`
	// Payload entries added to the first version.
	VersionPayloadEntries []*PayloadEntryChange `` /* 126-byte string literal not displayed */
	// Flag that inhibits deletion of the secret.
	DeletionProtection bool `protobuf:"varint,8,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSecretRequest) Descriptor deprecated

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

Deprecated: Use CreateSecretRequest.ProtoReflect.Descriptor instead.

func (*CreateSecretRequest) GetDeletionProtection

func (x *CreateSecretRequest) GetDeletionProtection() bool

func (*CreateSecretRequest) GetDescription

func (x *CreateSecretRequest) GetDescription() string

func (*CreateSecretRequest) GetFolderId

func (x *CreateSecretRequest) GetFolderId() string

func (*CreateSecretRequest) GetKmsKeyId

func (x *CreateSecretRequest) GetKmsKeyId() string

func (*CreateSecretRequest) GetLabels

func (x *CreateSecretRequest) GetLabels() map[string]string

func (*CreateSecretRequest) GetName

func (x *CreateSecretRequest) GetName() string

func (*CreateSecretRequest) GetVersionDescription

func (x *CreateSecretRequest) GetVersionDescription() string

func (*CreateSecretRequest) GetVersionPayloadEntries

func (x *CreateSecretRequest) GetVersionPayloadEntries() []*PayloadEntryChange

func (*CreateSecretRequest) ProtoMessage

func (*CreateSecretRequest) ProtoMessage()

func (*CreateSecretRequest) ProtoReflect

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

func (*CreateSecretRequest) Reset

func (x *CreateSecretRequest) Reset()

func (*CreateSecretRequest) SetDeletionProtection

func (m *CreateSecretRequest) SetDeletionProtection(v bool)

func (*CreateSecretRequest) SetDescription

func (m *CreateSecretRequest) SetDescription(v string)

func (*CreateSecretRequest) SetFolderId

func (m *CreateSecretRequest) SetFolderId(v string)

func (*CreateSecretRequest) SetKmsKeyId

func (m *CreateSecretRequest) SetKmsKeyId(v string)

func (*CreateSecretRequest) SetLabels

func (m *CreateSecretRequest) SetLabels(v map[string]string)

func (*CreateSecretRequest) SetName

func (m *CreateSecretRequest) SetName(v string)

func (*CreateSecretRequest) SetVersionDescription

func (m *CreateSecretRequest) SetVersionDescription(v string)

func (*CreateSecretRequest) SetVersionPayloadEntries

func (m *CreateSecretRequest) SetVersionPayloadEntries(v []*PayloadEntryChange)

func (*CreateSecretRequest) String

func (x *CreateSecretRequest) String() string

type DeactivateSecretMetadata

type DeactivateSecretMetadata struct {

	// ID of the secret being deactivated.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeactivateSecretMetadata) Descriptor deprecated

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

Deprecated: Use DeactivateSecretMetadata.ProtoReflect.Descriptor instead.

func (*DeactivateSecretMetadata) GetSecretId

func (x *DeactivateSecretMetadata) GetSecretId() string

func (*DeactivateSecretMetadata) ProtoMessage

func (*DeactivateSecretMetadata) ProtoMessage()

func (*DeactivateSecretMetadata) ProtoReflect

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

func (*DeactivateSecretMetadata) Reset

func (x *DeactivateSecretMetadata) Reset()

func (*DeactivateSecretMetadata) SetSecretId

func (m *DeactivateSecretMetadata) SetSecretId(v string)

func (*DeactivateSecretMetadata) String

func (x *DeactivateSecretMetadata) String() string

type DeactivateSecretRequest

type DeactivateSecretRequest struct {

	// ID of the secret to be deactivated.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeactivateSecretRequest) Descriptor deprecated

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

Deprecated: Use DeactivateSecretRequest.ProtoReflect.Descriptor instead.

func (*DeactivateSecretRequest) GetSecretId

func (x *DeactivateSecretRequest) GetSecretId() string

func (*DeactivateSecretRequest) ProtoMessage

func (*DeactivateSecretRequest) ProtoMessage()

func (*DeactivateSecretRequest) ProtoReflect

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

func (*DeactivateSecretRequest) Reset

func (x *DeactivateSecretRequest) Reset()

func (*DeactivateSecretRequest) SetSecretId

func (m *DeactivateSecretRequest) SetSecretId(v string)

func (*DeactivateSecretRequest) String

func (x *DeactivateSecretRequest) String() string

type DeleteSecretMetadata

type DeleteSecretMetadata struct {

	// ID of the secret being deleted.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSecretMetadata) Descriptor deprecated

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

Deprecated: Use DeleteSecretMetadata.ProtoReflect.Descriptor instead.

func (*DeleteSecretMetadata) GetSecretId

func (x *DeleteSecretMetadata) GetSecretId() string

func (*DeleteSecretMetadata) ProtoMessage

func (*DeleteSecretMetadata) ProtoMessage()

func (*DeleteSecretMetadata) ProtoReflect

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

func (*DeleteSecretMetadata) Reset

func (x *DeleteSecretMetadata) Reset()

func (*DeleteSecretMetadata) SetSecretId

func (m *DeleteSecretMetadata) SetSecretId(v string)

func (*DeleteSecretMetadata) String

func (x *DeleteSecretMetadata) String() string

type DeleteSecretRequest

type DeleteSecretRequest struct {

	// ID of the secret to be deleted.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSecretRequest) Descriptor deprecated

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

Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.

func (*DeleteSecretRequest) GetSecretId

func (x *DeleteSecretRequest) GetSecretId() string

func (*DeleteSecretRequest) ProtoMessage

func (*DeleteSecretRequest) ProtoMessage()

func (*DeleteSecretRequest) ProtoReflect

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

func (*DeleteSecretRequest) Reset

func (x *DeleteSecretRequest) Reset()

func (*DeleteSecretRequest) SetSecretId

func (m *DeleteSecretRequest) SetSecretId(v string)

func (*DeleteSecretRequest) String

func (x *DeleteSecretRequest) String() string

type GetPayloadRequest

type GetPayloadRequest struct {

	// ID of the secret.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Optional ID of the version.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPayloadRequest) Descriptor deprecated

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

Deprecated: Use GetPayloadRequest.ProtoReflect.Descriptor instead.

func (*GetPayloadRequest) GetSecretId

func (x *GetPayloadRequest) GetSecretId() string

func (*GetPayloadRequest) GetVersionId

func (x *GetPayloadRequest) GetVersionId() string

func (*GetPayloadRequest) ProtoMessage

func (*GetPayloadRequest) ProtoMessage()

func (*GetPayloadRequest) ProtoReflect

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

func (*GetPayloadRequest) Reset

func (x *GetPayloadRequest) Reset()

func (*GetPayloadRequest) SetSecretId

func (m *GetPayloadRequest) SetSecretId(v string)

func (*GetPayloadRequest) SetVersionId

func (m *GetPayloadRequest) SetVersionId(v string)

func (*GetPayloadRequest) String

func (x *GetPayloadRequest) String() string

type GetSecretRequest

type GetSecretRequest struct {

	// ID of the secret to return.
	//
	// To get a secret ID make a [List] request.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretRequest) Descriptor deprecated

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

Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.

func (*GetSecretRequest) GetSecretId

func (x *GetSecretRequest) GetSecretId() string

func (*GetSecretRequest) ProtoMessage

func (*GetSecretRequest) ProtoMessage()

func (*GetSecretRequest) ProtoReflect

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

func (*GetSecretRequest) Reset

func (x *GetSecretRequest) Reset()

func (*GetSecretRequest) SetSecretId

func (m *GetSecretRequest) SetSecretId(v string)

func (*GetSecretRequest) String

func (x *GetSecretRequest) String() string

type ListSecretOperationsRequest

type ListSecretOperationsRequest struct {

	// ID of the secret to get operations for.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// The maximum number of results per page that should be returned. If the number of available
	// results is larger than `page_size`, the service returns a [ListSecretOperationsRequest.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `page_token` to the
	// [ListSecretOperationsRequest.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretOperationsRequest) Descriptor deprecated

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

Deprecated: Use ListSecretOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListSecretOperationsRequest) GetPageSize

func (x *ListSecretOperationsRequest) GetPageSize() int64

func (*ListSecretOperationsRequest) GetPageToken

func (x *ListSecretOperationsRequest) GetPageToken() string

func (*ListSecretOperationsRequest) GetSecretId

func (x *ListSecretOperationsRequest) GetSecretId() string

func (*ListSecretOperationsRequest) ProtoMessage

func (*ListSecretOperationsRequest) ProtoMessage()

func (*ListSecretOperationsRequest) ProtoReflect

func (*ListSecretOperationsRequest) Reset

func (x *ListSecretOperationsRequest) Reset()

func (*ListSecretOperationsRequest) SetPageSize

func (m *ListSecretOperationsRequest) SetPageSize(v int64)

func (*ListSecretOperationsRequest) SetPageToken

func (m *ListSecretOperationsRequest) SetPageToken(v string)

func (*ListSecretOperationsRequest) SetSecretId

func (m *ListSecretOperationsRequest) SetSecretId(v string)

func (*ListSecretOperationsRequest) String

func (x *ListSecretOperationsRequest) String() string

type ListSecretOperationsResponse

type ListSecretOperationsResponse struct {

	// List of operations for the specified secret.
	Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListSecretOperationsResponse.page_size], use the `next_page_token` as the value
	// for the [ListSecretOperationsResponse.page_token] query parameter in the next list request.
	// Each subsequent list request will have its own `next_page_token` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretOperationsResponse) Descriptor deprecated

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

Deprecated: Use ListSecretOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListSecretOperationsResponse) GetNextPageToken

func (x *ListSecretOperationsResponse) GetNextPageToken() string

func (*ListSecretOperationsResponse) GetOperations

func (x *ListSecretOperationsResponse) GetOperations() []*operation.Operation

func (*ListSecretOperationsResponse) ProtoMessage

func (*ListSecretOperationsResponse) ProtoMessage()

func (*ListSecretOperationsResponse) ProtoReflect

func (*ListSecretOperationsResponse) Reset

func (x *ListSecretOperationsResponse) Reset()

func (*ListSecretOperationsResponse) SetNextPageToken

func (m *ListSecretOperationsResponse) SetNextPageToken(v string)

func (*ListSecretOperationsResponse) SetOperations

func (m *ListSecretOperationsResponse) SetOperations(v []*operation.Operation)

func (*ListSecretOperationsResponse) String

type ListSecretsRequest

type ListSecretsRequest struct {

	// ID of the folder to list secrets in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than `page_size`, the service returns a [ListSecretsRequest.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `page_token` to the
	// [ListSecretsRequest.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretsRequest) Descriptor deprecated

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

Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.

func (*ListSecretsRequest) GetFolderId

func (x *ListSecretsRequest) GetFolderId() string

func (*ListSecretsRequest) GetPageSize

func (x *ListSecretsRequest) GetPageSize() int64

func (*ListSecretsRequest) GetPageToken

func (x *ListSecretsRequest) GetPageToken() string

func (*ListSecretsRequest) ProtoMessage

func (*ListSecretsRequest) ProtoMessage()

func (*ListSecretsRequest) ProtoReflect

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

func (*ListSecretsRequest) Reset

func (x *ListSecretsRequest) Reset()

func (*ListSecretsRequest) SetFolderId

func (m *ListSecretsRequest) SetFolderId(v string)

func (*ListSecretsRequest) SetPageSize

func (m *ListSecretsRequest) SetPageSize(v int64)

func (*ListSecretsRequest) SetPageToken

func (m *ListSecretsRequest) SetPageToken(v string)

func (*ListSecretsRequest) String

func (x *ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {

	// List of secrets in the specified folder.
	Secrets []*Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number
	// of results is greater than the specified [ListSecretsRequest.page_size], use
	// the `next_page_token` as the value for the [ListSecretsRequest.page_token] query parameter
	// in the next list request. Each subsequent list request will have its own
	// `next_page_token` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretsResponse) Descriptor deprecated

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

Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.

func (*ListSecretsResponse) GetNextPageToken

func (x *ListSecretsResponse) GetNextPageToken() string

func (*ListSecretsResponse) GetSecrets

func (x *ListSecretsResponse) GetSecrets() []*Secret

func (*ListSecretsResponse) ProtoMessage

func (*ListSecretsResponse) ProtoMessage()

func (*ListSecretsResponse) ProtoReflect

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

func (*ListSecretsResponse) Reset

func (x *ListSecretsResponse) Reset()

func (*ListSecretsResponse) SetNextPageToken

func (m *ListSecretsResponse) SetNextPageToken(v string)

func (*ListSecretsResponse) SetSecrets

func (m *ListSecretsResponse) SetSecrets(v []*Secret)

func (*ListSecretsResponse) String

func (x *ListSecretsResponse) String() string

type ListVersionsRequest

type ListVersionsRequest struct {

	// ID of the secret to list versions for.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than `page_size`, the service returns a [ListVersionsRequest.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `page_token` to the
	// [ListVersionsRequest.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVersionsRequest) Descriptor deprecated

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

Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.

func (*ListVersionsRequest) GetPageSize

func (x *ListVersionsRequest) GetPageSize() int64

func (*ListVersionsRequest) GetPageToken

func (x *ListVersionsRequest) GetPageToken() string

func (*ListVersionsRequest) GetSecretId

func (x *ListVersionsRequest) GetSecretId() string

func (*ListVersionsRequest) ProtoMessage

func (*ListVersionsRequest) ProtoMessage()

func (*ListVersionsRequest) ProtoReflect

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

func (*ListVersionsRequest) Reset

func (x *ListVersionsRequest) Reset()

func (*ListVersionsRequest) SetPageSize

func (m *ListVersionsRequest) SetPageSize(v int64)

func (*ListVersionsRequest) SetPageToken

func (m *ListVersionsRequest) SetPageToken(v string)

func (*ListVersionsRequest) SetSecretId

func (m *ListVersionsRequest) SetSecretId(v string)

func (*ListVersionsRequest) String

func (x *ListVersionsRequest) String() string

type ListVersionsResponse

type ListVersionsResponse struct {

	// List of versions for the specified secret.
	Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number
	// of results is greater than the specified [ListVersionsRequest.page_size], use
	// the `next_page_token` as the value for the [ListVersionsRequest.page_token] query parameter
	// in the next list request. Each subsequent list request will have its own
	// `next_page_token` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVersionsResponse) Descriptor deprecated

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

Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.

func (*ListVersionsResponse) GetNextPageToken

func (x *ListVersionsResponse) GetNextPageToken() string

func (*ListVersionsResponse) GetVersions

func (x *ListVersionsResponse) GetVersions() []*Version

func (*ListVersionsResponse) ProtoMessage

func (*ListVersionsResponse) ProtoMessage()

func (*ListVersionsResponse) ProtoReflect

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

func (*ListVersionsResponse) Reset

func (x *ListVersionsResponse) Reset()

func (*ListVersionsResponse) SetNextPageToken

func (m *ListVersionsResponse) SetNextPageToken(v string)

func (*ListVersionsResponse) SetVersions

func (m *ListVersionsResponse) SetVersions(v []*Version)

func (*ListVersionsResponse) String

func (x *ListVersionsResponse) String() string

type Payload

type Payload struct {

	// ID of the version that the payload belongs to.
	VersionId string `protobuf:"bytes,1,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Payload entries.
	Entries []*Payload_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

A payload.

func (*Payload) Descriptor deprecated

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetEntries

func (x *Payload) GetEntries() []*Payload_Entry

func (*Payload) GetVersionId

func (x *Payload) GetVersionId() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) SetEntries

func (m *Payload) SetEntries(v []*Payload_Entry)

func (*Payload) SetVersionId

func (m *Payload) SetVersionId(v string)

func (*Payload) String

func (x *Payload) String() string

type PayloadEntryChange

type PayloadEntryChange struct {

	// Non-confidential key of the entry.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Confidential value of the entry.
	//
	// Types that are assignable to Value:
	//
	//	*PayloadEntryChange_TextValue
	//	*PayloadEntryChange_BinaryValue
	Value isPayloadEntryChange_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*PayloadEntryChange) Descriptor deprecated

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

Deprecated: Use PayloadEntryChange.ProtoReflect.Descriptor instead.

func (*PayloadEntryChange) GetBinaryValue

func (x *PayloadEntryChange) GetBinaryValue() []byte

func (*PayloadEntryChange) GetKey

func (x *PayloadEntryChange) GetKey() string

func (*PayloadEntryChange) GetTextValue

func (x *PayloadEntryChange) GetTextValue() string

func (*PayloadEntryChange) GetValue

func (m *PayloadEntryChange) GetValue() isPayloadEntryChange_Value

func (*PayloadEntryChange) ProtoMessage

func (*PayloadEntryChange) ProtoMessage()

func (*PayloadEntryChange) ProtoReflect

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

func (*PayloadEntryChange) Reset

func (x *PayloadEntryChange) Reset()

func (*PayloadEntryChange) SetBinaryValue

func (m *PayloadEntryChange) SetBinaryValue(v []byte)

func (*PayloadEntryChange) SetKey

func (m *PayloadEntryChange) SetKey(v string)

func (*PayloadEntryChange) SetTextValue

func (m *PayloadEntryChange) SetTextValue(v string)

func (*PayloadEntryChange) SetValue

func (*PayloadEntryChange) String

func (x *PayloadEntryChange) String() string

type PayloadEntryChange_BinaryValue

type PayloadEntryChange_BinaryValue struct {
	// Use the field to set a binary value.
	BinaryValue []byte `protobuf:"bytes,3,opt,name=binary_value,json=binaryValue,proto3,oneof"`
}

type PayloadEntryChange_TextValue

type PayloadEntryChange_TextValue struct {
	// Use the field to set a text value.
	TextValue string `protobuf:"bytes,2,opt,name=text_value,json=textValue,proto3,oneof"`
}

type PayloadEntryChange_Value

type PayloadEntryChange_Value = isPayloadEntryChange_Value

type PayloadServiceClient

type PayloadServiceClient interface {
	// Returns the payload of the specified secret.
	//
	// To get the list of all available secrets, make a [SecretService.List] request.
	Get(ctx context.Context, in *GetPayloadRequest, opts ...grpc.CallOption) (*Payload, error)
}

PayloadServiceClient is the client API for PayloadService 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 PayloadServiceServer

type PayloadServiceServer interface {
	// Returns the payload of the specified secret.
	//
	// To get the list of all available secrets, make a [SecretService.List] request.
	Get(context.Context, *GetPayloadRequest) (*Payload, error)
}

PayloadServiceServer is the server API for PayloadService service. All implementations should embed UnimplementedPayloadServiceServer for forward compatibility

type Payload_Entry

type Payload_Entry struct {

	// Non-confidential key of the entry.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Confidential value of the entry.
	//
	// Types that are assignable to Value:
	//
	//	*Payload_Entry_TextValue
	//	*Payload_Entry_BinaryValue
	Value isPayload_Entry_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Payload_Entry) Descriptor deprecated

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

Deprecated: Use Payload_Entry.ProtoReflect.Descriptor instead.

func (*Payload_Entry) GetBinaryValue

func (x *Payload_Entry) GetBinaryValue() []byte

func (*Payload_Entry) GetKey

func (x *Payload_Entry) GetKey() string

func (*Payload_Entry) GetTextValue

func (x *Payload_Entry) GetTextValue() string

func (*Payload_Entry) GetValue

func (m *Payload_Entry) GetValue() isPayload_Entry_Value

func (*Payload_Entry) ProtoMessage

func (*Payload_Entry) ProtoMessage()

func (*Payload_Entry) ProtoReflect

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

func (*Payload_Entry) Reset

func (x *Payload_Entry) Reset()

func (*Payload_Entry) SetBinaryValue

func (m *Payload_Entry) SetBinaryValue(v []byte)

func (*Payload_Entry) SetKey

func (m *Payload_Entry) SetKey(v string)

func (*Payload_Entry) SetTextValue

func (m *Payload_Entry) SetTextValue(v string)

func (*Payload_Entry) SetValue

func (m *Payload_Entry) SetValue(v Payload_Entry_Value)

func (*Payload_Entry) String

func (x *Payload_Entry) String() string

type Payload_Entry_BinaryValue

type Payload_Entry_BinaryValue struct {
	// Binary value.
	BinaryValue []byte `protobuf:"bytes,3,opt,name=binary_value,json=binaryValue,proto3,oneof"`
}

type Payload_Entry_TextValue

type Payload_Entry_TextValue struct {
	// Text value.
	TextValue string `protobuf:"bytes,2,opt,name=text_value,json=textValue,proto3,oneof"`
}

type Payload_Entry_Value

type Payload_Entry_Value = isPayload_Entry_Value

type ScheduleVersionDestructionMetadata

type ScheduleVersionDestructionMetadata struct {

	// ID of the secret whose version is being scheduled for destruction.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the version that is being scheduled for destruction.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Destruction timestamp.
	DestroyAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=destroy_at,json=destroyAt,proto3" json:"destroy_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ScheduleVersionDestructionMetadata) Descriptor deprecated

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

Deprecated: Use ScheduleVersionDestructionMetadata.ProtoReflect.Descriptor instead.

func (*ScheduleVersionDestructionMetadata) GetDestroyAt

func (*ScheduleVersionDestructionMetadata) GetSecretId

func (x *ScheduleVersionDestructionMetadata) GetSecretId() string

func (*ScheduleVersionDestructionMetadata) GetVersionId

func (x *ScheduleVersionDestructionMetadata) GetVersionId() string

func (*ScheduleVersionDestructionMetadata) ProtoMessage

func (*ScheduleVersionDestructionMetadata) ProtoMessage()

func (*ScheduleVersionDestructionMetadata) ProtoReflect

func (*ScheduleVersionDestructionMetadata) Reset

func (*ScheduleVersionDestructionMetadata) SetDestroyAt

func (*ScheduleVersionDestructionMetadata) SetSecretId

func (m *ScheduleVersionDestructionMetadata) SetSecretId(v string)

func (*ScheduleVersionDestructionMetadata) SetVersionId

func (m *ScheduleVersionDestructionMetadata) SetVersionId(v string)

func (*ScheduleVersionDestructionMetadata) String

type ScheduleVersionDestructionRequest

type ScheduleVersionDestructionRequest struct {

	// ID of the secret whose version should be scheduled for destruction.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// ID of the version to be destroyed.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Time interval between the version destruction request and actual destruction.
	// Default value: 7 days.
	PendingPeriod *durationpb.Duration `protobuf:"bytes,3,opt,name=pending_period,json=pendingPeriod,proto3" json:"pending_period,omitempty"`
	// contains filtered or unexported fields
}

func (*ScheduleVersionDestructionRequest) Descriptor deprecated

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

Deprecated: Use ScheduleVersionDestructionRequest.ProtoReflect.Descriptor instead.

func (*ScheduleVersionDestructionRequest) GetPendingPeriod

func (x *ScheduleVersionDestructionRequest) GetPendingPeriod() *durationpb.Duration

func (*ScheduleVersionDestructionRequest) GetSecretId

func (x *ScheduleVersionDestructionRequest) GetSecretId() string

func (*ScheduleVersionDestructionRequest) GetVersionId

func (x *ScheduleVersionDestructionRequest) GetVersionId() string

func (*ScheduleVersionDestructionRequest) ProtoMessage

func (*ScheduleVersionDestructionRequest) ProtoMessage()

func (*ScheduleVersionDestructionRequest) ProtoReflect

func (*ScheduleVersionDestructionRequest) Reset

func (*ScheduleVersionDestructionRequest) SetPendingPeriod

func (m *ScheduleVersionDestructionRequest) SetPendingPeriod(v *durationpb.Duration)

func (*ScheduleVersionDestructionRequest) SetSecretId

func (m *ScheduleVersionDestructionRequest) SetSecretId(v string)

func (*ScheduleVersionDestructionRequest) SetVersionId

func (m *ScheduleVersionDestructionRequest) SetVersionId(v string)

func (*ScheduleVersionDestructionRequest) String

type Secret

type Secret struct {

	// ID of the secret.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the secret belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the secret.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the secret.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Optional ID of the KMS key will be used to encrypt and decrypt the secret.
	KmsKeyId string `protobuf:"bytes,7,opt,name=kms_key_id,json=kmsKeyId,proto3" json:"kms_key_id,omitempty"`
	// Status of the secret.
	Status Secret_Status `protobuf:"varint,8,opt,name=status,proto3,enum=yandex.cloud.lockbox.v1.Secret_Status" json:"status,omitempty"`
	// Current (i.e. the `latest`) version of the secret.
	CurrentVersion *Version `protobuf:"bytes,9,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
	// Flag that inhibits deletion of the secret.
	DeletionProtection bool `protobuf:"varint,10,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	// contains filtered or unexported fields
}

A secret that may contain several versions of the payload.

func (*Secret) Descriptor deprecated

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

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetCreatedAt

func (x *Secret) GetCreatedAt() *timestamppb.Timestamp

func (*Secret) GetCurrentVersion

func (x *Secret) GetCurrentVersion() *Version

func (*Secret) GetDeletionProtection

func (x *Secret) GetDeletionProtection() bool

func (*Secret) GetDescription

func (x *Secret) GetDescription() string

func (*Secret) GetFolderId

func (x *Secret) GetFolderId() string

func (*Secret) GetId

func (x *Secret) GetId() string

func (*Secret) GetKmsKeyId

func (x *Secret) GetKmsKeyId() string

func (*Secret) GetLabels

func (x *Secret) GetLabels() map[string]string

func (*Secret) GetName

func (x *Secret) GetName() string

func (*Secret) GetStatus

func (x *Secret) GetStatus() Secret_Status

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect

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

func (*Secret) Reset

func (x *Secret) Reset()

func (*Secret) SetCreatedAt

func (m *Secret) SetCreatedAt(v *timestamppb.Timestamp)

func (*Secret) SetCurrentVersion

func (m *Secret) SetCurrentVersion(v *Version)

func (*Secret) SetDeletionProtection

func (m *Secret) SetDeletionProtection(v bool)

func (*Secret) SetDescription

func (m *Secret) SetDescription(v string)

func (*Secret) SetFolderId

func (m *Secret) SetFolderId(v string)

func (*Secret) SetId

func (m *Secret) SetId(v string)

func (*Secret) SetKmsKeyId

func (m *Secret) SetKmsKeyId(v string)

func (*Secret) SetLabels

func (m *Secret) SetLabels(v map[string]string)

func (*Secret) SetName

func (m *Secret) SetName(v string)

func (*Secret) SetStatus

func (m *Secret) SetStatus(v Secret_Status)

func (*Secret) String

func (x *Secret) String() string

type SecretServiceClient

type SecretServiceClient interface {
	// Returns the specified secret.
	//
	// To get the list of all available secrets, make a [List] request.
	// Use [PayloadService.Get] to get the payload (confidential data themselves) of the secret.
	Get(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*Secret, error)
	// Retrieves the list of secrets in the specified folder.
	List(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)
	// Creates a secret in the specified folder.
	Create(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates the specified secret.
	Update(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified secret.
	Delete(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Activates the specified secret.
	Activate(ctx context.Context, in *ActivateSecretRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deactivates the specified secret.
	Deactivate(ctx context.Context, in *DeactivateSecretRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Retrieves the list of versions of the specified secret.
	ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
	// Adds new version based on a previous one.
	AddVersion(ctx context.Context, in *AddVersionRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Schedules the specified version for destruction.
	//
	// Scheduled destruction can be cancelled with the [SecretService.CancelVersionDestruction] method.
	ScheduleVersionDestruction(ctx context.Context, in *ScheduleVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
	CancelVersionDestruction(ctx context.Context, in *CancelVersionDestructionRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Lists operations for the specified secret.
	ListOperations(ctx context.Context, in *ListSecretOperationsRequest, opts ...grpc.CallOption) (*ListSecretOperationsResponse, error)
	// Lists existing access bindings for the specified secret.
	ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the secret.
	SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates access bindings for the secret.
	UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

SecretServiceClient is the client API for SecretService 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 SecretServiceServer

type SecretServiceServer interface {
	// Returns the specified secret.
	//
	// To get the list of all available secrets, make a [List] request.
	// Use [PayloadService.Get] to get the payload (confidential data themselves) of the secret.
	Get(context.Context, *GetSecretRequest) (*Secret, error)
	// Retrieves the list of secrets in the specified folder.
	List(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
	// Creates a secret in the specified folder.
	Create(context.Context, *CreateSecretRequest) (*operation.Operation, error)
	// Updates the specified secret.
	Update(context.Context, *UpdateSecretRequest) (*operation.Operation, error)
	// Deletes the specified secret.
	Delete(context.Context, *DeleteSecretRequest) (*operation.Operation, error)
	// Activates the specified secret.
	Activate(context.Context, *ActivateSecretRequest) (*operation.Operation, error)
	// Deactivates the specified secret.
	Deactivate(context.Context, *DeactivateSecretRequest) (*operation.Operation, error)
	// Retrieves the list of versions of the specified secret.
	ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
	// Adds new version based on a previous one.
	AddVersion(context.Context, *AddVersionRequest) (*operation.Operation, error)
	// Schedules the specified version for destruction.
	//
	// Scheduled destruction can be cancelled with the [SecretService.CancelVersionDestruction] method.
	ScheduleVersionDestruction(context.Context, *ScheduleVersionDestructionRequest) (*operation.Operation, error)
	// Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
	CancelVersionDestruction(context.Context, *CancelVersionDestructionRequest) (*operation.Operation, error)
	// Lists operations for the specified secret.
	ListOperations(context.Context, *ListSecretOperationsRequest) (*ListSecretOperationsResponse, error)
	// Lists existing access bindings for the specified secret.
	ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the secret.
	SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error)
	// Updates access bindings for the secret.
	UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error)
}

SecretServiceServer is the server API for SecretService service. All implementations should embed UnimplementedSecretServiceServer for forward compatibility

type Secret_Status

type Secret_Status int32
const (
	Secret_STATUS_UNSPECIFIED Secret_Status = 0
	// The secret is being created.
	Secret_CREATING Secret_Status = 1
	// The secret is active and the secret payload can be accessed.
	//
	// Can be set to INACTIVE using the [SecretService.Deactivate] method.
	Secret_ACTIVE Secret_Status = 2
	// The secret is inactive and unusable.
	//
	// Can be set to ACTIVE using the [SecretService.Deactivate] method.
	Secret_INACTIVE Secret_Status = 3
)

func (Secret_Status) Descriptor

func (Secret_Status) Enum

func (x Secret_Status) Enum() *Secret_Status

func (Secret_Status) EnumDescriptor deprecated

func (Secret_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Secret_Status.Descriptor instead.

func (Secret_Status) Number

func (Secret_Status) String

func (x Secret_Status) String() string

func (Secret_Status) Type

type UnimplementedPayloadServiceServer

type UnimplementedPayloadServiceServer struct {
}

UnimplementedPayloadServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPayloadServiceServer) Get

type UnimplementedSecretServiceServer

type UnimplementedSecretServiceServer struct {
}

UnimplementedSecretServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSecretServiceServer) Activate

func (UnimplementedSecretServiceServer) AddVersion

func (UnimplementedSecretServiceServer) CancelVersionDestruction

func (UnimplementedSecretServiceServer) Create

func (UnimplementedSecretServiceServer) Deactivate

func (UnimplementedSecretServiceServer) Delete

func (UnimplementedSecretServiceServer) Get

func (UnimplementedSecretServiceServer) List

func (UnimplementedSecretServiceServer) ListVersions

func (UnimplementedSecretServiceServer) ScheduleVersionDestruction

func (UnimplementedSecretServiceServer) SetAccessBindings

func (UnimplementedSecretServiceServer) Update

func (UnimplementedSecretServiceServer) UpdateAccessBindings

type UnsafePayloadServiceServer

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

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

type UnsafeSecretServiceServer

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

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

type UpdateSecretMetadata

type UpdateSecretMetadata struct {

	// ID of the secret being updated.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSecretMetadata) Descriptor deprecated

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

Deprecated: Use UpdateSecretMetadata.ProtoReflect.Descriptor instead.

func (*UpdateSecretMetadata) GetSecretId

func (x *UpdateSecretMetadata) GetSecretId() string

func (*UpdateSecretMetadata) ProtoMessage

func (*UpdateSecretMetadata) ProtoMessage()

func (*UpdateSecretMetadata) ProtoReflect

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

func (*UpdateSecretMetadata) Reset

func (x *UpdateSecretMetadata) Reset()

func (*UpdateSecretMetadata) SetSecretId

func (m *UpdateSecretMetadata) SetSecretId(v string)

func (*UpdateSecretMetadata) String

func (x *UpdateSecretMetadata) String() string

type UpdateSecretRequest

type UpdateSecretRequest struct {

	// ID of the secret to update.
	SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Field mask that specifies which attributes of the secret are going to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// New name of the secret.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// New description of the secret.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Flag that inhibits deletion of the secret.
	DeletionProtection bool `protobuf:"varint,6,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSecretRequest) Descriptor deprecated

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

Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.

func (*UpdateSecretRequest) GetDeletionProtection

func (x *UpdateSecretRequest) GetDeletionProtection() bool

func (*UpdateSecretRequest) GetDescription

func (x *UpdateSecretRequest) GetDescription() string

func (*UpdateSecretRequest) GetLabels

func (x *UpdateSecretRequest) GetLabels() map[string]string

func (*UpdateSecretRequest) GetName

func (x *UpdateSecretRequest) GetName() string

func (*UpdateSecretRequest) GetSecretId

func (x *UpdateSecretRequest) GetSecretId() string

func (*UpdateSecretRequest) GetUpdateMask

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

func (*UpdateSecretRequest) ProtoMessage

func (*UpdateSecretRequest) ProtoMessage()

func (*UpdateSecretRequest) ProtoReflect

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

func (*UpdateSecretRequest) Reset

func (x *UpdateSecretRequest) Reset()

func (*UpdateSecretRequest) SetDeletionProtection

func (m *UpdateSecretRequest) SetDeletionProtection(v bool)

func (*UpdateSecretRequest) SetDescription

func (m *UpdateSecretRequest) SetDescription(v string)

func (*UpdateSecretRequest) SetLabels

func (m *UpdateSecretRequest) SetLabels(v map[string]string)

func (*UpdateSecretRequest) SetName

func (m *UpdateSecretRequest) SetName(v string)

func (*UpdateSecretRequest) SetSecretId

func (m *UpdateSecretRequest) SetSecretId(v string)

func (*UpdateSecretRequest) SetUpdateMask

func (m *UpdateSecretRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateSecretRequest) String

func (x *UpdateSecretRequest) String() string

type Version

type Version struct {

	// ID of the version.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the secret that the version belongs to.
	SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Time when the version was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Time when the version is going to be destroyed. Empty unless the status
	// is `SCHEDULED_FOR_DESTRUCTION`.
	DestroyAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=destroy_at,json=destroyAt,proto3" json:"destroy_at,omitempty"`
	// Description of the version.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Status of the secret.
	Status Version_Status `protobuf:"varint,6,opt,name=status,proto3,enum=yandex.cloud.lockbox.v1.Version_Status" json:"status,omitempty"`
	// Keys of the entries contained in the version payload.
	PayloadEntryKeys []string `protobuf:"bytes,7,rep,name=payload_entry_keys,json=payloadEntryKeys,proto3" json:"payload_entry_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetCreatedAt

func (x *Version) GetCreatedAt() *timestamppb.Timestamp

func (*Version) GetDescription

func (x *Version) GetDescription() string

func (*Version) GetDestroyAt

func (x *Version) GetDestroyAt() *timestamppb.Timestamp

func (*Version) GetId

func (x *Version) GetId() string

func (*Version) GetPayloadEntryKeys

func (x *Version) GetPayloadEntryKeys() []string

func (*Version) GetSecretId

func (x *Version) GetSecretId() string

func (*Version) GetStatus

func (x *Version) GetStatus() Version_Status

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) SetCreatedAt

func (m *Version) SetCreatedAt(v *timestamppb.Timestamp)

func (*Version) SetDescription

func (m *Version) SetDescription(v string)

func (*Version) SetDestroyAt

func (m *Version) SetDestroyAt(v *timestamppb.Timestamp)

func (*Version) SetId

func (m *Version) SetId(v string)

func (*Version) SetPayloadEntryKeys

func (m *Version) SetPayloadEntryKeys(v []string)

func (*Version) SetSecretId

func (m *Version) SetSecretId(v string)

func (*Version) SetStatus

func (m *Version) SetStatus(v Version_Status)

func (*Version) String

func (x *Version) String() string

type Version_Status

type Version_Status int32
const (
	Version_STATUS_UNSPECIFIED Version_Status = 0
	// The version is active and the secret payload can be accessed.
	Version_ACTIVE Version_Status = 1
	// The version is scheduled for destruction, the time when it will be destroyed
	// is specified in the [Version.destroy_at] field.
	Version_SCHEDULED_FOR_DESTRUCTION Version_Status = 2
	// The version is destroyed and cannot be recovered.
	Version_DESTROYED Version_Status = 3
)

func (Version_Status) Descriptor

func (Version_Status) Enum

func (x Version_Status) Enum() *Version_Status

func (Version_Status) EnumDescriptor deprecated

func (Version_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Version_Status.Descriptor instead.

func (Version_Status) Number

func (Version_Status) String

func (x Version_Status) String() string

func (Version_Status) Type

Jump to

Keyboard shortcuts

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