Documentation ¶
Index ¶
- func Create(client *occlient.Client, name string, size string, path string, ...) (string, error)
- func Delete(client *occlient.Client, name string, applicationName string) (string, error)
- func Exists(client *occlient.Client, storageName string, applicationName string) (bool, error)
- func GetComponentNameFromStorageName(client *occlient.Client, storageName string) (string, error)
- func GetMountPath(client *occlient.Client, storageName string, componentName string, ...) string
- func IsMounted(client *occlient.Client, storageName string, componentName string, ...) (bool, error)
- func Mount(client *occlient.Client, path string, storageName string, componentName string, ...) error
- func Unmount(client *occlient.Client, storageName string, componentName string, ...) error
- type StorageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v0.0.4
func Create(client *occlient.Client, name string, size string, path string, componentName string, applicationName string) (string, error)
Create adds storage to given component of given application
func Delete ¶ added in v0.0.6
Delete removes storage from the given application. Delete returns the component name, if it is mounted to a component, or "" and the error, if any
func GetComponentNameFromStorageName ¶ added in v0.0.6
GetComponentNameFromStorageName returns the component name associated with the storageName, if any, or ""
func GetMountPath ¶ added in v0.0.6
func GetMountPath(client *occlient.Client, storageName string, componentName string, applicationName string) string
GetMountPath returns mount path for given storage
func IsMounted ¶ added in v0.0.6
func IsMounted(client *occlient.Client, storageName string, componentName string, applicationName string) (bool, error)
IsMounted checks if the given storage is mounted to the given component IsMounted returns a bool indicating the storage is mounted to the component or not
Types ¶
type StorageInfo ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.