azure

package
v0.0.0-...-baf11bc Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Azure tags used to identify the Kyma runtime
	TagSubAccountID = "SubAccountID"
	TagInstanceID   = "InstanceID"
	TagOperationID  = "OperationID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewAzureClient

func NewAzureClient(namespaceClient eventhub.NamespacesClient, resourceGroupClient resources.GroupsClient) *Client

func (*Client) ListEHNamespaceByResourceGroup

func (nc *Client) ListEHNamespaceByResourceGroup(ctx context.Context, resourceGroupName string) (eventhub.EHNamespaceListResultPage, error)

func (*Client) ListResourceGroup

func (nc *Client) ListResourceGroup(ctx context.Context, filter string, top *int32) (resources.GroupListResultPage, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(clientID, clientSecret, tenantID, subscriptionID, location string) (*Config, error)

GetConfig returns Azure config

func GetConfigFromHAPCredentialsAndProvisioningParams

func GetConfigFromHAPCredentialsAndProvisioningParams(credentials hyperscaler.Credentials, region string) (*Config, error)

GetConfigFromHAPCredentialsAndProvisioningParams returns Azure config from HAPCredentials

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Environment

func (c *Config) Environment() (*azure.Environment, error)

func (*Config) GetLocation

func (c *Config) GetLocation() string

type HyperscalerProvider

type HyperscalerProvider interface {
	GetClient(config *Config) (Interface, error)
}

func NewAzureProvider

func NewAzureProvider() HyperscalerProvider

type Interface

type Interface interface {
	ListResourceGroup(ctx context.Context, filter string, top *int32) (resources.GroupListResultPage, error)
	ListEHNamespaceByResourceGroup(ctx context.Context, resourceGroupName string) (eventhub.EHNamespaceListResultPage, error)
}

type Tags

type Tags map[string]*string

Tags type represents Azure tags acceptable by the Azure client

Jump to

Keyboard shortcuts

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