resolve

package
v0.0.0-...-a6f5042 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdResolve

func NewCmdResolve(f util.Factory, ioStreams util.IOStreams) *cobra.Command

NewCmdResolve returns a new resolve command.

Types

type Garden

type Garden struct {
	// Name is a unique identifier of this Garden that can be used to target this Garden
	Name string `json:"name"`

	// Alias is a unique identifier of this Garden that can be used as an alternate name to target this Garden
	Alias string `json:"alias,omitempty"`
}

Garden represents a garden cluster.

type Kind

type Kind string

Kind is representing the type of things that can be resolved.

const (
	KindGarden  Kind = "garden"
	KindProject Kind = "project"
	KindSeed    Kind = "seed"
	KindShoot   Kind = "shoot"
)

type Project

type Project struct {
	// Name is the name of the project.
	Name string `json:"name"`

	// Namespace is the namespace within which the project exists.
	Namespace *string `json:"namespace,omitempty"`
}

Project represents a gardener project.

type ResolvedTarget

type ResolvedTarget struct {
	// Garden is the garden where the clusters are hosted.
	Garden Garden `json:"garden"`

	// Project is the project related to the resolved target. It is optional, hence the omitempty tag.
	Project *Project `json:"project,omitempty"`

	// Shoot is the shoot cluster related to the resolved target. It is optional, hence the omitempty tag.
	Shoot *Shoot `json:"shoot,omitempty"`

	// Seed is the seed cluster related to the resolved target. It is optional, hence the omitempty tag.
	Seed *Seed `json:"seed,omitempty"`
}

ResolvedTarget represents the resolved target. It contains the details of the Garden, Project, Shoot, and Seed.

type Seed

type Seed struct {
	// Name is the name of the seed cluster.
	Name string `json:"name"`
}

Seed represents a seed cluster.

type Shoot

type Shoot struct {
	// Name is the name of the shoot cluster.
	Name string `json:"name"`

	// Namespace is the namespace within which the shoot exists.
	Namespace string `json:"namespace"`

	// AccessRestriction holds the rendered access restriction messages
	AccessRestriction *string `json:"accessRestriction,omitempty"`
}

Shoot represents a shoot cluster.

Jump to

Keyboard shortcuts

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