admin

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Admin_ListSets_FullMethodName       = "/admin.Admin/ListSets"
	Admin_DeleteSet_FullMethodName      = "/admin.Admin/DeleteSet"
	Admin_UndeleteSet_FullMethodName    = "/admin.Admin/UndeleteSet"
	Admin_GetStorePolicy_FullMethodName = "/admin.Admin/GetStorePolicy"
	Admin_SetStorePolicy_FullMethodName = "/admin.Admin/SetStorePolicy"
	Admin_GetRetention_FullMethodName   = "/admin.Admin/GetRetention"
	Admin_SetRetention_FullMethodName   = "/admin.Admin/SetRetention"
	Admin_Retire_FullMethodName         = "/admin.Admin/Retire"
	Admin_CollectGarbage_FullMethodName = "/admin.Admin/CollectGarbage"
	Admin_PutEscrowedKey_FullMethodName = "/admin.Admin/PutEscrowedKey"
)

Variables

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "admin.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSets",
			Handler:    _Admin_ListSets_Handler,
		},
		{
			MethodName: "DeleteSet",
			Handler:    _Admin_DeleteSet_Handler,
		},
		{
			MethodName: "UndeleteSet",
			Handler:    _Admin_UndeleteSet_Handler,
		},
		{
			MethodName: "GetStorePolicy",
			Handler:    _Admin_GetStorePolicy_Handler,
		},
		{
			MethodName: "SetStorePolicy",
			Handler:    _Admin_SetStorePolicy_Handler,
		},
		{
			MethodName: "GetRetention",
			Handler:    _Admin_GetRetention_Handler,
		},
		{
			MethodName: "SetRetention",
			Handler:    _Admin_SetRetention_Handler,
		},
		{
			MethodName: "Retire",
			Handler:    _Admin_Retire_Handler,
		},
		{
			MethodName: "CollectGarbage",
			Handler:    _Admin_CollectGarbage_Handler,
		},
		{
			MethodName: "PutEscrowedKey",
			Handler:    _Admin_PutEscrowedKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin 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 File_admin_admin_proto protoreflect.FileDescriptor

Functions

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

Types

type AdminClient

type AdminClient interface {
	ListSets(ctx context.Context, in *ListSetsRequest, opts ...grpc.CallOption) (*ListSetsResponse, error)
	DeleteSet(ctx context.Context, in *DeleteSetRequest, opts ...grpc.CallOption) (*DeleteSetResponse, error)
	UndeleteSet(ctx context.Context, in *UndeleteSetRequest, opts ...grpc.CallOption) (*UndeleteSetResponse, error)
	GetStorePolicy(ctx context.Context, in *GetStorePolicyRequest, opts ...grpc.CallOption) (*StorePolicy, error)
	// SetStorePolicy replaces the policy under the next version and may
	// record the operator's acknowledgement that the store key is saved
	SetStorePolicy(ctx context.Context, in *SetStorePolicyRequest, opts ...grpc.CallOption) (*StorePolicy, error)
	// GetRetention reports a set's retention, or the store's defaults
	// for an empty set
	GetRetention(ctx context.Context, in *GetRetentionRequest, opts ...grpc.CallOption) (*Retention, error)
	// SetRetention changes what GetRetention reports; setting a set's
	// policy resumes retirement paused by a rebuild
	SetRetention(ctx context.Context, in *SetRetentionRequest, opts ...grpc.CallOption) (*Retention, error)
	// Retire tombstones every commit whose window has passed
	Retire(ctx context.Context, in *RetireRequest, opts ...grpc.CallOption) (*RetireResponse, error)
	CollectGarbage(ctx context.Context, in *CollectGarbageRequest, opts ...grpc.CallOption) (*CollectGarbageResponse, error)
	// PutEscrowedKey keeps an escrowed copy of the store key in the
	// store's own storage, never replacing one kept before
	PutEscrowedKey(ctx context.Context, in *PutEscrowedKeyRequest, opts ...grpc.CallOption) (*PutEscrowedKeyResponse, error)
}

AdminClient is the client API for Admin 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.

Admin is the operator surface of a store server: sets, the store policy and job triggers. It is served on its own listener behind the admin token, over gRPC.

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminServer

type AdminServer interface {
	ListSets(context.Context, *ListSetsRequest) (*ListSetsResponse, error)
	DeleteSet(context.Context, *DeleteSetRequest) (*DeleteSetResponse, error)
	UndeleteSet(context.Context, *UndeleteSetRequest) (*UndeleteSetResponse, error)
	GetStorePolicy(context.Context, *GetStorePolicyRequest) (*StorePolicy, error)
	// SetStorePolicy replaces the policy under the next version and may
	// record the operator's acknowledgement that the store key is saved
	SetStorePolicy(context.Context, *SetStorePolicyRequest) (*StorePolicy, error)
	// GetRetention reports a set's retention, or the store's defaults
	// for an empty set
	GetRetention(context.Context, *GetRetentionRequest) (*Retention, error)
	// SetRetention changes what GetRetention reports; setting a set's
	// policy resumes retirement paused by a rebuild
	SetRetention(context.Context, *SetRetentionRequest) (*Retention, error)
	// Retire tombstones every commit whose window has passed
	Retire(context.Context, *RetireRequest) (*RetireResponse, error)
	CollectGarbage(context.Context, *CollectGarbageRequest) (*CollectGarbageResponse, error)
	// PutEscrowedKey keeps an escrowed copy of the store key in the
	// store's own storage, never replacing one kept before
	PutEscrowedKey(context.Context, *PutEscrowedKeyRequest) (*PutEscrowedKeyResponse, error)
	// contains filtered or unexported methods
}

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility.

Admin is the operator surface of a store server: sets, the store policy and job triggers. It is served on its own listener behind the admin token, over gRPC.

type BackupSet

type BackupSet struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// active, closing or deleted
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	// the logical size of the newest live commit
	LogicalSize int64 `protobuf:"varint,5,opt,name=logical_size,json=logicalSize,proto3" json:"logical_size,omitempty"`
	// what the set's objects take up in the store, as of the last
	// garbage collection
	PhysicalSize int64 `protobuf:"varint,6,opt,name=physical_size,json=physicalSize,proto3" json:"physical_size,omitempty"`
	// the size of the distinct content the set's objects carry before
	// compression, as of the last garbage collection
	DeduplicatedSize int64 `protobuf:"varint,7,opt,name=deduplicated_size,json=deduplicatedSize,proto3" json:"deduplicated_size,omitempty"`
	// what the set would take up were it the only set, and what of that
	// no other set holds, as of the last garbage collection
	AloneSize     int64 `protobuf:"varint,8,opt,name=alone_size,json=aloneSize,proto3" json:"alone_size,omitempty"`
	ExclusiveSize int64 `protobuf:"varint,9,opt,name=exclusive_size,json=exclusiveSize,proto3" json:"exclusive_size,omitempty"`
	// the size of every distinct file version the set's untombstoned
	// commits hold, each counted once
	UniqueSize int64 `protobuf:"varint,10,opt,name=unique_size,json=uniqueSize,proto3" json:"unique_size,omitempty"`
	// the size of the distinct content the set's objects carry before
	// compression were it the only set, as of the last garbage collection
	DeduplicatedAloneSize int64 `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BackupSet) Descriptor deprecated

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

Deprecated: Use BackupSet.ProtoReflect.Descriptor instead.

func (*BackupSet) GetAloneSize

func (x *BackupSet) GetAloneSize() int64

func (*BackupSet) GetDeduplicatedAloneSize

func (x *BackupSet) GetDeduplicatedAloneSize() int64

func (*BackupSet) GetDeduplicatedSize

func (x *BackupSet) GetDeduplicatedSize() int64

func (*BackupSet) GetExclusiveSize

func (x *BackupSet) GetExclusiveSize() int64

func (*BackupSet) GetLogicalSize

func (x *BackupSet) GetLogicalSize() int64

func (*BackupSet) GetName

func (x *BackupSet) GetName() string

func (*BackupSet) GetPhysicalSize

func (x *BackupSet) GetPhysicalSize() int64

func (*BackupSet) GetState

func (x *BackupSet) GetState() string

func (*BackupSet) GetUniqueSize

func (x *BackupSet) GetUniqueSize() int64

func (*BackupSet) ProtoMessage

func (*BackupSet) ProtoMessage()

func (*BackupSet) ProtoReflect

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

func (*BackupSet) Reset

func (x *BackupSet) Reset()

func (*BackupSet) String

func (x *BackupSet) String() string

type CollectGarbageRequest

type CollectGarbageRequest struct {
	// contains filtered or unexported fields
}

func (*CollectGarbageRequest) Descriptor deprecated

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

Deprecated: Use CollectGarbageRequest.ProtoReflect.Descriptor instead.

func (*CollectGarbageRequest) ProtoMessage

func (*CollectGarbageRequest) ProtoMessage()

func (*CollectGarbageRequest) ProtoReflect

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

func (*CollectGarbageRequest) Reset

func (x *CollectGarbageRequest) Reset()

func (*CollectGarbageRequest) String

func (x *CollectGarbageRequest) String() string

type CollectGarbageResponse

type CollectGarbageResponse struct {
	Report string `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectGarbageResponse) Descriptor deprecated

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

