handle

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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, content *xuanwuv1.StorageBackendContent) 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

Jump to

Keyboard shortcuts

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