clients

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// StopContext is used for propagating control from Terraform Core (e.g. Ctrl/Cmd+C)
	StopContext context.Context

	Account       *ResourceManagerAccount
	Authorization *authorization.Client
	Compute       *compute.Client
	Dns           *dns.Client
	KeyVault      *keyvault.Client
	LoadBalancer  *loadbalancer.Client
	Network       *network.Client
	Resource      *resource.Client
	Storage       *storage.Client

	Features features.UserFeatures
}

func Build

func Build(ctx context.Context, builder ClientBuilder) (*Client, error)

func (*Client) Build

func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error

type ClientBuilder

type ClientBuilder struct {
	AuthConfig                  *authentication.Config
	DisableCorrelationRequestID bool
	CustomCorrelationRequestID  string
	SkipProviderRegistration    bool
	TerraformVersion            string
	Features                    features.UserFeatures
}

type ResourceManagerAccount

type ResourceManagerAccount struct {
	AuthenticatedAsAServicePrincipal bool
	ClientId                         string
	Environment                      azure.Environment
	ObjectId                         string
	SkipResourceProviderRegistration bool
	SubscriptionId                   string
	TenantId                         string
}

func NewResourceManagerAccount

func NewResourceManagerAccount(ctx context.Context, config authentication.Config, env azure.Environment, skipResourceProviderRegistration bool) (*ResourceManagerAccount, error)

Jump to

Keyboard shortcuts

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