azure

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 19 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 {
	Accounts                         storage.AccountsClient
	ActivityLogs                     insights.ActivityLogsClient
	Applications                     managedapplications.ApplicationsClient
	BlobStorage                      storage.BlobStorageClient
	OpenShiftManagedClusters         externalapi.OpenShiftManagedClustersClient
	OpenShiftManagedClustersAdmin    *adminapi.Client
	VirtualMachineScaleSets          compute.VirtualMachineScaleSetsClient
	VirtualMachineScaleSetExtensions compute.VirtualMachineScaleSetExtensionsClient
	VirtualMachineScaleSetVMs        compute.VirtualMachineScaleSetVMsClient
	Resources                        resources.ResourcesClient
	VirtualNetworks                  network.VirtualNetworksClient
	VirtualNetworksPeerings          network.VirtualNetworksPeeringsClient
	Groups                           resources.GroupsClient
}

Client is the main controller for azure client objects

func NewClientFromEnvironment

func NewClientFromEnvironment(ctx context.Context, log *logrus.Entry, setStorageClient bool) (*Client, error)

NewClientFromEnvironment creates a new azure client from environment variables. Setting the storage client is optional and should only be used selectively by tests that need access to the config storage blob because configblob.GetService makes api calls to Azure in order to setup the blob client.

func (*Client) OSAResourceGroup

func (cli *Client) OSAResourceGroup(ctx context.Context, resourcegroup, name, location string) (string, error)

OSAResourceGroup returns the name of the resource group holding the OSA cluster resources

Jump to

Keyboard shortcuts

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