package snapshots
import "github.com/containerd/containerd/api/services/snapshots/v1"
Index ¶
- Variables
- func RegisterSnapshotsServer(s grpc.ServiceRegistrar, srv SnapshotsServer)
- type CleanupRequest
- func (*CleanupRequest) Descriptor() ([]byte, []int)
- func (x *CleanupRequest) GetSnapshotter() string
- func (*CleanupRequest) ProtoMessage()
- func (x *CleanupRequest) ProtoReflect() protoreflect.Message
- func (x *CleanupRequest) Reset()
- func (x *CleanupRequest) String() string
- type CommitSnapshotRequest
- func (*CommitSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *CommitSnapshotRequest) GetKey() string
- func (x *CommitSnapshotRequest) GetLabels() map[string]string
- func (x *CommitSnapshotRequest) GetName() string
- func (x *CommitSnapshotRequest) GetSnapshotter() string
- func (*CommitSnapshotRequest) ProtoMessage()
- func (x *CommitSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CommitSnapshotRequest) Reset()
- func (x *CommitSnapshotRequest) String() string
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (x *Info) GetCreatedAt() *timestamppb.Timestamp
- func (x *Info) GetKind() Kind
- func (x *Info) GetLabels() map[string]string
- func (x *Info) GetName() string
- func (x *Info) GetParent() string
- func (x *Info) GetUpdatedAt() *timestamppb.Timestamp
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type Kind
- func (Kind) Descriptor() protoreflect.EnumDescriptor
- func (x Kind) Enum() *Kind
- func (Kind) EnumDescriptor() ([]byte, []int)
- func (x Kind) Number() protoreflect.EnumNumber
- func (x Kind) String() string
- func (Kind) Type() protoreflect.EnumType
- type ListSnapshotsRequest
- func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
- func (x *ListSnapshotsRequest) GetFilters() []string
- func (x *ListSnapshotsRequest) GetSnapshotter() string
- func (*ListSnapshotsRequest) ProtoMessage()
- func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsRequest) Reset()
- func (x *ListSnapshotsRequest) String() string
- type ListSnapshotsResponse
- func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
- func (x *ListSnapshotsResponse) GetInfo() []*Info
- func (*ListSnapshotsResponse) ProtoMessage()
- func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsResponse) Reset()
- func (x *ListSnapshotsResponse) String() string
- type MountsRequest
- func (*MountsRequest) Descriptor() ([]byte, []int)
- func (x *MountsRequest) GetKey() string
- func (x *MountsRequest) GetSnapshotter() string
- func (*MountsRequest) ProtoMessage()
- func (x *MountsRequest) ProtoReflect() protoreflect.Message
- func (x *MountsRequest) Reset()
- func (x *MountsRequest) String() string
- type MountsResponse
- func (*MountsResponse) Descriptor() ([]byte, []int)
- func (x *MountsResponse) GetMounts() []*types.Mount
- func (*MountsResponse) ProtoMessage()
- func (x *MountsResponse) ProtoReflect() protoreflect.Message
- func (x *MountsResponse) Reset()
- func (x *MountsResponse) String() string
- type PrepareSnapshotRequest
- func (*PrepareSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *PrepareSnapshotRequest) GetKey() string
- func (x *PrepareSnapshotRequest) GetLabels() map[string]string
- func (x *PrepareSnapshotRequest) GetParent() string
- func (x *PrepareSnapshotRequest) GetSnapshotter() string
- func (*PrepareSnapshotRequest) ProtoMessage()
- func (x *PrepareSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *PrepareSnapshotRequest) Reset()
- func (x *PrepareSnapshotRequest) String() string
- type PrepareSnapshotResponse
- func (*PrepareSnapshotResponse) Descriptor() ([]byte, []int)
- func (x *PrepareSnapshotResponse) GetMounts() []*types.Mount
- func (*PrepareSnapshotResponse) ProtoMessage()
- func (x *PrepareSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *PrepareSnapshotResponse) Reset()
- func (x *PrepareSnapshotResponse) String() string
- type RemoveSnapshotRequest
- func (*RemoveSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *RemoveSnapshotRequest) GetKey() string
- func (x *RemoveSnapshotRequest) GetSnapshotter() string
- func (*RemoveSnapshotRequest) ProtoMessage()
- func (x *RemoveSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveSnapshotRequest) Reset()
- func (x *RemoveSnapshotRequest) String() string
- type SnapshotsClient
- type SnapshotsServer
- type Snapshots_ListClient
- type Snapshots_ListServer
- type StatSnapshotRequest
- func (*StatSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *StatSnapshotRequest) GetKey() string
- func (x *StatSnapshotRequest) GetSnapshotter() string
- func (*StatSnapshotRequest) ProtoMessage()
- func (x *StatSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *StatSnapshotRequest) Reset()
- func (x *StatSnapshotRequest) String() string
- type StatSnapshotResponse
- func (*StatSnapshotResponse) Descriptor() ([]byte, []int)
- func (x *StatSnapshotResponse) GetInfo() *Info
- func (*StatSnapshotResponse) ProtoMessage()
- func (x *StatSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *StatSnapshotResponse) Reset()
- func (x *StatSnapshotResponse) String() string
- type UnimplementedSnapshotsServer
- func (UnimplementedSnapshotsServer) Cleanup(context.Context, *CleanupRequest) (*emptypb.Empty, error)
- func (UnimplementedSnapshotsServer) Commit(context.Context, *CommitSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedSnapshotsServer) List(*ListSnapshotsRequest, Snapshots_ListServer) error
- func (UnimplementedSnapshotsServer) Mounts(context.Context, *MountsRequest) (*MountsResponse, error)
- func (UnimplementedSnapshotsServer) Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error)
- func (UnimplementedSnapshotsServer) Remove(context.Context, *RemoveSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedSnapshotsServer) Stat(context.Context, *StatSnapshotRequest) (*StatSnapshotResponse, error)
- func (UnimplementedSnapshotsServer) Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error)
- func (UnimplementedSnapshotsServer) Usage(context.Context, *UsageRequest) (*UsageResponse, error)
- func (UnimplementedSnapshotsServer) View(context.Context, *ViewSnapshotRequest) (*ViewSnapshotResponse, error)
- type UnsafeSnapshotsServer
- type UpdateSnapshotRequest
- func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *UpdateSnapshotRequest) GetInfo() *Info
- func (x *UpdateSnapshotRequest) GetSnapshotter() string
- func (x *UpdateSnapshotRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateSnapshotRequest) ProtoMessage()
- func (x *UpdateSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSnapshotRequest) Reset()
- func (x *UpdateSnapshotRequest) String() string
- type UpdateSnapshotResponse
- func (*UpdateSnapshotResponse) Descriptor() ([]byte, []int)
- func (x *UpdateSnapshotResponse) GetInfo() *Info
- func (*UpdateSnapshotResponse) ProtoMessage()
- func (x *UpdateSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSnapshotResponse) Reset()
- func (x *UpdateSnapshotResponse) String() string
- type UsageRequest
- func (*UsageRequest) Descriptor() ([]byte, []int)
- func (x *UsageRequest) GetKey() string
- func (x *UsageRequest) GetSnapshotter() string
- func (*UsageRequest) ProtoMessage()
- func (x *UsageRequest) ProtoReflect() protoreflect.Message
- func (x *UsageRequest) Reset()
- func (x *UsageRequest) String() string
- type UsageResponse
- func (*UsageResponse) Descriptor() ([]byte, []int)
- func (x *UsageResponse) GetInodes() int64
- func (x *UsageResponse) GetSize() int64
- func (*UsageResponse) ProtoMessage()
- func (x *UsageResponse) ProtoReflect() protoreflect.Message
- func (x *UsageResponse) Reset()
- func (x *UsageResponse) String() string
- type ViewSnapshotRequest
- func (*ViewSnapshotRequest) Descriptor() ([]byte, []int)
- func (x *ViewSnapshotRequest) GetKey() string
- func (x *ViewSnapshotRequest) GetLabels() map[string]string
- func (x *ViewSnapshotRequest) GetParent() string
- func (x *ViewSnapshotRequest) GetSnapshotter() string
- func (*ViewSnapshotRequest) ProtoMessage()
- func (x *ViewSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *ViewSnapshotRequest) Reset()
- func (x *ViewSnapshotRequest) String() string
- type ViewSnapshotResponse
- func (*ViewSnapshotResponse) Descriptor() ([]byte, []int)
- func (x *ViewSnapshotResponse) GetMounts() []*types.Mount
- func (*ViewSnapshotResponse) ProtoMessage()
- func (x *ViewSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *ViewSnapshotResponse) Reset()
- func (x *ViewSnapshotResponse) String() string
Variables ¶
var ( Kind_name = map[int32]string{ 0: "UNKNOWN", 1: "VIEW", 2: "ACTIVE", 3: "COMMITTED", } Kind_value = map[string]int32{ "UNKNOWN": 0, "VIEW": 1, "ACTIVE": 2, "COMMITTED": 3, } )
Enum value maps for Kind.
var File_github_com_containerd_containerd_api_services_snapshots_v1_snapshots_proto protoreflect.FileDescriptor
var Snapshots_ServiceDesc = grpc.ServiceDesc{ ServiceName: "containerd.services.snapshots.v1.Snapshots", HandlerType: (*SnapshotsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Prepare", Handler: _Snapshots_Prepare_Handler, }, { MethodName: "View", Handler: _Snapshots_View_Handler, }, { MethodName: "Mounts", Handler: _Snapshots_Mounts_Handler, }, { MethodName: "Commit", Handler: _Snapshots_Commit_Handler, }, { MethodName: "Remove", Handler: _Snapshots_Remove_Handler, }, { MethodName: "Stat", Handler: _Snapshots_Stat_Handler, }, { MethodName: "Update", Handler: _Snapshots_Update_Handler, }, { MethodName: "Usage", Handler: _Snapshots_Usage_Handler, }, { MethodName: "Cleanup", Handler: _Snapshots_Cleanup_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "List", Handler: _Snapshots_List_Handler, ServerStreams: true, }, }, Metadata: "github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto", }
Snapshots_ServiceDesc is the grpc.ServiceDesc for Snapshots service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSnapshotsServer ¶
func RegisterSnapshotsServer(s grpc.ServiceRegistrar, srv SnapshotsServer)
Types ¶
type CleanupRequest ¶
type CleanupRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` // contains filtered or unexported fields }
func (*CleanupRequest) Descriptor ¶
func (*CleanupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CleanupRequest.ProtoReflect.Descriptor instead.
func (*CleanupRequest) GetSnapshotter ¶
func (x *CleanupRequest) GetSnapshotter() string
func (*CleanupRequest) ProtoMessage ¶
func (*CleanupRequest) ProtoMessage()
func (*CleanupRequest) ProtoReflect ¶
func (x *CleanupRequest) ProtoReflect() protoreflect.Message
func (*CleanupRequest) Reset ¶
func (x *CleanupRequest) Reset()
func (*CleanupRequest) String ¶
func (x *CleanupRequest) String() string
type CommitSnapshotRequest ¶
type CommitSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // Labels are arbitrary data on snapshots. // // The combined size of a key/value pair cannot exceed 4096 bytes. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*CommitSnapshotRequest) Descriptor ¶
func (*CommitSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommitSnapshotRequest.ProtoReflect.Descriptor instead.
func (*CommitSnapshotRequest) GetKey ¶
func (x *CommitSnapshotRequest) GetKey() string
func (*CommitSnapshotRequest) GetLabels ¶
func (x *CommitSnapshotRequest) GetLabels() map[string]string
func (*CommitSnapshotRequest) GetName ¶
func (x *CommitSnapshotRequest) GetName() string
func (*CommitSnapshotRequest) GetSnapshotter ¶
func (x *CommitSnapshotRequest) GetSnapshotter() string
func (*CommitSnapshotRequest) ProtoMessage ¶
func (*CommitSnapshotRequest) ProtoMessage()
func (*CommitSnapshotRequest) ProtoReflect ¶
func (x *CommitSnapshotRequest) ProtoReflect() protoreflect.Message
func (*CommitSnapshotRequest) Reset ¶
func (x *CommitSnapshotRequest) Reset()
func (*CommitSnapshotRequest) String ¶
func (x *CommitSnapshotRequest) String() string
type Info ¶
type Info struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=containerd.services.snapshots.v1.Kind" json:"kind,omitempty"` // CreatedAt provides the time at which the snapshot was created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // UpdatedAt provides the time the info was last updated. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Labels are arbitrary data on snapshots. // // The combined size of a key/value pair cannot exceed 4096 bytes. Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*Info) Descriptor ¶
Deprecated: Use Info.ProtoReflect.Descriptor instead.
func (*Info) GetCreatedAt ¶
func (x *Info) GetCreatedAt() *timestamppb.Timestamp
func (*Info) GetKind ¶
func (*Info) GetLabels ¶
func (*Info) GetName ¶
func (*Info) GetParent ¶
func (*Info) GetUpdatedAt ¶
func (x *Info) GetUpdatedAt() *timestamppb.Timestamp
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
func (*Info) Reset ¶
func (x *Info) Reset()
func (*Info) String ¶
type Kind ¶
type Kind int32
func (Kind) Descriptor ¶
func (Kind) Descriptor() protoreflect.EnumDescriptor
func (Kind) Enum ¶
func (Kind) EnumDescriptor ¶
Deprecated: Use Kind.Descriptor instead.
func (Kind) Number ¶
func (x Kind) Number() protoreflect.EnumNumber
func (Kind) String ¶
func (Kind) Type ¶
func (Kind) Type() protoreflect.EnumType
type ListSnapshotsRequest ¶
type ListSnapshotsRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` // Filters contains one or more filters using the syntax defined in the // containerd filter package. // // The returned result will be those that match any of the provided // filters. Expanded, images that match the following will be // returned: // // filters[0] or filters[1] or ... or filters[n-1] or filters[n] // // If filters is zero-length or nil, all items will be returned. Filters []string `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*ListSnapshotsRequest) Descriptor ¶
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotsRequest) GetFilters ¶
func (x *ListSnapshotsRequest) GetFilters() []string
func (*ListSnapshotsRequest) GetSnapshotter ¶
func (x *ListSnapshotsRequest) GetSnapshotter() string
func (*ListSnapshotsRequest) ProtoMessage ¶
func (*ListSnapshotsRequest) ProtoMessage()
func (*ListSnapshotsRequest) ProtoReflect ¶
func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotsRequest) Reset ¶
func (x *ListSnapshotsRequest) Reset()
func (*ListSnapshotsRequest) String ¶
func (x *ListSnapshotsRequest) String() string
type ListSnapshotsResponse ¶
type ListSnapshotsResponse struct { Info []*Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*ListSnapshotsResponse) Descriptor ¶
func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotsResponse) GetInfo ¶
func (x *ListSnapshotsResponse) GetInfo() []*Info
func (*ListSnapshotsResponse) ProtoMessage ¶
func (*ListSnapshotsResponse) ProtoMessage()
func (*ListSnapshotsResponse) ProtoReflect ¶
func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotsResponse) Reset ¶
func (x *ListSnapshotsResponse) Reset()
func (*ListSnapshotsResponse) String ¶
func (x *ListSnapshotsResponse) String() string
type MountsRequest ¶
type MountsRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*MountsRequest) Descriptor ¶
func (*MountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use MountsRequest.ProtoReflect.Descriptor instead.
func (*MountsRequest) GetKey ¶
func (x *MountsRequest) GetKey() string
func (*MountsRequest) GetSnapshotter ¶
func (x *MountsRequest) GetSnapshotter() string
func (*MountsRequest) ProtoMessage ¶
func (*MountsRequest) ProtoMessage()
func (*MountsRequest) ProtoReflect ¶
func (x *MountsRequest) ProtoReflect() protoreflect.Message
func (*MountsRequest) Reset ¶
func (x *MountsRequest) Reset()
func (*MountsRequest) String ¶
func (x *MountsRequest) String() string
type MountsResponse ¶
type MountsResponse struct { Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` // contains filtered or unexported fields }
func (*MountsResponse) Descriptor ¶
func (*MountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MountsResponse.ProtoReflect.Descriptor instead.
func (*MountsResponse) GetMounts ¶
func (x *MountsResponse) GetMounts() []*types.Mount
func (*MountsResponse) ProtoMessage ¶
func (*MountsResponse) ProtoMessage()
func (*MountsResponse) ProtoReflect ¶
func (x *MountsResponse) ProtoReflect() protoreflect.Message
func (*MountsResponse) Reset ¶
func (x *MountsResponse) Reset()
func (*MountsResponse) String ¶
func (x *MountsResponse) String() string
type PrepareSnapshotRequest ¶
type PrepareSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` // Labels are arbitrary data on snapshots. // // The combined size of a key/value pair cannot exceed 4096 bytes. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*PrepareSnapshotRequest) Descriptor ¶
func (*PrepareSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareSnapshotRequest.ProtoReflect.Descriptor instead.
func (*PrepareSnapshotRequest) GetKey ¶
func (x *PrepareSnapshotRequest) GetKey() string
func (*PrepareSnapshotRequest) GetLabels ¶
func (x *PrepareSnapshotRequest) GetLabels() map[string]string
func (*PrepareSnapshotRequest) GetParent ¶
func (x *PrepareSnapshotRequest) GetParent() string
func (*PrepareSnapshotRequest) GetSnapshotter ¶
func (x *PrepareSnapshotRequest) GetSnapshotter() string
func (*PrepareSnapshotRequest) ProtoMessage ¶
func (*PrepareSnapshotRequest) ProtoMessage()
func (*PrepareSnapshotRequest) ProtoReflect ¶
func (x *PrepareSnapshotRequest) ProtoReflect() protoreflect.Message
func (*PrepareSnapshotRequest) Reset ¶
func (x *PrepareSnapshotRequest) Reset()
func (*PrepareSnapshotRequest) String ¶
func (x *PrepareSnapshotRequest) String() string
type PrepareSnapshotResponse ¶
type PrepareSnapshotResponse struct { Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` // contains filtered or unexported fields }
func (*PrepareSnapshotResponse) Descriptor ¶
func (*PrepareSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrepareSnapshotResponse.ProtoReflect.Descriptor instead.
func (*PrepareSnapshotResponse) GetMounts ¶
func (x *PrepareSnapshotResponse) GetMounts() []*types.Mount
func (*PrepareSnapshotResponse) ProtoMessage ¶
func (*PrepareSnapshotResponse) ProtoMessage()
func (*PrepareSnapshotResponse) ProtoReflect ¶
func (x *PrepareSnapshotResponse) ProtoReflect() protoreflect.Message
func (*PrepareSnapshotResponse) Reset ¶
func (x *PrepareSnapshotResponse) Reset()
func (*PrepareSnapshotResponse) String ¶
func (x *PrepareSnapshotResponse) String() string
type RemoveSnapshotRequest ¶
type RemoveSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*RemoveSnapshotRequest) Descriptor ¶
func (*RemoveSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RemoveSnapshotRequest) GetKey ¶
func (x *RemoveSnapshotRequest) GetKey() string
func (*RemoveSnapshotRequest) GetSnapshotter ¶
func (x *RemoveSnapshotRequest) GetSnapshotter() string
func (*RemoveSnapshotRequest) ProtoMessage ¶
func (*RemoveSnapshotRequest) ProtoMessage()
func (*RemoveSnapshotRequest) ProtoReflect ¶
func (x *RemoveSnapshotRequest) ProtoReflect() protoreflect.Message
func (*RemoveSnapshotRequest) Reset ¶
func (x *RemoveSnapshotRequest) Reset()
func (*RemoveSnapshotRequest) String ¶
func (x *RemoveSnapshotRequest) String() string
type SnapshotsClient ¶
type SnapshotsClient interface { Prepare(ctx context.Context, in *PrepareSnapshotRequest, opts ...grpc.CallOption) (*PrepareSnapshotResponse, error) View(ctx context.Context, in *ViewSnapshotRequest, opts ...grpc.CallOption) (*ViewSnapshotResponse, error) Mounts(ctx context.Context, in *MountsRequest, opts ...grpc.CallOption) (*MountsResponse, error) Commit(ctx context.Context, in *CommitSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Remove(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Stat(ctx context.Context, in *StatSnapshotRequest, opts ...grpc.CallOption) (*StatSnapshotResponse, error) Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error) List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error) Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SnapshotsClient is the client API for Snapshots 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.
func NewSnapshotsClient ¶
func NewSnapshotsClient(cc grpc.ClientConnInterface) SnapshotsClient
type SnapshotsServer ¶
type SnapshotsServer interface { Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error) View(context.Context, *ViewSnapshotRequest) (*ViewSnapshotResponse, error) Mounts(context.Context, *MountsRequest) (*MountsResponse, error) Commit(context.Context, *CommitSnapshotRequest) (*emptypb.Empty, error) Remove(context.Context, *RemoveSnapshotRequest) (*emptypb.Empty, error) Stat(context.Context, *StatSnapshotRequest) (*StatSnapshotResponse, error) Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error) List(*ListSnapshotsRequest, Snapshots_ListServer) error Usage(context.Context, *UsageRequest) (*UsageResponse, error) Cleanup(context.Context, *CleanupRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
SnapshotsServer is the server API for Snapshots service. All implementations must embed UnimplementedSnapshotsServer for forward compatibility
type Snapshots_ListClient ¶
type Snapshots_ListClient interface { Recv() (*ListSnapshotsResponse, error) grpc.ClientStream }
type Snapshots_ListServer ¶
type Snapshots_ListServer interface { Send(*ListSnapshotsResponse) error grpc.ServerStream }
type StatSnapshotRequest ¶
type StatSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*StatSnapshotRequest) Descriptor ¶
func (*StatSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatSnapshotRequest.ProtoReflect.Descriptor instead.
func (*StatSnapshotRequest) GetKey ¶
func (x *StatSnapshotRequest) GetKey() string
func (*StatSnapshotRequest) GetSnapshotter ¶
func (x *StatSnapshotRequest) GetSnapshotter() string
func (*StatSnapshotRequest) ProtoMessage ¶
func (*StatSnapshotRequest) ProtoMessage()
func (*StatSnapshotRequest) ProtoReflect ¶
func (x *StatSnapshotRequest) ProtoReflect() protoreflect.Message
func (*StatSnapshotRequest) Reset ¶
func (x *StatSnapshotRequest) Reset()
func (*StatSnapshotRequest) String ¶
func (x *StatSnapshotRequest) String() string
type StatSnapshotResponse ¶
type StatSnapshotResponse struct { Info *Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*StatSnapshotResponse) Descriptor ¶
func (*StatSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatSnapshotResponse.ProtoReflect.Descriptor instead.
func (*StatSnapshotResponse) GetInfo ¶
func (x *StatSnapshotResponse) GetInfo() *Info
func (*StatSnapshotResponse) ProtoMessage ¶
func (*StatSnapshotResponse) ProtoMessage()
func (*StatSnapshotResponse) ProtoReflect ¶
func (x *StatSnapshotResponse) ProtoReflect() protoreflect.Message
func (*StatSnapshotResponse) Reset ¶
func (x *StatSnapshotResponse) Reset()
func (*StatSnapshotResponse) String ¶
func (x *StatSnapshotResponse) String() string
type UnimplementedSnapshotsServer ¶
type UnimplementedSnapshotsServer struct { }
UnimplementedSnapshotsServer must be embedded to have forward compatible implementations.
func (UnimplementedSnapshotsServer) Cleanup ¶
func (UnimplementedSnapshotsServer) Cleanup(context.Context, *CleanupRequest) (*emptypb.Empty, error)
func (UnimplementedSnapshotsServer) Commit ¶
func (UnimplementedSnapshotsServer) Commit(context.Context, *CommitSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedSnapshotsServer) List ¶
func (UnimplementedSnapshotsServer) Mounts ¶
func (UnimplementedSnapshotsServer) Mounts(context.Context, *MountsRequest) (*MountsResponse, error)
func (UnimplementedSnapshotsServer) Prepare ¶
func (UnimplementedSnapshotsServer) Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error)
func (UnimplementedSnapshotsServer) Remove ¶
func (UnimplementedSnapshotsServer) Remove(context.Context, *RemoveSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedSnapshotsServer) Stat ¶
func (UnimplementedSnapshotsServer) Stat(context.Context, *StatSnapshotRequest) (*StatSnapshotResponse, error)
func (UnimplementedSnapshotsServer) Update ¶
func (UnimplementedSnapshotsServer) Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error)
func (UnimplementedSnapshotsServer) Usage ¶
func (UnimplementedSnapshotsServer) Usage(context.Context, *UsageRequest) (*UsageResponse, error)
func (UnimplementedSnapshotsServer) View ¶
func (UnimplementedSnapshotsServer) View(context.Context, *ViewSnapshotRequest) (*ViewSnapshotResponse, error)
type UnsafeSnapshotsServer ¶
type UnsafeSnapshotsServer interface {
// contains filtered or unexported methods
}
UnsafeSnapshotsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnapshotsServer will result in compilation errors.
type UpdateSnapshotRequest ¶
type UpdateSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Info *Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // UpdateMask specifies which fields to perform the update on. If empty, // the operation applies to all fields. // // In info, Name, Parent, Kind, Created are immutable, // other field may be updated using this mask. // If no mask is provided, all mutable field are updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateSnapshotRequest) Descriptor ¶
func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSnapshotRequest.ProtoReflect.Descriptor instead.
func (*UpdateSnapshotRequest) GetInfo ¶
func (x *UpdateSnapshotRequest) GetInfo() *Info
func (*UpdateSnapshotRequest) GetSnapshotter ¶
func (x *UpdateSnapshotRequest) GetSnapshotter() string
func (*UpdateSnapshotRequest) GetUpdateMask ¶
func (x *UpdateSnapshotRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateSnapshotRequest) ProtoMessage ¶
func (*UpdateSnapshotRequest) ProtoMessage()
func (*UpdateSnapshotRequest) ProtoReflect ¶
func (x *UpdateSnapshotRequest) ProtoReflect() protoreflect.Message
func (*UpdateSnapshotRequest) Reset ¶
func (x *UpdateSnapshotRequest) Reset()
func (*UpdateSnapshotRequest) String ¶
func (x *UpdateSnapshotRequest) String() string
type UpdateSnapshotResponse ¶
type UpdateSnapshotResponse struct { Info *Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*UpdateSnapshotResponse) Descriptor ¶
func (*UpdateSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSnapshotResponse.ProtoReflect.Descriptor instead.
func (*UpdateSnapshotResponse) GetInfo ¶
func (x *UpdateSnapshotResponse) GetInfo() *Info
func (*UpdateSnapshotResponse) ProtoMessage ¶
func (*UpdateSnapshotResponse) ProtoMessage()
func (*UpdateSnapshotResponse) ProtoReflect ¶
func (x *UpdateSnapshotResponse) ProtoReflect() protoreflect.Message
func (*UpdateSnapshotResponse) Reset ¶
func (x *UpdateSnapshotResponse) Reset()
func (*UpdateSnapshotResponse) String ¶
func (x *UpdateSnapshotResponse) String() string
type UsageRequest ¶
type UsageRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*UsageRequest) Descriptor ¶
func (*UsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.
func (*UsageRequest) GetKey ¶
func (x *UsageRequest) GetKey() string
func (*UsageRequest) GetSnapshotter ¶
func (x *UsageRequest) GetSnapshotter() string
func (*UsageRequest) ProtoMessage ¶
func (*UsageRequest) ProtoMessage()
func (*UsageRequest) ProtoReflect ¶
func (x *UsageRequest) ProtoReflect() protoreflect.Message
func (*UsageRequest) Reset ¶
func (x *UsageRequest) Reset()
func (*UsageRequest) String ¶
func (x *UsageRequest) String() string
type UsageResponse ¶
type UsageResponse struct { Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` Inodes int64 `protobuf:"varint,2,opt,name=inodes,proto3" json:"inodes,omitempty"` // contains filtered or unexported fields }
func (*UsageResponse) Descriptor ¶
func (*UsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsageResponse.ProtoReflect.Descriptor instead.
func (*UsageResponse) GetInodes ¶
func (x *UsageResponse) GetInodes() int64
func (*UsageResponse) GetSize ¶
func (x *UsageResponse) GetSize() int64
func (*UsageResponse) ProtoMessage ¶
func (*UsageResponse) ProtoMessage()
func (*UsageResponse) ProtoReflect ¶
func (x *UsageResponse) ProtoReflect() protoreflect.Message
func (*UsageResponse) Reset ¶
func (x *UsageResponse) Reset()
func (*UsageResponse) String ¶
func (x *UsageResponse) String() string
type ViewSnapshotRequest ¶
type ViewSnapshotRequest struct { Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` // Labels are arbitrary data on snapshots. // // The combined size of a key/value pair cannot exceed 4096 bytes. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*ViewSnapshotRequest) Descriptor ¶
func (*ViewSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use ViewSnapshotRequest.ProtoReflect.Descriptor instead.
func (*ViewSnapshotRequest) GetKey ¶
func (x *ViewSnapshotRequest) GetKey() string
func (*ViewSnapshotRequest) GetLabels ¶
func (x *ViewSnapshotRequest) GetLabels() map[string]string
func (*ViewSnapshotRequest) GetParent ¶
func (x *ViewSnapshotRequest) GetParent() string
func (*ViewSnapshotRequest) GetSnapshotter ¶
func (x *ViewSnapshotRequest) GetSnapshotter() string
func (*ViewSnapshotRequest) ProtoMessage ¶
func (*ViewSnapshotRequest) ProtoMessage()
func (*ViewSnapshotRequest) ProtoReflect ¶
func (x *ViewSnapshotRequest) ProtoReflect() protoreflect.Message
func (*ViewSnapshotRequest) Reset ¶
func (x *ViewSnapshotRequest) Reset()
func (*ViewSnapshotRequest) String ¶
func (x *ViewSnapshotRequest) String() string
type ViewSnapshotResponse ¶
type ViewSnapshotResponse struct { Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` // contains filtered or unexported fields }
func (*ViewSnapshotResponse) Descriptor ¶
func (*ViewSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use ViewSnapshotResponse.ProtoReflect.Descriptor instead.
func (*ViewSnapshotResponse) GetMounts ¶
func (x *ViewSnapshotResponse) GetMounts() []*types.Mount
func (*ViewSnapshotResponse) ProtoMessage ¶
func (*ViewSnapshotResponse) ProtoMessage()
func (*ViewSnapshotResponse) ProtoReflect ¶
func (x *ViewSnapshotResponse) ProtoReflect() protoreflect.Message
func (*ViewSnapshotResponse) Reset ¶
func (x *ViewSnapshotResponse) Reset()
func (*ViewSnapshotResponse) String ¶
func (x *ViewSnapshotResponse) String() string
Source Files ¶
doc.go snapshots.pb.go snapshots_grpc.pb.go
- Version
- v1.7.9
- Published
- Nov 16, 2023
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 18 minutes ago –
Tools for package owners.