Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.