Documentation ¶
Index ¶
- type APIMgmtServiceManager
- type AzureAPIMgmtServiceManager
- func (m *AzureAPIMgmtServiceManager) APIMgmtSvcStatus(ctx context.Context, resourceGroupName string, resourceName string) (exists bool, result bool, resourceID *string, err error)
- func (m *AzureAPIMgmtServiceManager) CheckAPIMgmtSvcName(ctx context.Context, resourceName string) (available bool, err error)
- func (m *AzureAPIMgmtServiceManager) CreateAPIMgmtSvc(ctx context.Context, tier string, location string, resourceGroupName string, ...) (*apim.ServiceResource, error)
- func (g *AzureAPIMgmtServiceManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureAPIMgmtServiceManager) DeleteAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string) (*apim.ServiceResource, error)
- func (g *AzureAPIMgmtServiceManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (g *AzureAPIMgmtServiceManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *AzureAPIMgmtServiceManager) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- func (m *AzureAPIMgmtServiceManager) SetAppInsightsForAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string, ...) error
- func (m *AzureAPIMgmtServiceManager) SetVNetForAPIMgmtSvc(ctx context.Context, resourceGroupName string, resourceName string, ...) (err error, updated bool)
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 ¶
func (g *AzureAPIMgmtServiceManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
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 ¶
func (g *AzureAPIMgmtServiceManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure makes sure that an API Mgmt Svc instance exists
func (*AzureAPIMgmtServiceManager) GetParents ¶
func (g *AzureAPIMgmtServiceManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents lists the parents for an API Mgmt Svc
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)