Deprecated: Use CollectGarbageResponse.ProtoReflect.Descriptor instead.

func (*CollectGarbageResponse) GetReport

func (x *CollectGarbageResponse) GetReport() string

func (*CollectGarbageResponse) ProtoMessage

func (*CollectGarbageResponse) ProtoMessage()

func (*CollectGarbageResponse) ProtoReflect

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

func (*CollectGarbageResponse) Reset

func (x *CollectGarbageResponse) Reset()

func (*CollectGarbageResponse) String

func (x *CollectGarbageResponse) String() string

type DeleteSetRequest

type DeleteSetRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Erase bool   `protobuf:"varint,2,opt,name=erase,proto3" json:"erase,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSetRequest) Descriptor deprecated

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

Deprecated: Use DeleteSetRequest.ProtoReflect.Descriptor instead.

func (*DeleteSetRequest) GetErase

func (x *DeleteSetRequest) GetErase() bool

func (*DeleteSetRequest) GetName

func (x *DeleteSetRequest) GetName() string

func (*DeleteSetRequest) ProtoMessage

func (*DeleteSetRequest) ProtoMessage()

func (*DeleteSetRequest) ProtoReflect

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

func (*DeleteSetRequest) Reset

func (x *DeleteSetRequest) Reset()

func (*DeleteSetRequest) String

func (x *DeleteSetRequest) String() string

type DeleteSetResponse

type DeleteSetResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteSetResponse) Descriptor deprecated

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

Deprecated: Use DeleteSetResponse.ProtoReflect.Descriptor instead.

func (*DeleteSetResponse) ProtoMessage

func (*DeleteSetResponse) ProtoMessage()

func (*DeleteSetResponse) ProtoReflect

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

func (*DeleteSetResponse) Reset

func (x *DeleteSetResponse) Reset()

func (*DeleteSetResponse) String

func (x *DeleteSetResponse) String() string

type GetRetentionRequest

type GetRetentionRequest struct {
	Set string `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRetentionRequest) Descriptor deprecated

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

