Documentation ¶
Index ¶
- Constants
- type BlockDiskOps
- func (ops BlockDiskOps) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
- func (ops BlockDiskOps) DiskDelete(req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
- func (ops BlockDiskOps) DiskGet(req *rpc.DiskGetRequest) (*rpc.Disk, error)
- func (ops BlockDiskOps) DiskReplicaInstanceDelete(req *rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error)
- func (ops BlockDiskOps) DiskReplicaInstanceList(req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
- type DiskOps
- type FilesystemDiskOps
- func (ops FilesystemDiskOps) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
- func (ops FilesystemDiskOps) DiskDelete(req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
- func (ops FilesystemDiskOps) DiskGet(req *rpc.DiskGetRequest) (*rpc.Disk, error)
- func (ops FilesystemDiskOps) DiskReplicaInstanceDelete(req *rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error)
- func (ops FilesystemDiskOps) DiskReplicaInstanceList(req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
- type GRPCHealthChecker
- type HealthChecker
- type Server
- func (s *Server) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
- func (s *Server) DiskDelete(ctx context.Context, req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
- func (s *Server) DiskGet(ctx context.Context, req *rpc.DiskGetRequest) (*rpc.Disk, error)
- func (s *Server) DiskReplicaInstanceDelete(ctx context.Context, req *rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error)
- func (s *Server) DiskReplicaInstanceList(ctx context.Context, req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
- func (s *Server) VersionGet(ctx context.Context, req *emptypb.Empty) (*rpc.DiskVersionResponse, error)
Constants ¶
View Source
const ( DiskTypeFilesystem = "filesystem" DiskTypeBlock = "block" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDiskOps ¶ added in v1.6.0
type BlockDiskOps struct {
// contains filtered or unexported fields
}
func (BlockDiskOps) DiskCreate ¶ added in v1.6.0
func (ops BlockDiskOps) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
func (BlockDiskOps) DiskDelete ¶ added in v1.6.0
func (ops BlockDiskOps) DiskDelete(req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
func (BlockDiskOps) DiskGet ¶ added in v1.6.0
func (ops BlockDiskOps) DiskGet(req *rpc.DiskGetRequest) (*rpc.Disk, error)
func (BlockDiskOps) DiskReplicaInstanceDelete ¶ added in v1.6.0
func (ops BlockDiskOps) DiskReplicaInstanceDelete(req *rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error)
func (BlockDiskOps) DiskReplicaInstanceList ¶ added in v1.6.0
func (ops BlockDiskOps) DiskReplicaInstanceList(req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
type DiskOps ¶ added in v1.6.0
type DiskOps interface { DiskCreate(context.Context, *rpc.DiskCreateRequest) (*rpc.Disk, error) DiskDelete(*rpc.DiskDeleteRequest) (*emptypb.Empty, error) DiskGet(req *rpc.DiskGetRequest) (*rpc.Disk, error) DiskReplicaInstanceList(*rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error) DiskReplicaInstanceDelete(*rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error) }
type FilesystemDiskOps ¶ added in v1.6.0
type FilesystemDiskOps struct{}
func (FilesystemDiskOps) DiskCreate ¶ added in v1.6.0
func (ops FilesystemDiskOps) DiskCreate(ctx context.Context, req *rpc.DiskCreateRequest) (*rpc.Disk, error)
func (FilesystemDiskOps) DiskDelete ¶ added in v1.6.0
func (ops FilesystemDiskOps) DiskDelete(req *rpc.DiskDeleteRequest) (*emptypb.Empty, error)
func (FilesystemDiskOps) DiskGet ¶ added in v1.6.0
func (ops FilesystemDiskOps) DiskGet(req *rpc.DiskGetRequest) (*rpc.Disk, error)
func (FilesystemDiskOps) DiskReplicaInstanceDelete ¶ added in v1.6.0
func (ops FilesystemDiskOps) DiskReplicaInstanceDelete(req *rpc.DiskReplicaInstanceDeleteRequest) (*emptypb.Empty, error)
func (FilesystemDiskOps) DiskReplicaInstanceList ¶ added in v1.6.0
func (ops FilesystemDiskOps) DiskReplicaInstanceList(req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
type GRPCHealthChecker ¶
type GRPCHealthChecker struct{}
func (*GRPCHealthChecker) IsRunning ¶
func (c *GRPCHealthChecker) IsRunning(address string) bool
func (*GRPCHealthChecker) WaitForRunning ¶
func (c *GRPCHealthChecker) WaitForRunning(address, name string, stopCh chan struct{}) bool
type HealthChecker ¶
type Server ¶
type Server struct { rpc.UnimplementedDiskServiceServer sync.RWMutex HealthChecker HealthChecker // contains filtered or unexported fields }
func (*Server) DiskCreate ¶
func (*Server) DiskDelete ¶
func (*Server) DiskReplicaInstanceDelete ¶
func (*Server) DiskReplicaInstanceList ¶
func (s *Server) DiskReplicaInstanceList(ctx context.Context, req *rpc.DiskReplicaInstanceListRequest) (*rpc.DiskReplicaInstanceListResponse, error)
func (*Server) VersionGet ¶
Click to show internal directories.
Click to hide internal directories.