core

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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(context.Context, 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