v1alpha2

package
v0.95.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discriminator

type Discriminator interface {
	// GetKind returns Kind.
	GetKind() string
	// GetAPIVersion returns APIVersion.
	GetAPIVersion() string
}

Discriminator discriminates the kind of an api object.

type ObjectMeta

type ObjectMeta struct {
	// Name uniquely identifies the holos component instance and must be suitable as a file name.
	Name string `json:"name,omitempty"`
	// Namespace confines a holos component to a single namespace via kustomize if set.
	Namespace string `json:"namespace,omitempty"`
}

ObjectMeta represents metadata of a holos component object. The fields are a copy of upstream kubernetes api machinery but are holos objects distinct from kubernetes api objects.

type TypeMeta

type TypeMeta struct {
	// Kind is a string value representing the resource this object represents.
	Kind string `json:"kind"`
	// APIVersion defines the versioned schema of this representation of an object.
	APIVersion string `json:"apiVersion" cue:"string | *\"v1alpha2\""`
}

TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.

func (*TypeMeta) GetAPIVersion

func (tm *TypeMeta) GetAPIVersion() string

func (*TypeMeta) GetKind

func (tm *TypeMeta) GetKind() string

Jump to

Keyboard shortcuts

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