azure

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStorageLocation

type BackupStorageLocation struct {
	ResourceGroup  string `hcl:"resource_group,optional"`
	StorageAccount string `hcl:"storage_account,optional"`
	Bucket         string `hcl:"bucket,optional"`
}

BackupStorageLocation stores information about storage account used for backups on Azure

type Configuration

type Configuration struct {
	SubscriptionID         string                  `hcl:"subscription_id,optional"`
	TenantID               string                  `hcl:"tenant_id,optional"`
	ClientID               string                  `hcl:"client_id,optional"`
	ClientSecret           string                  `hcl:"client_secret,optional"`
	ResourceGroup          string                  `hcl:"resource_group,optional"`
	BackupStorageLocation  *BackupStorageLocation  `hcl:"backup_storage_location,block"`
	VolumeSnapshotLocation *VolumeSnapshotLocation `hcl:"volume_snapshot_location,block"`
}

Configuration contains azure specific parameters

func (*Configuration) Validate

func (c *Configuration) Validate() hcl.Diagnostics

Validate validates azure specific parts in the configuration

type VolumeSnapshotLocation

type VolumeSnapshotLocation struct {
	ResourceGroup string `hcl:"resource_group,optional"`
	APITimeout    string `hcl:"api_timeout,optional"`
}

VolumeSnapshotLocation stores information where disk snapshots will be stored on Azure

Jump to

Keyboard shortcuts

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