snapperv1

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnapperService_ListStack_FullMethodName            = "/snapper.v1.SnapperService/ListStack"
	SnapperService_ListStatus_FullMethodName           = "/snapper.v1.SnapperService/ListStatus"
	SnapperService_ListArchiveSnapshots_FullMethodName = "/snapper.v1.SnapperService/ListArchiveSnapshots"
	SnapperService_ListManualSnapshots_FullMethodName  = "/snapper.v1.SnapperService/ListManualSnapshots"
	SnapperService_ListRemoteSnapshots_FullMethodName  = "/snapper.v1.SnapperService/ListRemoteSnapshots"
)

Variables

View Source
var File_proto_snapper_v1_snapper_proto protoreflect.FileDescriptor
View Source
var SnapperService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "snapper.v1.SnapperService",
	HandlerType: (*SnapperServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListStack",
			Handler:    _SnapperService_ListStack_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListStatus",
			Handler:       _SnapperService_ListStatus_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListArchiveSnapshots",
			Handler:       _SnapperService_ListArchiveSnapshots_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListManualSnapshots",
			Handler:       _SnapperService_ListManualSnapshots_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListRemoteSnapshots",
			Handler:       _SnapperService_ListRemoteSnapshots_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "proto/snapper/v1/snapper.proto",
}

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

Functions

func RegisterSnapperServiceServer

func RegisterSnapperServiceServer(s grpc.ServiceRegistrar, srv SnapperServiceServer)

Types

type ListArchiveSnapshotsResponse

type ListArchiveSnapshotsResponse struct {
	Tag      string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag"`
	Chain    string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain"`
	Complete bool   `protobuf:"varint,3,opt,name=complete,proto3" json:"complete"`
	UsedSize int64  `protobuf:"varint,4,opt,name=used_size,json=usedSize,proto3" json:"used_size"`
	// contains filtered or unexported fields
}

func (*ListArchiveSnapshotsResponse) Descriptor deprecated

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

Deprecated: Use ListArchiveSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListArchiveSnapshotsResponse) GetChain

func (x *ListArchiveSnapshotsResponse) GetChain() string

func (*ListArchiveSnapshotsResponse) GetComplete

func (x *ListArchiveSnapshotsResponse) GetComplete() bool

func (*ListArchiveSnapshotsResponse) GetTag

func (*ListArchiveSnapshotsResponse) GetUsedSize

func (x *ListArchiveSnapshotsResponse) GetUsedSize() int64

func (*ListArchiveSnapshotsResponse) ProtoMessage

func (*ListArchiveSnapshotsResponse) ProtoMessage()

func (*ListArchiveSnapshotsResponse) ProtoReflect

func (*ListArchiveSnapshotsResponse) Reset

func (x *ListArchiveSnapshotsResponse) Reset()

func (*ListArchiveSnapshotsResponse) String

type ListManualSnapshotsResponse

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

func (*ListManualSnapshotsResponse) Descriptor deprecated

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

Deprecated: Use ListManualSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListManualSnapshotsResponse) GetName

func (x *ListManualSnapshotsResponse) GetName() string

func (*ListManualSnapshotsResponse) GetTag

func (x *ListManualSnapshotsResponse) GetTag() string

func (*ListManualSnapshotsResponse) ProtoMessage

func (*ListManualSnapshotsResponse) ProtoMessage()

func (*ListManualSnapshotsResponse) ProtoReflect

func (*ListManualSnapshotsResponse) Reset

func (x *ListManualSnapshotsResponse) Reset()

func (*ListManualSnapshotsResponse) String

func (x *ListManualSnapshotsResponse) String() string

type ListRemoteSnapshotsResponse

type ListRemoteSnapshotsResponse struct {
	Tag             string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag"`
	Image           string `protobuf:"bytes,2,opt,name=image,proto3" json:"image"`
	ProvisionedSize int64  `protobuf:"varint,3,opt,name=provisioned_size,json=provisionedSize,proto3" json:"provisioned_size"`
	UsedSize        int64  `protobuf:"varint,4,opt,name=used_size,json=usedSize,proto3" json:"used_size"`
	// contains filtered or unexported fields
}

