v1

package
v0.0.0-...-0e15285 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 7 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() 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(name string) (*StorageClass, error)
	List() ([]*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