snapshot

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSnapshotServer

func RegisterSnapshotServer(s *grpc.Server, srv SnapshotServer)

Types

type CloneResponse

type CloneResponse struct {
	Clone                string   `protobuf:"bytes,1,opt,name=clone,proto3" json:"clone,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CloneResponse) Descriptor

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

func (*CloneResponse) GetClone

func (m *CloneResponse) GetClone() string

func (*CloneResponse) ProtoMessage

func (*CloneResponse) ProtoMessage()

func (*CloneResponse) Reset

func (m *CloneResponse) Reset()

func (*CloneResponse) String

func (m *CloneResponse) String() string

func (*CloneResponse) XXX_DiscardUnknown

func (m *CloneResponse) XXX_DiscardUnknown()

func (*CloneResponse) XXX_Marshal

func (m *CloneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CloneResponse) XXX_Merge

func (m *CloneResponse) XXX_Merge(src proto.Message)

func (*CloneResponse) XXX_Size

func (m *CloneResponse) XXX_Size() int

func (*CloneResponse) XXX_Unmarshal

func (m *CloneResponse) XXX_Unmarshal(b []byte) error

type GenericResponse

type GenericResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenericResponse) Descriptor

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

func (*GenericResponse) ProtoMessage

func (*GenericResponse) ProtoMessage()

func (*GenericResponse) Reset

func (m *GenericResponse) Reset()

func (*GenericResponse) String

func (m *GenericResponse) String() string

func (*GenericResponse) XXX_DiscardUnknown

func (m *GenericResponse) XXX_DiscardUnknown()

func (*GenericResponse) XXX_Marshal

func (m *GenericResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenericResponse) XXX_Merge

func (m *GenericResponse) XXX_Merge(src proto.Message)

func (*GenericResponse) XXX_Size

func (m *GenericResponse) XXX_Size() int

func (*GenericResponse) XXX_Unmarshal

func (m *GenericResponse) XXX_Unmarshal(b []byte) error

type ObjectEntry

type ObjectEntry struct {
	Cluster              string   `protobuf:"bytes,1,opt,name=Cluster,proto3" json:"Cluster,omitempty"`
	Tenant               string   `protobuf:"bytes,2,opt,name=Tenant,proto3" json:"Tenant,omitempty"`
	Bucket               string   `protobuf:"bytes,3,opt,name=Bucket,proto3" json:"Bucket,omitempty"`
	Object               string   `protobuf:"bytes,4,opt,name=Object,proto3" json:"Object,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ObjectEntry) Descriptor

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

func (*ObjectEntry) GetBucket

func (m *ObjectEntry) GetBucket() string

func (*ObjectEntry) GetCluster

func (m *ObjectEntry) GetCluster() string

func (*ObjectEntry) GetObject

func (m *ObjectEntry) GetObject() string

func (*ObjectEntry) GetTenant

func (m *ObjectEntry) GetTenant() string

func (*ObjectEntry) ProtoMessage

func (*ObjectEntry) ProtoMessage()

func (*ObjectEntry) Reset

func (m *ObjectEntry) Reset()

func (*ObjectEntry) String

func (m *ObjectEntry) String() string

func (*ObjectEntry) XXX_DiscardUnknown

func (m *ObjectEntry) XXX_DiscardUnknown()

func (*ObjectEntry) XXX_Marshal

func (m *ObjectEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ObjectEntry) XXX_Merge

func (m *ObjectEntry) XXX_Merge(src proto.Message)

func (*ObjectEntry) XXX_Size

func (m *ObjectEntry) XXX_Size() int

func (*ObjectEntry) XXX_Unmarshal

func (m *ObjectEntry) XXX_Unmarshal(b []byte) error

type SnapshotClient

type SnapshotClient interface {
	CreateSnapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (*SnapshotResponse, error)
	DeleteSnapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (*GenericResponse, error)
	CloneSnapshot(ctx context.Context, in *SnapshotCloneRequest, opts ...grpc.CallOption) (*CloneResponse, error)
	ListSnapshots(ctx context.Context, in *SnapshotListRequest, opts ...grpc.CallOption) (*SnapshotListResponse, error)
}

SnapshotClient is the client API for Snapshot service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSnapshotClient

func NewSnapshotClient(cc *grpc.ClientConn) SnapshotClient

type SnapshotCloneRequest

type SnapshotCloneRequest struct {
	Snapshot             *SnapshotEntry `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	Clone                *ObjectEntry   `protobuf:"bytes,2,opt,name=clone,proto3" json:"clone,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*SnapshotCloneRequest) Descriptor

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

func (*SnapshotCloneRequest) GetClone

func (m *SnapshotCloneRequest) GetClone() *ObjectEntry

func (*SnapshotCloneRequest) GetSnapshot

func (m *SnapshotCloneRequest) GetSnapshot() *SnapshotEntry

func (*SnapshotCloneRequest) ProtoMessage

func (*SnapshotCloneRequest) ProtoMessage()

func (*SnapshotCloneRequest) Reset

func (m *SnapshotCloneRequest) Reset()

func (*SnapshotCloneRequest) String

func (m *SnapshotCloneRequest) String() string

func (*SnapshotCloneRequest) XXX_DiscardUnknown

func (m *SnapshotCloneRequest) XXX_DiscardUnknown()

func (*SnapshotCloneRequest) XXX_Marshal

func (m *SnapshotCloneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotCloneRequest) XXX_Merge

func (m *SnapshotCloneRequest) XXX_Merge(src proto.Message)

func (*SnapshotCloneRequest) XXX_Size

func (m *SnapshotCloneRequest) XXX_Size() int

func (*SnapshotCloneRequest) XXX_Unmarshal

func (m *SnapshotCloneRequest) XXX_Unmarshal(b []byte) error

type SnapshotEntry

type SnapshotEntry struct {
	Cluster              string   `protobuf:"bytes,1,opt,name=Cluster,proto3" json:"Cluster,omitempty"`
	Tenant               string   `protobuf:"bytes,2,opt,name=Tenant,proto3" json:"Tenant,omitempty"`
	Bucket               string   `protobuf:"bytes,3,opt,name=Bucket,proto3" json:"Bucket,omitempty"`
	Object               string   `protobuf:"bytes,4,opt,name=Object,proto3" json:"Object,omitempty"`
	Name                 string   `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SnapshotEntry) Descriptor

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

func (*SnapshotEntry) GetBucket

func (m *SnapshotEntry) GetBucket() string

func (*SnapshotEntry) GetCluster

func (m *SnapshotEntry) GetCluster() string

func (*SnapshotEntry) GetName

func (m *SnapshotEntry) GetName() string

func (*SnapshotEntry) GetObject

func (m *SnapshotEntry) GetObject() string

func (*SnapshotEntry) GetTenant

func (m *SnapshotEntry) GetTenant() string

func (*SnapshotEntry) ProtoMessage

func (*SnapshotEntry) ProtoMessage()

func (*SnapshotEntry) Reset

func (m *SnapshotEntry) Reset()

func (*SnapshotEntry) String

func (m *SnapshotEntry) String() string

func (*SnapshotEntry) XXX_DiscardUnknown

func (m *SnapshotEntry) XXX_DiscardUnknown()

func (*SnapshotEntry) XXX_Marshal

func (m *SnapshotEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotEntry) XXX_Merge

func (m *SnapshotEntry) XXX_Merge(src proto.Message)

func (*SnapshotEntry) XXX_Size

func (m *SnapshotEntry) XXX_Size() int

func (*SnapshotEntry) XXX_Unmarshal

func (m *SnapshotEntry) XXX_Unmarshal(b []byte) error

type SnapshotInfo

type SnapshotInfo struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SourceObject         string   `protobuf:"bytes,2,opt,name=sourceObject,proto3" json:"sourceObject,omitempty"`
	CreationTime         int64    `protobuf:"varint,3,opt,name=creationTime,proto3" json:"creationTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SnapshotInfo) Descriptor

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

func (*SnapshotInfo) GetCreationTime

func (m *SnapshotInfo) GetCreationTime() int64

func (*SnapshotInfo) GetName

func (m *SnapshotInfo) GetName() string

func (*SnapshotInfo) GetSourceObject

func (m *SnapshotInfo) GetSourceObject() string

func (*SnapshotInfo) ProtoMessage

func (*SnapshotInfo) ProtoMessage()

func (*SnapshotInfo) Reset

func (m *SnapshotInfo) Reset()

func (*SnapshotInfo) String

func (m *SnapshotInfo) String() string

func (*SnapshotInfo) XXX_DiscardUnknown

func (m *SnapshotInfo) XXX_DiscardUnknown()

func (*SnapshotInfo) XXX_Marshal

func (m *SnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotInfo) XXX_Merge

func (m *SnapshotInfo) XXX_Merge(src proto.Message)

func (*SnapshotInfo) XXX_Size

func (m *SnapshotInfo) XXX_Size() int

func (*SnapshotInfo) XXX_Unmarshal

func (m *SnapshotInfo) XXX_Unmarshal(b []byte) error

type SnapshotListRequest

type SnapshotListRequest struct {
	Object               *ObjectEntry `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Pattern              string       `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"`
	Count                uint32       `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*SnapshotListRequest) Descriptor

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

func (*SnapshotListRequest) GetCount

func (m *SnapshotListRequest) GetCount() uint32

func (*SnapshotListRequest) GetObject

func (m *SnapshotListRequest) GetObject() *ObjectEntry

func (*SnapshotListRequest) GetPattern

func (m *SnapshotListRequest) GetPattern() string

func (*SnapshotListRequest) ProtoMessage

func (*SnapshotListRequest) ProtoMessage()

func (*SnapshotListRequest) Reset

func (m *SnapshotListRequest) Reset()

func (*SnapshotListRequest) String

func (m *SnapshotListRequest) String() string

func (*SnapshotListRequest) XXX_DiscardUnknown

func (m *SnapshotListRequest) XXX_DiscardUnknown()

func (*SnapshotListRequest) XXX_Marshal

func (m *SnapshotListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotListRequest) XXX_Merge

func (m *SnapshotListRequest) XXX_Merge(src proto.Message)

func (*SnapshotListRequest) XXX_Size

func (m *SnapshotListRequest) XXX_Size() int

func (*SnapshotListRequest) XXX_Unmarshal

func (m *SnapshotListRequest) XXX_Unmarshal(b []byte) error

type SnapshotListResponse

type SnapshotListResponse struct {
	Info                 map[string]*SnapshotInfo `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*SnapshotListResponse) Descriptor

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

func (*SnapshotListResponse) GetInfo

func (m *SnapshotListResponse) GetInfo() map[string]*SnapshotInfo

func (*SnapshotListResponse) ProtoMessage

func (*SnapshotListResponse) ProtoMessage()

func (*SnapshotListResponse) Reset

func (m *SnapshotListResponse) Reset()

func (*SnapshotListResponse) String

func (m *SnapshotListResponse) String() string

func (*SnapshotListResponse) XXX_DiscardUnknown

func (m *SnapshotListResponse) XXX_DiscardUnknown()

func (*SnapshotListResponse) XXX_Marshal

func (m *SnapshotListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotListResponse) XXX_Merge

func (m *SnapshotListResponse) XXX_Merge(src proto.Message)

func (*SnapshotListResponse) XXX_Size

func (m *SnapshotListResponse) XXX_Size() int

func (*SnapshotListResponse) XXX_Unmarshal

func (m *SnapshotListResponse) XXX_Unmarshal(b []byte) error

type SnapshotRequest

type SnapshotRequest struct {
	Snapshot             *SnapshotEntry `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*SnapshotRequest) Descriptor

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

func (*SnapshotRequest) GetSnapshot

func (m *SnapshotRequest) GetSnapshot() *SnapshotEntry

func (*SnapshotRequest) ProtoMessage

func (*SnapshotRequest) ProtoMessage()

func (*SnapshotRequest) Reset

func (m *SnapshotRequest) Reset()

func (*SnapshotRequest) String

func (m *SnapshotRequest) String() string

func (*SnapshotRequest) XXX_DiscardUnknown

func (m *SnapshotRequest) XXX_DiscardUnknown()

func (*SnapshotRequest) XXX_Marshal

func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotRequest) XXX_Merge

func (m *SnapshotRequest) XXX_Merge(src proto.Message)

func (*SnapshotRequest) XXX_Size

func (m *SnapshotRequest) XXX_Size() int

func (*SnapshotRequest) XXX_Unmarshal

func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error

type SnapshotResponse

type SnapshotResponse struct {
	Snapshot             *SnapshotInfo `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SnapshotResponse) Descriptor

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

func (*SnapshotResponse) GetSnapshot

func (m *SnapshotResponse) GetSnapshot() *SnapshotInfo

func (*SnapshotResponse) ProtoMessage

func (*SnapshotResponse) ProtoMessage()

func (*SnapshotResponse) Reset

func (m *SnapshotResponse) Reset()

func (*SnapshotResponse) String

func (m *SnapshotResponse) String() string

func (*SnapshotResponse) XXX_DiscardUnknown

func (m *SnapshotResponse) XXX_DiscardUnknown()

func (*SnapshotResponse) XXX_Marshal

func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotResponse) XXX_Merge

func (m *SnapshotResponse) XXX_Merge(src proto.Message)

func (*SnapshotResponse) XXX_Size

func (m *SnapshotResponse) XXX_Size() int

func (*SnapshotResponse) XXX_Unmarshal

func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error

type SnapshotServer

type SnapshotServer interface {
	CreateSnapshot(context.Context, *SnapshotRequest) (*SnapshotResponse, error)
	DeleteSnapshot(context.Context, *SnapshotRequest) (*GenericResponse, error)
	CloneSnapshot(context.Context, *SnapshotCloneRequest) (*CloneResponse, error)
	ListSnapshots(context.Context, *SnapshotListRequest) (*SnapshotListResponse, error)
}

SnapshotServer is the server API for Snapshot service.

type SnapviewRequest

type SnapviewRequest struct {
	Object               *ObjectEntry `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*SnapviewRequest) Descriptor

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

func (*SnapviewRequest) GetObject

func (m *SnapviewRequest) GetObject() *ObjectEntry

func (*SnapviewRequest) ProtoMessage

func (*SnapviewRequest) ProtoMessage()

func (*SnapviewRequest) Reset

func (m *SnapviewRequest) Reset()

func (*SnapviewRequest) String

func (m *SnapviewRequest) String() string

func (*SnapviewRequest) XXX_DiscardUnknown

func (m *SnapviewRequest) XXX_DiscardUnknown()

func (*SnapviewRequest) XXX_Marshal

func (m *SnapviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapviewRequest) XXX_Merge

func (m *SnapviewRequest) XXX_Merge(src proto.Message)

func (*SnapviewRequest) XXX_Size

func (m *SnapviewRequest) XXX_Size() int

func (*SnapviewRequest) XXX_Unmarshal

func (m *SnapviewRequest) XXX_Unmarshal(b []byte) error

type UnimplementedSnapshotServer

type UnimplementedSnapshotServer struct {
}

UnimplementedSnapshotServer can be embedded to have forward compatible implementations.

func (*UnimplementedSnapshotServer) CloneSnapshot

func (*UnimplementedSnapshotServer) CreateSnapshot

func (*UnimplementedSnapshotServer) DeleteSnapshot

func (*UnimplementedSnapshotServer) ListSnapshots

Jump to

Keyboard shortcuts

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