func (*ListRemoteSnapshotsResponse) Descriptor deprecated

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

Deprecated: Use ListRemoteSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListRemoteSnapshotsResponse) GetImage

func (x *ListRemoteSnapshotsResponse) GetImage() string

func (*ListRemoteSnapshotsResponse) GetProvisionedSize

func (x *ListRemoteSnapshotsResponse) GetProvisionedSize() int64

func (*ListRemoteSnapshotsResponse) GetTag

func (x *ListRemoteSnapshotsResponse) GetTag() string

func (*ListRemoteSnapshotsResponse) GetUsedSize

func (x *ListRemoteSnapshotsResponse) GetUsedSize() int64

func (*ListRemoteSnapshotsResponse) ProtoMessage

func (*ListRemoteSnapshotsResponse) ProtoMessage()

func (*ListRemoteSnapshotsResponse) ProtoReflect

func (*ListRemoteSnapshotsResponse) Reset

func (x *ListRemoteSnapshotsResponse) Reset()

func (*ListRemoteSnapshotsResponse) String

func (x *ListRemoteSnapshotsResponse) String() string

type ListStackResponse

type ListStackResponse struct {
	Stack string `protobuf:"bytes,1,opt,name=stack,proto3" json:"stack"`
	// contains filtered or unexported fields
}

func (*ListStackResponse) Descriptor deprecated

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

Deprecated: Use ListStackResponse.ProtoReflect.Descriptor instead.

func (*ListStackResponse) GetStack

func (x *ListStackResponse) GetStack() string

func (*ListStackResponse) ProtoMessage

func (*ListStackResponse) ProtoMessage()

func (*ListStackResponse) ProtoReflect

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

func (*ListStackResponse) Reset

func (x *ListStackResponse) Reset()

func (*ListStackResponse) String

func (x *ListStackResponse) String() string

type ListStatusResponse

type ListStatusResponse struct {
	Type       string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type"`
	Id         uint64                 `protobuf:"varint,2,opt,name=id,proto3" json:"id"`
	Instance   int64                  `protobuf:"varint,3,opt,name=instance,proto3" json:"instance"`
	Hypervisor string                 `protobuf:"bytes,4,opt,name=hypervisor,proto3" json:"hypervisor"`
	Rbd        string                 `protobuf:"bytes,5,opt,name=rbd,proto3" json:"rbd"`
	Scheduled  *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=scheduled,proto3,oneof" json:"scheduled"`
	Started    *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started,proto3,oneof" json:"started"`
	Finished   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished,proto3,oneof" json:"finished"`
	Schedule   string                 `protobuf:"bytes,9,opt,name=schedule,proto3" json:"schedule"`
	Progress   []int64                `protobuf:"varint,10,rep,packed,name=progress,proto3" json:"progress"`
	// contains filtered or unexported fields
}

func (*ListStatusResponse) Descriptor deprecated

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

Deprecated: Use ListStatusResponse.ProtoReflect.Descriptor instead.

func (*ListStatusResponse) GetFinished

func (x *ListStatusResponse) GetFinished() *timestamppb.Timestamp

func (*ListStatusResponse) GetHypervisor

func (x *ListStatusResponse) GetHypervisor() string

func (*ListStatusResponse) GetId

func (x *ListStatusResponse) GetId() uint64

func (*ListStatusResponse) GetInstance

func (x *ListStatusResponse) GetInstance() int64

func (*ListStatusResponse) GetProgress

func (x *ListStatusResponse) GetProgress() []int64

func (*ListStatusResponse) GetRbd

func (x *ListStatusResponse) GetRbd() string

func (*ListStatusResponse) GetSchedule

func (x *ListStatusResponse) GetSchedule() string

func (*ListStatusResponse) GetScheduled

