apimgmt

package
v0.0.0-...-ff289a2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManager

type APIManager interface {
	CreateAPI(ctx context.Context, resourceGroupName string, apiServiceName string, apiID string, properties azurev1alpha1.APIProperties, eTag string) (apimanagement.APIContract, error)
	DeleteAPI(ctx context.Context, resourceGroupName string, apiServiceName string, apiID string, eTag string, deleteRevisions bool) (autorest.Response, error)
	GetAPI(ctx context.Context, resourceGroupName string, apiServiceName string, apiID string) (apimanagement.APIContract, error)
	resourcemanager.ARMClient
}

APIManager is an interface for API Management

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager represents an API Management type

func NewManager

func NewManager(creds config.Credentials) *Manager

NewManager returns an API Manager type

func (*Manager) CreateAPI

func (m *Manager) CreateAPI(
	ctx context.Context,
	resourceGroupName string,
	apiServiceName string,
	apiID string,
	properties azurev1alpha1.APIProperties,
	eTag string) (apimanagement.APIContract, error)

CreateAPI creates an API within an API management service

func (*Manager) Delete

func (m *Manager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)

Delete removes an API resource

func (*Manager) DeleteAPI

func (m *Manager) DeleteAPI(ctx context.Context, resourceGroupName string, apiServiceName string, apiID string, eTag string, deleteRevisions bool) (autorest.Response, error)

DeleteAPI deletes an API within an API management service

func (*Manager) Ensure

func (m *Manager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)

Ensure executes a desired state check against the resource

func (*Manager) GetAPI

func (m *Manager) GetAPI(ctx context.Context, resourceGroupName string, apiServiceName string, apiID string) (apimanagement.APIContract, error)

GetAPI fetches an API within an API management service

func (*Manager) GetParents

func (m *Manager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)

GetParents fetches the hierarchical parent resource references

func (*Manager) GetStatus

func (m *Manager) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)

GetStatus returns the current status of the resource

Jump to

Keyboard shortcuts

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