Documentation ¶
Index ¶
- Constants
- type AzGenericResource
- type AzResource
- type AzResourceResolver
- type AzureApiMgmtDetails
- type AzureResourceService
- func (p *AzureResourceService) GetApiDetails(ctx context.Context, name string) (*AzureApiMgmtDetails, error)
- func (p *AzureResourceService) GetResources(ctx context.Context, r AzResource) (map[string]AzGenericResource, error)
- func (p *AzureResourceService) ResourceGroupName() string
- func (p *AzureResourceService) ServicePrincipalToken(resource string) (*adal.ServicePrincipalToken, error)
- func (p *AzureResourceService) SubscriptionId() string
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 AzResource ¶
type AzResource = string
const ( AzResource_Topic AzResource = "Microsoft.Eventgrid/topics" 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 AzResourceResolver ¶
type AzResourceResolver interface { GetResources(context.Context, AzResource) (map[string]AzGenericResource, error) SubscriptionId() string ResourceGroupName() string ServicePrincipalToken(resource string) (*adal.ServicePrincipalToken, error) GetApiDetails(ctx context.Context, name string) (*AzureApiMgmtDetails, error) }
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 (p *AzureResourceService) GetResources(ctx context.Context, r AzResource) (map[string]AzGenericResource, error)
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
Click to show internal directories.
Click to hide internal directories.