func (x *ListStatusResponse) GetScheduled() *timestamppb.Timestamp

func (*ListStatusResponse) GetStarted

func (x *ListStatusResponse) GetStarted() *timestamppb.Timestamp

func (*ListStatusResponse) GetType

func (x *ListStatusResponse) GetType() string

func (*ListStatusResponse) ProtoMessage

func (*ListStatusResponse) ProtoMessage()

func (*ListStatusResponse) ProtoReflect

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

func (*ListStatusResponse) Reset

func (x *ListStatusResponse) Reset()

func (*ListStatusResponse) String

func (x *ListStatusResponse) String() string

type SnapperServiceClient

type SnapperServiceClient interface {
	ListStack(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListStackResponse, error)
	ListStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (SnapperService_ListStatusClient, error)
	ListArchiveSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (SnapperService_ListArchiveSnapshotsClient, error)
	ListManualSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (SnapperService_ListManualSnapshotsClient, error)
	ListRemoteSnapshots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (SnapperService_ListRemoteSnapshotsClient, error)
}

SnapperServiceClient is the client API for SnapperService 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 SnapperServiceServer

type SnapperServiceServer interface {
	ListStack(context.Context, *emptypb.Empty) (*ListStackResponse, error)
	ListStatus(*emptypb.Empty, SnapperService_ListStatusServer) error
	ListArchiveSnapshots(*emptypb.Empty, SnapperService_ListArchiveSnapshotsServer) error
	ListManualSnapshots(*emptypb.Empty, SnapperService_ListManualSnapshotsServer) error
	ListRemoteSnapshots(*emptypb.Empty, SnapperService_ListRemoteSnapshotsServer) error
	// contains filtered or unexported methods
}

SnapperServiceServer is the server API for SnapperService service. All implementations must embed UnimplementedSnapperServiceServer for forward compatibility

type SnapperService_ListArchiveSnapshotsClient

type SnapperService_ListArchiveSnapshotsClient interface {
	Recv() (*ListArchiveSnapshotsResponse, error)
	grpc.ClientStream
}

type SnapperService_ListArchiveSnapshotsServer

type SnapperService_ListArchiveSnapshotsServer interface {
	Send(*ListArchiveSnapshotsResponse) error
	grpc.ServerStream
}

type SnapperService_ListManualSnapshotsClient

type SnapperService_ListManualSnapshotsClient interface {
	Recv() (*ListManualSnapshotsResponse, error)
	grpc.ClientStream
}

type SnapperService_ListManualSnapshotsServer

type SnapperService_ListManualSnapshotsServer interface {
	Send(*ListManualSnapshotsResponse) error
	grpc.ServerStream
}

type SnapperService_ListRemoteSnapshotsClient

type SnapperService_ListRemoteSnapshotsClient interface {
	Recv() (*ListRemoteSnapshotsResponse, error)
	grpc.ClientStream
}

type SnapperService_ListRemoteSnapshotsServer

type SnapperService_ListRemoteSnapshotsServer interface {
	Send(*ListRemoteSnapshotsResponse) error
	grpc.ServerStream
}

type SnapperService_ListStatusClient

type SnapperService_ListStatusClient interface {
	Recv() (*ListStatusResponse, error)
	grpc.ClientStream
}

type SnapperService_ListStatusServer

type SnapperService_ListStatusServer interface {
	Send(*ListStatusResponse) error
	grpc.ServerStream
}

type UnimplementedSnapperServiceServer

type UnimplementedSnapperServiceServer struct {
}

UnimplementedSnapperServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSnapperServiceServer) ListArchiveSnapshots

func (UnimplementedSnapperServiceServer) ListManualSnapshots

func (UnimplementedSnapperServiceServer) ListRemoteSnapshots

func (UnimplementedSnapperServiceServer) ListStack

func (UnimplementedSnapperServiceServer) ListStatus

type UnsafeSnapperServiceServer

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

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

Jump to

Keyboard shortcuts

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