Documentation
¶
Overview ¶
Package handle implements AddStorageBackend/RemoveStorageBackend/UpdateStorageBackend/GetBackendStats
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendInterfaces ¶
type BackendInterfaces interface {
// AddStorageBackend add storageBackend to provider
AddStorageBackend(ctx context.Context, claimName, configmapMeta, secretMeta string,
parameters map[string]string) (string, string, error)
// RemoveStorageBackend remove the storageBackend from provider
RemoveStorageBackend(ctx context.Context, backendName string) (err error)
// UpdateStorageBackend update the storageBackend
UpdateStorageBackend(ctx context.Context, contentName, backendName, configmapMeta, secretMeta string,
parameters map[string]string) error
// GetStorageBackendStats get all backend info from the provider
GetStorageBackendStats(ctx context.Context, contentName, backendName string) (*drcsi.GetBackendStatsResponse, error)
}
BackendInterfaces includes interfaces that call provider
func NewBackend ¶
func NewBackend(conn *grpc.ClientConn) BackendInterfaces
NewBackend returns a new BackendInterfaces
Click to show internal directories.
Click to hide internal directories.