core

package
v0.20.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AZURE_RESOURCE_GROUP = "AZURE_RESOURCE_GROUP"

AZURE_RESOURCE_GROUP_NAME - The name of this instances Azure resource group

View Source
const AZURE_STORAGE_BLOB_ENDPOINT = "AZURE_STORAGE_ACCOUNT_BLOB_ENDPOINT"

AZURE_STORAGE_BLOB_ENDPOINT - Endpoint for azblob storage plugin

View Source
const AZURE_STORAGE_QUEUE_ENDPOINT = "AZURE_STORAGE_ACCOUNT_QUEUE_ENDPOINT"

AZURE_STORAGE_BLOB_ENDPOINT - Endpoint for azqueue queue plugin

View Source
const AZURE_SUBSCRIPTION_ID = "AZURE_SUBSCRIPTION_ID"

AZURE_SUBSCRIPTION_ID - The subscription this azure resource belongs to

Variables

This section is empty.

Functions

func New

func New() (*azProviderImpl, error)

Types

type AzGenericResource

type AzGenericResource struct {
	Name       string
	Type       string
	Location   string
	Properties interface{}
}

type AzProvider

type AzProvider interface {
	GetResources(AzResource) (map[string]AzGenericResource, error)
	SubscriptionId() string
	ResourceGroupName() string
	ServicePrincipalToken(resource string) (*adal.ServicePrincipalToken, error)
	common.ResourceService
}

type AzResource

type AzResource = string
const (
	AzResource_Topic AzResource = "Microsoft.Eventgrid/topics"
	// Collections are handled by mongodb in azure
	// AzResource_Collection AzResource = "TODO"
	AzResource_Api    AzResource = "Microsoft.ApiManagement/service"
	AzResource_Queue  AzResource = "Microsoft.Storage/storageAccounts/queueServices"
	AzResource_Bucket AzResource = "Microsoft.Storage/storageAccounts/blobServices"
	AzResource_Secret AzResource = "Microsoft.KeyVault/vaults/secrets"
)

Jump to

Keyboard shortcuts

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