azstorage

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultSMBShares has the shares that will be mounted on both the Manager and the Workers.
	DefaultSMBShares = map[string]Share{
		"flamenco-resources": Share{/* contains filtered or unexported fields */},
		"flamenco-input":     Share{/* contains filtered or unexported fields */},
		"flamenco-output":    Share{/* contains filtered or unexported fields */},
	}
)

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

func CreateAndSave(ctx context.Context, config *azconfig.AZConfig, accountName string)

CreateAndSave creates a storage account and stores it in the config.

func EnsureFileShares

func EnsureFileShares(ctx context.Context, config azconfig.AZConfig) string

EnsureFileShares sets up the SMB shares. Returns fstab lines to mount them.

func GetCredentials

func GetCredentials(ctx context.Context, config *azconfig.AZConfig)

GetCredentials obtains the credentials to mount shares from the storage account.

func GetFSTabLine

func GetFSTabLine(config azconfig.AZConfig, shareName string) string

GetFSTabLine returns the /etc/fstab line for the given share.

func GetMountOptions

func GetMountOptions(config azconfig.AZConfig, shareName string) string

GetMountOptions returns the mount options for the given SMB share.

Types

type Share

type Share struct {
	// contains filtered or unexported fields
}

Share has some options for SMB share mountpoints.

Jump to

Keyboard shortcuts

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