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
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
Click to show internal directories.
Click to hide internal directories.