Documentation ¶
Index ¶
- Constants
- type AzGenericResource
- type AzProvider
- type AzResource
- type AzureApiMgmtDetails
- type AzureResourceService
- func (p *AzureResourceService) Declare(ctx context.Context, req *resourcepb.ResourceDeclareRequest) (*resourcepb.ResourceDeclareResponse, error)
- 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 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) Declare ¶
func (p *AzureResourceService) Declare(ctx context.Context, req *resourcepb.ResourceDeclareRequest) (*resourcepb.ResourceDeclareResponse, 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.