package
1.2.6
Repository: https://github.com/redhat-developer/ocdev.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

It converts storage config list to StorageList type.
Create adds storage to given component of given application.
Delete removes storage from the given application.
DevfileList lists the storage from the local devfile and cluster with their respective state.
Exists checks if the given storage exists in the given application.
GetComponentNameFromStorageName returns the component name associated with the storageName, if any, or "".
GetMachineFormatWithContainer gives machine readable Storage definition storagePath indicates the path to which the storage is mounted to, "" if not mounted.
GetMachineReadableFormat gives machine readable Storage definition storagePath indicates the path to which the storage is mounted to, "" if not mounted.
GetMachineReadableFormatForList gives machine readable StorageList definition.
Gets the storageName mounted to the given path in the given component and application GetStorageNameFromMountPath returns the name of the storage or the 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.
List lists all the mounted storage associated with the given component of the given application and the unmounted storage in the given application.
ListMounted lists all the mounted storage associated with the given component and application.
No description provided by the author
ListUnmounted lists all the unmounted storage associated with the given application.
MachineReadableSuccessOutput outputs a success output that includes storage information.
Mount mounts the given storage to the given component.
Push creates/deletes the required storage during `odo push` storageList are the storage mentioned in the config isComponentExists indicates if the component exists or not, if not, we don't run the list operation returns the storage for mounting and unMounting from the DC StorageToBeMounted describes the storage to be mounted StorageToBeMounted : storagePath is the key of the map, the generatedPVC is the value of the map StorageToBeUnMounted describes the storage to be unmounted StorageToBeUnMounted : path is the key of the map,storageName is the value of the map.
Unmount unmounts the given storage from the given component updateLabels is a flag to whether update Label or not, so updation of label is not required in delete call but required in unmount call this is introduced as causing unnecessary delays.

# Constants

StateTypeLocallyDeleted means that Storage was deleted from the local config, but it is still present on the cluster.
StateTypeNotPushed means that Storage is only in local config, but not on the cluster.
StateTypePushed means that Storage is present both locally and on cluster.

# Structs

Storage holds the information about storage attached to the component.
StorageList is a list of storages.
StorageSpec indicates size and path of storage.

# Type aliases

StorageState.