Deprecated: Use GetRetentionRequest.ProtoReflect.Descriptor instead.

func (*GetRetentionRequest) GetSet

func (x *GetRetentionRequest) GetSet() string

func (*GetRetentionRequest) ProtoMessage

func (*GetRetentionRequest) ProtoMessage()

func (*GetRetentionRequest) ProtoReflect

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

func (*GetRetentionRequest) Reset

func (x *GetRetentionRequest) Reset()

func (*GetRetentionRequest) String

func (x *GetRetentionRequest) String() string

type GetStorePolicyRequest

type GetStorePolicyRequest struct {
	// contains filtered or unexported fields
}

func (*GetStorePolicyRequest) Descriptor deprecated

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

Deprecated: Use GetStorePolicyRequest.ProtoReflect.Descriptor instead.

func (*GetStorePolicyRequest) ProtoMessage

func (*GetStorePolicyRequest) ProtoMessage()

func (*GetStorePolicyRequest) ProtoReflect

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

func (*GetStorePolicyRequest) Reset

func (x *GetStorePolicyRequest) Reset()

func (*GetStorePolicyRequest) String

func (x *GetStorePolicyRequest) String() string

type ListSetsRequest

type ListSetsRequest struct {
	// contains filtered or unexported fields
}

func (*ListSetsRequest) Descriptor deprecated

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

Deprecated: Use ListSetsRequest.ProtoReflect.Descriptor instead.

func (*ListSetsRequest) ProtoMessage

func (*ListSetsRequest) ProtoMessage()

func (*ListSetsRequest) ProtoReflect

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

func (*ListSetsRequest) Reset

func (x *ListSetsRequest) Reset()

func (*ListSetsRequest) String

func (x *ListSetsRequest) String() string

type ListSetsResponse

