planes

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

View Source
const (
	PlanesPath = "/planes"
)
View Source
const (
	ResourceTypeName = "System.Resources/planes"
)

Variables

This section is empty.

Functions

func NewListPlanes

NewListPlanes creates a new controller for listing all planes regardless of type.

func NewProxyController

func NewProxyController(opts armrpc_controller.Options) (armrpc_controller.Controller, error)

NewProxyController creates a new ProxyPlane controller with the given options and returns it, or returns an error if the controller cannot be created.

Types

type ListPlanes

ListPlanes is the controller implementation to get the list of all planes regardless of type.

func (*ListPlanes) Run

Run() queries the storage client for planes in a given scope, creates a response with the results, and returns an OKResponse with the response. If an error occurs, it is returned.

type ListPlanesByType

type ListPlanesByType[P interface {
	*T
	v1.ResourceDataModel
}, T any] struct {
	armrpc_controller.Operation[P, T]
}

ListPlanesByType is the controller implementation to get the list of UCP planes.

func (*ListPlanesByType[P, T]) Run

ListPlanesByType takes in a request object and returns a list of planes of a given type from the storage client. If an error occurs, it returns an error.

type ProxyController

ProxyController is the controller implementation to proxy requests to Azure.

func (*ProxyController) Run

Run() takes in a request object and context, looks up the plane and resource provider associated with the request, and proxies the request to the appropriate resource provider.

Jump to

Keyboard shortcuts

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