v1

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StorageClassKind = resource.Kind{
	Group:   "storage.k8s.io",
	Version: "v1",
	Kind:    "StorageClass",
	Scoped:  true,
}
View Source
var StorageClassResource = resource.Type{
	Kind: StorageClassKind,
	Name: "storageclasses",
}

Functions

This section is empty.

Types

type Client

type Client interface {
	StorageClassesClient
}

func NewClient

func NewClient(resources resource.Client, filter resource.Filter) Client

type StorageClass

type StorageClass struct {
	*resource.Resource
	Object *storagev1.StorageClass
}

func NewStorageClass

func NewStorageClass(storageClass *storagev1.StorageClass, client resource.Client) *StorageClass

func (*StorageClass) Delete

func (r *StorageClass) Delete(ctx context.Context) error

type StorageClassesClient

type StorageClassesClient interface {
	StorageClasses() StorageClassesReader
}

func NewStorageClassesClient

func NewStorageClassesClient(resources resource.Client, filter resource.Filter) StorageClassesClient

type StorageClassesReader

type StorageClassesReader interface {
	Get(ctx context.Context, name string) (*StorageClass, error)
	List(ctx context.Context) ([]*StorageClass, error)
}

func NewStorageClassesReader

func NewStorageClassesReader(client resource.Client, filter resource.Filter) StorageClassesReader

Jump to

Keyboard shortcuts

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