Documentation ¶
Index ¶
- Variables
- func AskAccountName(ctx context.Context, config azconfig.AZConfig, ...) (desiredName string, mustCreate bool)
- func CheckAvailability(ctx context.Context, config azconfig.AZConfig, accountName string) (isAvailable bool)
- func CreateAccount(ctx context.Context, config azconfig.AZConfig, accountName string) (storage.Account, bool)
- func CreateAndSave(ctx context.Context, config *azconfig.AZConfig, accountName string)
- func EnsureFileShares(ctx context.Context, config azconfig.AZConfig) string
- func GetCredentials(ctx context.Context, config *azconfig.AZConfig)
- func GetFSTabLine(config azconfig.AZConfig, shareName string) string
- func GetMountOptions(config azconfig.AZConfig, shareName string) string
- type Share
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AskAccountName ¶
func AskAccountName( ctx context.Context, config azconfig.AZConfig, cliAccountName, defaultAccountName string, ) (desiredName string, mustCreate bool)
AskAccountName asks for a storage account name, potentially overridable by a CLI arg.
func CheckAvailability ¶
func CheckAvailability(ctx context.Context, config azconfig.AZConfig, accountName string) (isAvailable bool)
CheckAvailability checks whether the desired storage account name is still available.
func CreateAccount ¶
func CreateAccount(ctx context.Context, config azconfig.AZConfig, accountName string) (storage.Account, bool)
CreateAccount creates a new azure storage account
func CreateAndSave ¶
CreateAndSave creates a storage account and stores it in the config.
func EnsureFileShares ¶
EnsureFileShares sets up the SMB shares. Returns fstab lines to mount them.
func GetCredentials ¶
GetCredentials obtains the credentials to mount shares from the storage account.
func GetFSTabLine ¶
GetFSTabLine returns the /etc/fstab line for the given share.
Types ¶
Click to show internal directories.
Click to hide internal directories.