type ListSetsResponse struct {
	Sets []*BackupSet `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSetsResponse) Descriptor deprecated

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

Deprecated: Use ListSetsResponse.ProtoReflect.Descriptor instead.

func (*ListSetsResponse) GetSets

func (x *ListSetsResponse) GetSets() []*BackupSet

func (*ListSetsResponse) ProtoMessage

func (*ListSetsResponse) ProtoMessage()

func (*ListSetsResponse) ProtoReflect

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

func (*ListSetsResponse) Reset

func (x *ListSetsResponse) Reset()

func (*ListSetsResponse) String

func (x *ListSetsResponse) String() string

type PutEscrowedKeyRequest

type PutEscrowedKeyRequest struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// the armored age file goback key escrow prints
	Escrowed string `protobuf:"bytes,2,opt,name=escrowed,proto3" json:"escrowed,omitempty"`
	// contains filtered or unexported fields
}

func (*PutEscrowedKeyRequest) Descriptor deprecated

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

Deprecated: Use PutEscrowedKeyRequest.ProtoReflect.Descriptor instead.

func (*PutEscrowedKeyRequest) GetEscrowed

func (x *PutEscrowedKeyRequest) GetEscrowed() string

func (*PutEscrowedKeyRequest) GetKeyId

func (x *PutEscrowedKeyRequest) GetKeyId() string

func (*PutEscrowedKeyRequest) ProtoMessage

func (*PutEscrowedKeyRequest) ProtoMessage()

func (*PutEscrowedKeyRequest) ProtoReflect

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

func (*PutEscrowedKeyRequest) Reset

func (x *PutEscrowedKeyRequest) Reset()

func (*PutEscrowedKeyRequest) String

func (x *PutEscrowedKeyRequest) String() string

type PutEscrowedKeyResponse

type PutEscrowedKeyResponse struct {
	// contains filtered or unexported fields
}

func (*PutEscrowedKeyResponse) Descriptor deprecated

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

Deprecated: Use PutEscrowedKeyResponse.ProtoReflect.Descriptor instead.

func (*PutEscrowedKeyResponse) ProtoMessage

func (*PutEscrowedKeyResponse) ProtoMessage()

func (*PutEscrowedKeyResponse) ProtoReflect

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

func (*PutEscrowedKeyResponse) Reset

func (x *PutEscrowedKeyResponse) Reset()

func (*PutEscrowedKeyResponse) String

func (x *PutEscrowedKeyResponse) String() string

type Retention

type Retention struct {

	// the set, empty for the store's defaults
	Set string `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"`
	// the policy set here; unset when a set inherits the store's or the
	// store runs the built-in default
	Policy *RetentionPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// the policy in force after inheritance
	Effective *RetentionPolicy `protobuf:"bytes,3,opt,name=effective,proto3" json:"effective,omitempty"`
	// a rebuilt set keeps everything until a policy is set
	Paused    bool  `protobuf:"varint,4,opt,name=paused,proto3" json:"paused,omitempty"`
	TrashDays int32 `protobuf:"varint,6,opt,name=trash_days,json=trashDays,proto3" json:"trash_days,omitempty"`
	// contains filtered or unexported fields
}

func (*Retention) Descriptor deprecated

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

Deprecated: Use Retention.ProtoReflect.Descriptor instead.

func (*Retention) GetEffective

func (x *Retention) GetEffective() *RetentionPolicy

func (*Retention) GetPaused

func (x *Retention) GetPaused() bool

func (*Retention) GetPolicy

func (x *Retention) GetPolicy() *RetentionPolicy

func (*Retention) GetSet

func (x *Retention) GetSet() string

func (*Retention) GetTrashDays

func (x *Retention) GetTrashDays() int32

func (*Retention) ProtoMessage

func (*Retention) ProtoMessage()

func (*Retention) ProtoReflect

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

func (*Retention) Reset

func (x *Retention) Reset()

func (*Retention) String

func (x *Retention) String() string

type RetentionBracket

