resource

package
v0.0.0-...-5cd5cfe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 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_SUBSCRIPTION_ID = "AZURE_SUBSCRIPTION_ID"

AZURE_SUBSCRIPTION_ID - The subscription this azure resource belongs to

View Source
const NITRIC_STACK_ID = "NITRIC_STACK_ID"

NITRIC_STACK_ID - The stack the resource belongs to

Variables

This section is empty.

Functions

This section is empty.

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)
}

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"
)

type AzureApiMgmtDetails

type AzureApiMgmtDetails struct {
	Url string
}

type AzureResourceService

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

func New

func New() (*AzureResourceService, error)

func (*AzureResourceService) GetApiDetails

func (p *AzureResourceService) GetApiDetails(ctx context.Context, name string) (*AzureApiMgmtDetails, error)

func (*AzureResourceService) GetResources

func (*AzureResourceService) ResourceGroupName

func (p *AzureResourceService) ResourceGroupName() string

func (*AzureResourceService) ServicePrincipalToken

func (p *AzureResourceService) ServicePrincipalToken(resource string) (*adal.ServicePrincipalToken, error)

func (*AzureResourceService) SubscriptionId

func (p *AzureResourceService) SubscriptionId() string

Jump to

Keyboard shortcuts

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