apim

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env() struct {
	SubscriptionID string
	Location       string
}

Types

type APIM

type APIM struct {
	SubscriptionID string
	Location       string
	Credential     *azidentity.DefaultAzureCredential
	Context        context.Context
}

func (APIM) CreateOrUpdateBackend

func (a APIM) CreateOrUpdateBackend(resourceGroup, serviceName, backendID, url, protocol string)

go run main.go apim backend create --resource-group rg-tarathec-poc-az-asse-sbx-001 --service-name apimpocazassesbx003 --backend-id hello --url https://tarathep.com --protocol http

func (APIM) ExportBackendsTemplate

func (apim APIM) ExportBackendsTemplate(resourceGroup, serviceName, pathBackend string)

func (APIM) GetAPIPolicy

func (a APIM) GetAPIPolicy(resourceGroup, serviceName, apiID string) models.Policies

func (APIM) GetBackendIDfromURL

func (a APIM) GetBackendIDfromURL(resourceGroup, serviceName, url string) (string, error)

Get Backend ID by URL from APIM

func (APIM) GetBackendURLfromID

func (a APIM) GetBackendURLfromID(resourceGroup, serviceName, backendID string) (string, error)

func (APIM) ListAPI

func (apim APIM) ListAPI(resourceGroup, serviceName, filterDisplayName string, option string)

func (APIM) ListAPIsDependingOnBackend

func (a APIM) ListAPIsDependingOnBackend(resourceGroup, serviceName, backendID, url string)

func (APIM) ListBackend

func (apim APIM) ListBackend(resourceGroup, serviceName, filterDisplayName, option string)

type Api

type Api struct {
	No          int
	Name        string
	DisplayName string
	Protocols   []string
	Path        string
	BackendURL  string
}

type Backend

type Backend struct {
	Name     string
	URL      string
	Protocol string
}

type Operation

type Operation struct {
	Method      string
	Name        string
	URLTemplate string
}

Jump to

Keyboard shortcuts

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