Documentation ¶
Index ¶
- Constants
- func AddDaprRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, ...) error
- func AddDatastoresRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, ...) error
- func AddMessagingRoutes(ctx context.Context, r chi.Router, rootScopePath string, prefixes []string, ...) error
- func AddRoutes(ctx context.Context, router chi.Router, isARM bool, ...) error
- func NewGetOperations(opts ctrl.Options) (ctrl.Controller, error)
- type GetOperations
Constants ¶
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 ¶
func (opctrl *GetOperations) Run(ctx context.Context, w http.ResponseWriter, req *http.Request) (rest.Response, error)
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