rest

package
v0.27.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlaneKindUCPNative = "UCPNative"
	PlaneKindAzure     = "Azure"
	PlaneKindAWS       = "AWS"
)

Plane kinds

Variables

This section is empty.

Functions

This section is empty.

Types

type Plane

type Plane struct {
	ID         string          `json:"id" yaml:"id"`
	Type       string          `json:"type" yaml:"type"`
	Name       string          `json:"name" yaml:"name"`
	Properties PlaneProperties `json:"properties" yaml:"properties"`
}

func (*Plane) LookupResourceProvider

func (plane *Plane) LookupResourceProvider(key string) string

LookupResourceProvider searches through the ResourceProviders configured in UCP.

type PlaneList

type PlaneList struct {
	Value []Plane `json:"value" yaml:"value"`
}

PlaneList represents a list of UCP planes in the ARM wire-format

type PlaneProperties

type PlaneProperties struct {
	ResourceProviders map[string]string `json:"resourceProviders" yaml:"resourceProviders"` // Used only for UCP native planes
	Kind              string            `json:"kind" yaml:"kind"`
	URL               string            `json:"url" yaml:"url"` // Used only for non UCP native planes and non AWS planes
}

type Resource

type Resource struct {
	ID                string `json:"id" yaml:"id"`
	Name              string `json:"name" yaml:"name"`
	ProvisioningState string `json:"provisioningState" yaml:"provisioningState"`
	Type              string `json:"type" yaml:"type"`
}

Resource represents a resource within a UCP resource group

type ResourceList

type ResourceList struct {
	Value []Resource `json:"value" yaml:"value"`
}

ResourceList represents a list of resources

Jump to

Keyboard shortcuts

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