storageclass

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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