apimservice

package
v0.0.0-...-bcfd773 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIMgmtServiceManager

type APIMgmtServiceManager interface {
	CreateAPIMgmtSvc(ctx context.Context,
		tier string,
		location string,
		resourceGroupName string,
		resourceName string,
		publisherName string,
		publisherEmail string) (*apim.ServiceResource, error)

	DeleteAPIMgmtSvc(ctx context.Context,
		resourceGroupName string,
		resourceName string) (*apim.ServiceResource, error)

	APIMgmtSvcStatus(ctx context.Context,
		resourceGroupName string,
		resourceName string) (exists bool, result bool, resourceID *string, err error)

	SetVNetForAPIMgmtSvc(ctx context.Context,
		resourceGroupName string,
		resourceName string,
		vnetType string,
		vnetResourceGroupName string,
		vnetResourceName string,
		subnetName string) (err error, updated bool)

	SetAppInsightsForAPIMgmtSvc(ctx context.Context,
		resourceGroupName string,
		resourceName string,
		appInsightsResourceGroup string,
		appInsightsName string) error

	CheckAPIMgmtSvcName(ctx context.Context, resourceName string) (available bool, err error)

	// also embed async client methods
	resourcemanager.ARMClient
}

APIMgmtServiceManager manages Azure Application Insights service components

type AzureAPIMgmtServiceManager

type AzureAPIMgmtServiceManager struct {
	Creds     config.Credentials
	Telemetry telemetry.Telemetry
}

func NewAzureAPIMgmtServiceManager

func NewAzureAPIMgmtServiceManager(creds config.Credentials) *AzureAPIMgmtServiceManager

NewAzureAPIMgmtServiceManager creates a new instance of AzureAPIMgmtServiceManager

func (*AzureAPIMgmtServiceManager) APIMgmtSvcStatus

func (m *AzureAPIMgmtServiceManager) APIMgmtSvcStatus(ctx context.Context, resourceGroupName string, resourceName string) (exists bool, result bool, resourceID *string, err error)

APIMgmtSvcStatus checks to see if the API Mgmt Svc has been activated

func (*AzureAPIMgmtServiceManager) CheckAPIMgmtSvcName

func (m *AzureAPIMgmtServiceManager) CheckAPIMgmtSvcName(ctx context.Context, resourceName string) (available bool, err error)

CheckAPIMgmtSvcName checks to see if the APIM service name is available

func (*AzureAPIMgmtServiceManager) CreateAPIMgmtSvc

func (m *AzureAPIMgmtServiceManager) CreateAPIMgmtSvc(ctx context.Context, tier string, location string, resourceGroupName string, resourceName string, publisherName string, publisherEmail string) (*apim.ServiceResource, error)

CreateAPIMgmtSvc creates a new API Mgmt Svc

func (*AzureAPIMgmtServiceManager) Delete

Delete makes sure that an API Mgmt Svc has been deleted

func (*AzureAPIMgmtServiceManager) DeleteAPIMgmtSvc

func (m *AzureAPIMgmtServiceManager) DeleteAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string) (*apim.ServiceResource, error)

DeleteAPIMgmtSvc deletes an instance of an API Mgmt Svc

func (*AzureAPIMgmtServiceManager) Ensure

Ensure makes sure that an API Mgmt Svc instance exists

func (*AzureAPIMgmtServiceManager) GetParents

GetParents lists the parents for an API Mgmt Svc

func (*AzureAPIMgmtServiceManager) GetStatus

GetStatus retrieves the status object

func (*AzureAPIMgmtServiceManager) SetAppInsightsForAPIMgmtSvc

func (m *AzureAPIMgmtServiceManager) SetAppInsightsForAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string, appInsightsResourceGroup string, appInsightsName string) error

SetAppInsightsForAPIMgmtSvc sets the app insight instance to use with the service

func (*AzureAPIMgmtServiceManager) SetVNetForAPIMgmtSvc

func (m *AzureAPIMgmtServiceManager) SetVNetForAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string, vnetType string, vnetResourceGroupName string, vnetResourceName string, subnetName string) (err error, updated bool)

SetVNetForAPIMgmtSvc sets the VNet for an API Mgmt Svc by name (only if it hasn't been previously set)

Jump to

Keyboard shortcuts

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