core

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

func NewLocatorFromQuery(r *http.Request) (Locator, error)

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.

func (*Locator) ToSQL

func (c *Locator) ToSQL() string

ToSQL generates a SQL query string based on the Locator.

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.

Directories

Path Synopsis
manager

Jump to

Keyboard shortcuts

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