Documentation ¶
Index ¶
- func BucketCapacity(attrs *storage.BucketAttrs) (int64, error)
- func BucketExists(ctx context.Context, bucket *storage.BucketHandle) (exists bool, err error)
- func BucketName(volumeId string) string
- func CleanupKey(keyFile string, keyStoragePath string)
- func CreateDir(d string) error
- func CreateFile(path, contents string) (string, error)
- func DeletePod(ctx context.Context, namespace string, name string) (err error)
- func DriverReadyLabel(driverName string) string
- func DriverReadyLabelJSONPatchEscaped(driverName string) string
- func GetKey(secrets map[string]string, keyStoragePath string) (string, error)
- func GetPvcAnnotations(ctx context.Context, pvcName string, pvcNamespace string) (annotations map[string]string, err error)
- func GetRegisteredMounts(ctx context.Context, node string) (list *v1beta1.PublishedVolumeList, err error)
- func ParseEndpoint(endpoint string) (string, string, error)
- func RegisterMount(ctx context.Context, volumeID string, targetPath string, node string, ...) (err error)
- func SetBucketCapacity(ctx context.Context, bucket *storage.BucketHandle, capacity int64) (attrs *storage.BucketAttrs, err error)
- func SetDriverReadyLabel(ctx context.Context, driverName string, nodeName string, isReady bool) (err error)
- func UnregisterMount(ctx context.Context, volumeID string, targetPath string, node string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketCapacity ¶
func BucketCapacity(attrs *storage.BucketAttrs) (int64, error)
func BucketExists ¶
func BucketName ¶
func CleanupKey ¶
func CreateFile ¶
func DriverReadyLabel ¶ added in v0.8.0
DriverReadyLabel returns the driver-ready label according to the driver name.
func DriverReadyLabelJSONPatchEscaped ¶ added in v0.8.0
DriverReadyLabelJSONPatchEscaped returns the driver-ready label according to the driver name but espcaed to be used in a JSONPatch path.
func GetPvcAnnotations ¶
func GetRegisteredMounts ¶
func RegisterMount ¶
func SetBucketCapacity ¶
func SetBucketCapacity(ctx context.Context, bucket *storage.BucketHandle, capacity int64) (attrs *storage.BucketAttrs, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.