type RetentionBracket struct {

	// hourly, daily, weekly or monthly
	Period string `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"`
	// zero is the tail, which keeps every older period and so must be last
	Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

RetentionBracket keeps the last commit of each of count UTC calendar periods. Brackets run consecutively back from now, each starting with the period the one before it ended in.

func (*RetentionBracket) Descriptor deprecated

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

Deprecated: Use RetentionBracket.ProtoReflect.Descriptor instead.

func (*RetentionBracket) GetCount

func (x *RetentionBracket) GetCount() int32

func (*RetentionBracket) GetPeriod

func (x *RetentionBracket) GetPeriod() string

func (*RetentionBracket) ProtoMessage

func (*RetentionBracket) ProtoMessage()

func (*RetentionBracket) ProtoReflect

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

func (*RetentionBracket) Reset

func (x *RetentionBracket) Reset()

func (*RetentionBracket) String

func (x *RetentionBracket) String() string

type RetentionPolicy

type RetentionPolicy struct {
	KeepLast int32 `protobuf:"varint,1,opt,name=keep_last,json=keepLast,proto3" json:"keep_last,omitempty"`
	// seconds
	KeepWithin int64               `protobuf:"varint,6,opt,name=keep_within,json=keepWithin,proto3" json:"keep_within,omitempty"`
	Brackets   []*RetentionBracket `protobuf:"bytes,7,rep,name=brackets,proto3" json:"brackets,omitempty"`
	// contains filtered or unexported fields
}

RetentionPolicy keeps a commit while a bracket holds it, it is one of the last keep_last, or it is younger than keep_within.

func (*RetentionPolicy) Descriptor deprecated

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

Deprecated: Use RetentionPolicy.ProtoReflect.Descriptor instead.

func (*RetentionPolicy) GetBrackets

func (x *RetentionPolicy) GetBrackets() []*RetentionBracket

func (*RetentionPolicy) GetKeepLast

func (x *RetentionPolicy) GetKeepLast() int32

func (*RetentionPolicy) GetKeepWithin

func (x *RetentionPolicy) GetKeepWithin() int64

func (*RetentionPolicy) ProtoMessage

func (*RetentionPolicy) ProtoMessage()

func (*RetentionPolicy) ProtoReflect

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

func (*RetentionPolicy) Reset

func (x *RetentionPolicy) Reset()

func (*RetentionPolicy) String

func (x *RetentionPolicy) String() string

type RetireRequest

type RetireRequest struct {
	// contains filtered or unexported fields
}

func (*RetireRequest) Descriptor deprecated

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

Deprecated: Use RetireRequest.ProtoReflect.Descriptor instead.

func (*RetireRequest) ProtoMessage

func (*RetireRequest) ProtoMessage()

func (*RetireRequest) ProtoReflect

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

func (*RetireRequest) Reset

func (x *RetireRequest) Reset()

func (*RetireRequest) String

func (x *RetireRequest) String() string

type RetireResponse

type RetireResponse struct {
	Retired int64 `protobuf:"varint,1,opt,name=retired,proto3" json:"retired,omitempty"`
	// contains filtered or unexported fields
}

func (*RetireResponse) Descriptor deprecated

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

Deprecated: Use RetireResponse.ProtoReflect.Descriptor instead.

func (*RetireResponse) GetRetired

func (x *RetireResponse) GetRetired() int64

func (*RetireResponse) ProtoMessage

func (*RetireResponse) ProtoMessage()

func (*RetireResponse) ProtoReflect

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

func (*RetireResponse) Reset

func (x *RetireResponse) Reset()

func (*RetireResponse) String

func (x *RetireResponse) String() string

type SetRetentionRequest

type SetRetentionRequest struct {
	Set string `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"`
	// replaces the policy when set
	Policy *RetentionPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// drops the policy: the set inherits, the store uses the built-in
	Inherit   bool   `protobuf:"varint,3,opt,name=inherit,proto3" json:"inherit,omitempty"`
	TrashDays *int32 `protobuf:"varint,5,opt,name=trash_days,json=trashDays,proto3,oneof" json:"trash_days,omitempty"`
	// contains filtered or unexported fields
}

func (*SetRetentionRequest) Descriptor deprecated

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

Deprecated: Use SetRetentionRequest.ProtoReflect.Descriptor instead.

func (*SetRetentionRequest) GetInherit

func (x *SetRetentionRequest) GetInherit() bool

func (*SetRetentionRequest) GetPolicy

func (x *SetRetentionRequest) GetPolicy() *RetentionPolicy

func (*SetRetentionRequest) GetSet

func (x *SetRetentionRequest) GetSet() string

func (*SetRetentionRequest) GetTrashDays

func (x *SetRetentionRequest) GetTrashDays() int32

func (*SetRetentionRequest) ProtoMessage

func (*SetRetentionRequest) ProtoMessage()

func (*SetRetentionRequest) ProtoReflect

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

func (*SetRetentionRequest) Reset

func (x *SetRetentionRequest) Reset()

func (*SetRetentionRequest) String

func (x *SetRetentionRequest) String() string

type SetStorePolicyRequest

type SetStorePolicyRequest struct {
	Mode          string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	PresenceScope string `protobuf:"bytes,5,opt,name=presence_scope,json=presenceScope,proto3" json:"presence_scope,omitempty"`
	// the operator confirms the store key is saved
	AcknowledgeKey bool `protobuf:"varint,7,opt,name=acknowledge_key,json=acknowledgeKey,proto3" json:"acknowledge_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SetStorePolicyRequest) Descriptor deprecated

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

Deprecated: Use SetStorePolicyRequest.ProtoReflect.Descriptor instead.

func (*SetStorePolicyRequest) GetAcknowledgeKey

func (x *SetStorePolicyRequest) GetAcknowledgeKey() bool

func (*SetStorePolicyRequest) GetMode

func (x *SetStorePolicyRequest) GetMode() string

func (*SetStorePolicyRequest) GetPresenceScope

func (x *SetStorePolicyRequest) GetPresenceScope() string

func (*SetStorePolicyRequest) ProtoMessage

func (*SetStorePolicyRequest) ProtoMessage()

func (*SetStorePolicyRequest) ProtoReflect

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

func (*SetStorePolicyRequest) Reset

func (x *SetStorePolicyRequest) Reset()

func (*SetStorePolicyRequest) String

func (x *SetStorePolicyRequest) String() string

type StorePolicy

type StorePolicy struct {
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// sealed or none
	Mode          string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
	PresenceScope string `protobuf:"bytes,6,opt,name=presence_scope,json=presenceScope,proto3" json:"presence_scope,omitempty"`
	// when the operator confirmed the store key is saved
	KeyAcknowledgedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=key_acknowledged_at,json=keyAcknowledgedAt,proto3" json:"key_acknowledged_at,omitempty"`
	// contains filtered or unexported fields
}

func (*StorePolicy) Descriptor deprecated

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

Deprecated: Use StorePolicy.ProtoReflect.Descriptor instead.

func (*StorePolicy) GetKeyAcknowledgedAt

func (x *StorePolicy) GetKeyAcknowledgedAt() *timestamppb.Timestamp

func (*StorePolicy) GetMode

func (x *StorePolicy) GetMode() string

func (*StorePolicy) GetPresenceScope

func (x *StorePolicy) GetPresenceScope() string

func (*StorePolicy) GetVersion

func (x *StorePolicy) GetVersion() uint32

func (*StorePolicy) ProtoMessage

func (*StorePolicy) ProtoMessage()

func (*StorePolicy) ProtoReflect

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

func (*StorePolicy) Reset

func (x *StorePolicy) Reset()

func (*StorePolicy) String

func (x *StorePolicy) String() string

type UndeleteSetRequest

type UndeleteSetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UndeleteSetRequest) Descriptor deprecated

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

