azure

package
v0.0.0-...-d12e8f3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreNotFound

func IgnoreNotFound(err error) error

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type APIMClient

type APIMClient struct {
	// ApimClientConfig is the configuration for the APIM client
	ApimClientConfig ApimClientConfig
	// contains filtered or unexported fields
}

APIMClient is a client for interacting with the Azure API Management service

func NewAPIMClient

func NewAPIMClient(config ApimClientConfig) (*APIMClient, error)

NewAPIMClient creates a new APIMClient

func (*APIMClient) CreateUpdateApi

func (c *APIMClient) CreateUpdateApi(ctx context.Context, apiId string, parameters apim.APICreateOrUpdateParameter, options *apim.APIClientBeginCreateOrUpdateOptions) (*runtime.Poller[apim.APIClientCreateOrUpdateResponse], error)

func (*APIMClient) CreateUpdateApiPolicy

func (c *APIMClient) CreateUpdateApiPolicy(ctx context.Context, apiId string, parameters apim.PolicyContract, options *apim.APIPolicyClientCreateOrUpdateOptions) (apim.APIPolicyClientCreateOrUpdateResponse, error)

func (*APIMClient) CreateUpdateApiVersionSet

func (c *APIMClient) CreateUpdateApiVersionSet(ctx context.Context, apiVersionSetName string, parameters apim.APIVersionSetContract, options *apim.APIVersionSetClientCreateOrUpdateOptions) (apim.APIVersionSetClientCreateOrUpdateResponse, error)

func (*APIMClient) CreateUpdateBackend

func (c *APIMClient) CreateUpdateBackend(ctx context.Context, backendId string, parameters apim.BackendContract, options *apim.BackendClientCreateOrUpdateOptions) (apim.BackendClientCreateOrUpdateResponse, error)

func (*APIMClient) DeleteApi

func (c *APIMClient) DeleteApi(ctx context.Context, apiId string, etag string, options *apim.APIClientDeleteOptions) (apim.APIClientDeleteResponse, error)

func (*APIMClient) DeleteApiPolicy

func (c *APIMClient) DeleteApiPolicy(ctx context.Context, apiId string, etag string, options *apim.APIPolicyClientDeleteOptions) (apim.APIPolicyClientDeleteResponse, error)

func (*APIMClient) DeleteApiVersionSet

func (c *APIMClient) DeleteApiVersionSet(ctx context.Context, apiVersionSetName string, etag string, options *apim.APIVersionSetClientDeleteOptions) (apim.APIVersionSetClientDeleteResponse, error)

func (*APIMClient) DeleteBackend

func (c *APIMClient) DeleteBackend(ctx context.Context, backendId string, etag string, options *apim.BackendClientDeleteOptions) (apim.BackendClientDeleteResponse, error)

func (*APIMClient) GetApi

func (c *APIMClient) GetApi(ctx context.Context, apiId string, options *apim.APIClientGetOptions) (apim.APIClientGetResponse, error)

func (*APIMClient) GetApiPolicy

func (c *APIMClient) GetApiPolicy(ctx context.Context, apiId string, options *apim.APIPolicyClientGetOptions) (apim.APIPolicyClientGetResponse, error)

func (*APIMClient) GetApiVersionSet

func (c *APIMClient) GetApiVersionSet(ctx context.Context, apiVersionSetName string, options *apim.APIVersionSetClientGetOptions) (apim.APIVersionSetClientGetResponse, error)

func (*APIMClient) GetBackend

func (c *APIMClient) GetBackend(ctx context.Context, backendId string, options *apim.BackendClientGetOptions) (apim.BackendClientGetResponse, error)

type ApimClientConfig

type ApimClientConfig struct {
	ClientOptions   *azidentity.DefaultAzureCredentialOptions
	FactoryOptions  *arm.ClientOptions
	SubscriptionId  string
	ResourceGroup   string
	ApimServiceName string
}

ApimClientConfig is the configuration for the APIMClient

type OperationStatus

type OperationStatus string
const (
	OperationStatusInProgress OperationStatus = "InProgress"
	OperationStatusSucceeded  OperationStatus = "Succeeded"
	OperationStatusFailed     OperationStatus = "Failed"
)

func StartResumeOperation

func StartResumeOperation[T any](ctx context.Context, poller *runtime.Poller[T]) (status OperationStatus, result T, resumeToken string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