storage

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package storage for storage plugin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxWithPluginName

func CtxWithPluginName(ctx context.Context, pluginName string) context.Context

CtxWithPluginName return context.Context with plugin name

func PluginNameFromCtx

func PluginNameFromCtx(ctx context.Context) string

PluginNameFromCtx returns plugin name from context

func WithClientSet

func WithClientSet(ctx context.Context, clientSet Interface) context.Context

WithClientSet return context with client set

Types

type Clientset

type Clientset struct {
	// contains filtered or unexported fields
}

Clientset contains the core and capabilities plugin clients.

func NewForClient

func NewForClient(classAddress *v1.Addressable, client *resty.Client) (*Clientset, error)

NewForClient return a new clientset instance

func (*Clientset) ArchiveV1alpha1

func (c *Clientset) ArchiveV1alpha1() archivev1alpha1.ArchiveInterface

ArchiveV1alpha1 return archive v1alpha1 interface

func (*Clientset) CoreV1alpha1

func (c *Clientset) CoreV1alpha1() corev1alpha1.CoreV1alpha1Interface

CoreV1alpha1 return core v1alpha1 interface

func (*Clientset) FileStoreV1alpha1

func (c *Clientset) FileStoreV1alpha1() v1alpha1.FileStoreV1alpha1Interface

FileStoreV1alpha1 return file store v1alpha1 interface

type Interface

type Interface interface {
	CoreV1alpha1() corev1alpha1.CoreV1alpha1Interface
	FileStoreV1alpha1() v1alpha1.FileStoreV1alpha1Interface
	ArchiveV1alpha1() archivev1alpha1.ArchiveInterface
}

func ClientSetFromCtx

func ClientSetFromCtx(ctx context.Context) Interface

ClientSetFromCtx return clientset from context

type PluginRegister

type PluginRegister interface {
	client.Interface
	client.LivenessChecker
	client.Initializer
	client.DependentResourceGetter
	client.PluginAddressable

	// core interface must be implemented, will be served
	corev1alpha1.CoreInterface

	// GetStoragePluginClassName returns storage plugin class name
	GetStoragePluginClassName() string
}

PluginRegister provides storage plugin registration methods to update StoragePluginClass and StoragePlugin status

type VersionedRouter

type VersionedRouter interface {
	route.ContextRoute
	GroupVersion() schema.GroupVersion
}

VersionedRouter defines route with group version method

Directories

Path Synopsis
Package capabilities for storage plugin capabilities
Package capabilities for storage plugin capabilities
archive
Package archive for archive capability
Package archive for archive capability
archive/v1alpha1
Package v1alpha1 defines versioned interfaces for archive capability
Package v1alpha1 defines versioned interfaces for archive capability
filestore
Package filestore for file store capability
Package filestore for file store capability
filestore/v1alpha1
Package v1alpha1 defines versioned interfaces for file-store capability
Package v1alpha1 defines versioned interfaces for file-store capability
Package client for storage plugin client
Package client for storage plugin client
versioned/archive/v1alpha1
Package v1alpha1 for archive v1alpha1 client
Package v1alpha1 for archive v1alpha1 client
versioned/core/v1alpha1
Package v1alpha1 for storage plugin core v1alpha1 client
Package v1alpha1 for storage plugin core v1alpha1 client
versioned/filestore/v1alpha1
Package v1alpha1 for file store v1alpha1 client
Package v1alpha1 for file store v1alpha1 client
core
v1alpha1
Package v1alpha1 defines versioned api server routes of core v1alpha1
Package v1alpha1 defines versioned api server routes of core v1alpha1
Package route for storage plugin api server routes
Package route for storage plugin api server routes
archive/v1alpha1
Package v1alpha1 for archive v1alpha1 routes
Package v1alpha1 for archive v1alpha1 routes
core/v1alpha1
Package v1alpha1 for core v1alpha1 routes
Package v1alpha1 for core v1alpha1 routes
filestore/v1alpha1
Package v1alpha1 for file store v1alpha1 routes
Package v1alpha1 for file store v1alpha1 routes

Jump to

Keyboard shortcuts

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