Deprecated: Use UndeleteSetRequest.ProtoReflect.Descriptor instead.

func (*UndeleteSetRequest) GetName

func (x *UndeleteSetRequest) GetName() string

func (*UndeleteSetRequest) ProtoMessage

func (*UndeleteSetRequest) ProtoMessage()

func (*UndeleteSetRequest) ProtoReflect

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

func (*UndeleteSetRequest) Reset

func (x *UndeleteSetRequest) Reset()

func (*UndeleteSetRequest) String

func (x *UndeleteSetRequest) String() string

type UndeleteSetResponse

type UndeleteSetResponse struct {
	// contains filtered or unexported fields
}

func (*UndeleteSetResponse) Descriptor deprecated

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

Deprecated: Use UndeleteSetResponse.ProtoReflect.Descriptor instead.

func (*UndeleteSetResponse) ProtoMessage

func (*UndeleteSetResponse) ProtoMessage()

func (*UndeleteSetResponse) ProtoReflect

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

func (*UndeleteSetResponse) Reset

func (x *UndeleteSetResponse) Reset()

func (*UndeleteSetResponse) String

func (x *UndeleteSetResponse) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct{}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAdminServer) CollectGarbage

func (UnimplementedAdminServer) DeleteSet

func (UnimplementedAdminServer) GetRetention

func (UnimplementedAdminServer) GetStorePolicy

func (UnimplementedAdminServer) ListSets

func (UnimplementedAdminServer) PutEscrowedKey

func (UnimplementedAdminServer) Retire

func (UnimplementedAdminServer) SetRetention

func (UnimplementedAdminServer) SetStorePolicy

func (UnimplementedAdminServer) UndeleteSet

type UnsafeAdminServer

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

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

Jump to

Keyboard shortcuts

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