azurerm

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ProjectPtr                    *project.Project `yaml:"-"`
	ContainerName                 string           `yaml:"container_name,omitempty"`
	StorageAccountName            string           `yaml:"storage_account_name,omitempty"`
	ResourceGroupName             string           `yaml:"resource_group_name,omitempty"`
	AccessKey                     string           `yaml:"access_key,omitempty"`
	ClientID                      string           `yaml:"client_id,omitempty"`
	ClientCertificatePassword     string           `yaml:"client_certificate_password,omitempty"`
	ClientCertificatePath         string           `yaml:"client_certificate_path,omitempty"`
	ClientSecret                  string           `yaml:"client_secret,omitempty"`
	CustomResourceManagerEndpoint string           `yaml:"endpoint,omitempty"`
	MetadataHost                  string           `yaml:"metadata_host,omitempty"`
	Environment                   string           `yaml:"environment,omitempty"`
	MsiEndpoint                   string           `yaml:"msi_endpoint,omitempty"`
	OIDCToken                     string           `yaml:"oidc_token,omitempty"`
	OIDCTokenFilePath             string           `yaml:"oidc_token_file_path,omitempty"`
	OIDCRequestURL                string           `yaml:"oidc_request_url,omitempty"`
	OIDCRequestToken              string           `yaml:"oidc_request_token,omitempty"`
	SasToken                      string           `yaml:"sas_token,omitempty"`
	SubscriptionID                string           `yaml:"subscription_id,omitempty"`
	TenantID                      string           `yaml:"tenant_id,omitempty"`
	UseMsi                        bool             `yaml:"use_msi,omitempty"`
	UseOIDC                       bool             `yaml:"use_oidc,omitempty"`
	UseAzureADAuthentication      bool             `yaml:"use_azuread_auth,omitempty"`
	// contains filtered or unexported fields
}

Backend - describe azure backend for interface package.backend.

func (*Backend) Configure

func (b *Backend) Configure() error

func (*Backend) GetBackendBytes

func (b *Backend) GetBackendBytes(stackName, unitName string) ([]byte, error)

GetBackendBytes generate terraform backend config.

func (*Backend) GetBackendHCL

func (b *Backend) GetBackendHCL(stackName, unitName string) (*hclwrite.File, error)

GetBackendHCL generate terraform backend config.

func (*Backend) GetRemoteStateHCL

func (b *Backend) GetRemoteStateHCL(stackName, unitName string) ([]byte, error)

GetRemoteStateHCL generate terraform remote state for this backend.

func (*Backend) LockState

func (b *Backend) LockState() error

func (*Backend) Name

func (b *Backend) Name() string

Name return name.

func (*Backend) Provider

func (b *Backend) Provider() string

Provider return name.

func (*Backend) ReadState

func (b *Backend) ReadState() (string, error)

func (*Backend) State

func (b *Backend) State() map[string]interface{}

func (*Backend) UnlockState

func (b *Backend) UnlockState() error

func (*Backend) WriteState

func (b *Backend) WriteState(stateData string) error

type Factory

type Factory struct{}

Factory factory for backends.

func (*Factory) New

func (f *Factory) New(config []byte, name string, p *project.Project) (project.Backend, error)

New creates the new backend.

Jump to

Keyboard shortcuts

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