Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AZBatchConfig ¶
type AZBatchConfig struct { PoolID string `yaml:"poolID"` // name of the batch pool VMSize string `yaml:"vmSize"` // machine size, like "Standard_F16s" TargetDedicatedNodes int32 `yaml:"targetDedicatedNodes"` TargetLowPriorityNodes int32 `yaml:"targetLowPriorityNodes"` }
AZBatchConfig has all the batch parameters.
type AZConfig ¶
type AZConfig struct { // DefaultName is presented as the default choice when asking for names. DefaultName string `yaml:"defaultName,omitempty"` // ID of the Azure subscription. It is the "id" field shown by `az account list` SubscriptionID string ` yaml:"subscriptionID,omitempty"` // Physical location of the resource group, such as 'westeurope' or 'eastus'. Location string ` yaml:"location,omitempty"` // Name of the resource group that will contain the Flamenco infrastructure. ResourceGroup string `yaml:"resourceGroup,omitempty"` // Name of the Azure Batch account that will contain the Flamenco Worker VM pool. BatchAccountName string `yaml:"batchAccountName,omitempty"` // Name of the Azure Storage account that will contain the Flamenco files. StorageAccountName string `yaml:"storageAccountName,omitempty"` // Name of the Virtual Machine that's going to run Flamenco Manager. VMName string `yaml:"virtualMachine,omitempty"` // Worker registration secret; shouldn't change, as we don't overwrite the Manager config if it already exists on the VM. WorkerRegistrationSecret string `yaml:"workerRegistrationSecret,omitempty"` // this is set by main.go after creating the storage account. StorageCreds StorageCredentials `yaml:"-"` Batch *AZBatchConfig `yaml:"batch,omitempty"` // contains filtered or unexported fields }
AZConfig is loaded from 'configFile'
func Load ¶
func Load() AZConfig
Load returns the config file, or hard-exits the process if it cannot be loaded.
func (AZConfig) DomainName ¶
DomainName returns the expected public domain name of the Public IP.
func (AZConfig) StorageAccountID ¶
StorageAccountID computes the storage account ID given the other properties.
type StorageCredentials ¶
type StorageCredentials struct { Username string // the storage account name Password string // the storage account key }
StorageCredentials has everything you need to mount a file share from a storage account.
Click to show internal directories.
Click to hide internal directories.