Help us shape the future of Go! Take the 2026 Go Developer Survey

modules

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidPlaneTypeErrorResponse

func InvalidPlaneTypeErrorResponse(planeType string, supportedPlaneTypes []string) rest.Response

InvalidPlaneTypeErrorResponse returns a 400 response with error code CodeInvalidPlaneType.

Types

type Initializer

type Initializer interface {
	// Initialize initializes and returns the http.Handler that will be registered with the router to handle requests for the plane.
	Initialize(ctx context.Context) (http.Handler, error)

	// PlaneType returns the type of plane that the module is providing functionality for. This should match
	// the plane type in the URL path for the plane.
	//
	// Examples:
	//
	// - aws
	// - azure
	// - kubernetes
	// - radius
	PlaneType() string
}

Initializer is an interface that can be implemented by modules that want to provide functionality for a plane.

Jump to

Keyboard shortcuts

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