Documentation ¶
Overview ¶
Copyright 2023 The Radius Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2023 The Radius Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2023 The Radius Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const (
ResourceGroupType = "System.Resources/resourceGroups"
)
Variables ¶
This section is empty.
Functions ¶
func NewListResourceGroups ¶
func NewListResourceGroups(opts armrpc_controller.Options) (armrpc_controller.Controller, error)
NewListResourceGroups creates a new controller for listing resource groups.
func NewListResources ¶
func NewListResources(opts armrpc_controller.Options) (armrpc_controller.Controller, error)
NewListResources creates a new controller for listing resources stored in a resource group.
Types ¶
type ListResourceGroups ¶
type ListResourceGroups struct { armrpc_controller.Operation[*datamodel.ResourceGroup, datamodel.ResourceGroup] }
ListResourceGroups is the controller implementation to get the list of UCP resource groups.
func (*ListResourceGroups) Run ¶
func (r *ListResourceGroups) Run(ctx context.Context, w http.ResponseWriter, req *http.Request) (armrpc_rest.Response, error)
Run() function extracts the plane type and name from the request URL, queries the storage client for resource groups in the scope of the plane, creates a response with the list of resource groups and returns an OK response with the list of resource groups.
type ListResources ¶
type ListResources struct { armrpc_controller.Operation[*datamodel.GenericResource, datamodel.GenericResource] }
ListResources is the controller implementation to get the list of resources stored in a resource group.
func (*ListResources) Run ¶
func (r *ListResources) Run(ctx context.Context, w http.ResponseWriter, req *http.Request) (armrpc_rest.Response, error)
Run implements controller.Controller.