v1alpha1

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 for file store v1alpha1 client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFileObjectClient

func WithFileObjectClient(ctx context.Context, fileObjectClient FileObjectInterface) context.Context

WithFileObjectClient inject fileObjectClient to context

Types

type FileMetaGetter

type FileMetaGetter interface {
	FileMeta(pluginName string) FileMetaInterface
}

FileMetaGetter returns FileMeta getter object

type FileMetaInterface

type FileMetaInterface interface {
	GET(ctx context.Context, key string) (*v1alpha1.FileMeta, error)
	List(ctx context.Context, opts v1alpha1.FileMetaListOptions) ([]v1alpha1.FileMeta, error)
}

FileMetaInterface for file meta restful resource methods

type FileObjectGetter

type FileObjectGetter interface {
	FileObject(pluginName string) FileObjectInterface
}

FileObjectGetter returns FileObject getter object

type FileObjectInterface

type FileObjectInterface interface {
	PUT(ctx context.Context, fileObj filestorev1alpha1.FileObject,
		options ...client.OptionFunc) (*v1alpha1.FileMeta, error)
	GET(ctx context.Context, fileObjectName string) (*filestorev1alpha1.FileObject, error)
	DELETE(ctx context.Context, fileObjectName string) error
}

FileObjectInterface is interface for FileObject client

func FileObjectClientFrom

func FileObjectClientFrom(ctx context.Context) FileObjectInterface

FileObjectClientFrom get fileObjectClient from context

type FileStoreV1alpha1Client

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

FileStoreV1alpha1Client is client for core v1alpha1

func (*FileStoreV1alpha1Client) FileMeta

func (c *FileStoreV1alpha1Client) FileMeta(pluginName string) FileMetaInterface

func (*FileStoreV1alpha1Client) FileObject

func (c *FileStoreV1alpha1Client) FileObject(pluginName string) FileObjectInterface

func (*FileStoreV1alpha1Client) RESTClient

func (c *FileStoreV1alpha1Client) RESTClient() client.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FileStoreV1alpha1Interface

type FileStoreV1alpha1Interface interface {
	RESTClient() client.Interface
	FileObjectGetter
	FileMetaGetter
}

FileStoreV1alpha1Interface provides file store client methods

func NewForClient

func NewForClient(pClient client.Interface) FileStoreV1alpha1Interface

Jump to

Keyboard shortcuts

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