storageclass

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 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 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) WaitOnReady

func (sc *StorageClass) WaitOnReady(sleep, duration 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