handler

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PortableResourcesNamespace is the name representing group of portable resource providers.
	PortableResourcesNamespace = "Applications.Datastores"

	// DaprProviderNamespace is the namespace for Dapr provider.
	DaprProviderNamespace = "Applications.Dapr"

	// DatastoresProviderNamespace is the namespace for Datastores provider.
	DatastoresProviderNamespace = "Applications.Datastores"

	// MessagingProviderNamespace is the namespace for Messaging provider.
	MessagingProviderNamespace = "Applications.Messaging"

	// AsyncOperationRetryAfter is the polling interval for async create/update or delete resource operations.
	AsyncOperationRetryAfter = time.Duration(5) * time.Second
)

Variables

This section is empty.

Functions

func AddDaprRoutes

func AddDaprRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, isARM bool, ctrlOpts frontend_ctrl.Options) error

AddDaprRoutes configures the default ARM handlers and adds handlers for Dapr resources such as Dapr PubSubBroker, SecretStore and StateStore. It registers handlers for various operations on these resources.

func AddDatastoresRoutes

func AddDatastoresRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, isARM bool, ctrlOpts frontend_ctrl.Options) error

AddDatastoresRoutes configures the routes and handlers for Datastores Resource Provider. It registers handlers for List, Get, Put, Patch, and Delete operations for MongoDatabase, RedisCache, and SqlDatabase resources.

func AddMessagingRoutes

func AddMessagingRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, isARM bool, ctrlOpts frontend_ctrl.Options) error

AddMessagingRoutes configures the default ARM handlers and registers handlers for the RabbitMQQueue resource type for the List, Get, Put, Patch and Delete operations.

func AddRoutes

func AddRoutes(ctx context.Context, router chi.Router, isARM bool, ctrlOpts frontend_ctrl.Options) error

AddRoutes configures routes and handlers for Datastores, Messaging, Dapr Resource Providers.

func NewGetOperations

func NewGetOperations(opts ctrl.Options) (ctrl.Controller, error)

NewGetOperations creates a new GetOperations controller and returns it, or returns an error if one occurs.

Types

type GetOperations

type GetOperations struct {
	ctrl.BaseController
}

GetOperations is the controller implementation to get arm rpc available operations.

func (*GetOperations) Run

Run returns the list of available operations/permission for the resource provider at tenant level. Spec: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/proxy-api-reference.md#exposing-available-operations

Jump to

Keyboard shortcuts

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