util

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseExportLocation

func ChooseExportLocation(locs []shares.ExportLocation) (*shares.ExportLocation, error)

Chooses one ExportLocation according to the below rules: 1. Path is not empty 2. IsAdminOnly == false 3. Preferred == true are preferred over Preferred == false 4. Locations with lower slice index are preferred over locations with higher slice index

func GetChosenExportLocation

func GetChosenExportLocation(shareID string, manilaClient manilaclient.Interface) (*shares.ExportLocation, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL