Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator struct {
Cluster string `json:"cluster" yaml:"cluster"`
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Namespace string `json:"namespace" yaml:"namespace"`
Name string `json:"name" yaml:"name"`
}
Locator represents information required to locate a resource.
func NewLocatorFromQuery ¶ added in v0.3.0
NewLocatorFromQuery creates a Locator from an HTTP request query parameters.
func (*Locator) GetType ¶ added in v0.3.0
func (c *Locator) GetType() (LocatorType, bool)
GetType returns the type of Locator and a boolean indicating success.
type LocatorType ¶ added in v0.3.0
type LocatorType int
LocatorType represents the type of a Locator.
const ( Cluster LocatorType = iota GVK Namespace ClusterGVKNamespace Resource NonNamespacedResource )
Enumerated constants representing different types of Locators.
Click to show internal directories.
Click to hide internal directories.