storageclass

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResult added in v0.41.0

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

GetResult is a return struct for GetAsync

func GetAsync added in v0.41.0

func GetAsync(scName string) GetResult

GetAsync wraps Get with a struct response for goroutine + channel usage

type Metadata

type Metadata struct {
	CreatedAt time.Time `json:"creationTimestamp"`
	Name      string    `json:"name"`
}

Metadata holds information like name, create time

type Parameters

type Parameters struct {
	SkuName string `json:"skuName"`
}

Parameters holds information like skuName

type StorageClass

type StorageClass struct {
	Metadata   Metadata   `json:"metadata"`
	Parameters Parameters `json:"parameters"`
}

StorageClass is used to parse data from kubectl get storageclass

func CreateStorageClassFromFile

func CreateStorageClassFromFile(filename, name string) (*StorageClass, error)

CreateStorageClassFromFile will create a StorageClass from file with a name

func Get

func Get(scName string) (*StorageClass, error)

Get will return a StorageClass with a given name and namespace

func (*StorageClass) Describe added in v0.41.0

func (sc *StorageClass) Describe() error

Describe will describe a storageclass resource

func (*StorageClass) WaitOnReady

func (sc *StorageClass) WaitOnReady(sleep, timeout time.Duration) (bool, error)

WaitOnReady will block until StorageClass is available

Jump to

Keyboard shortcuts

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