config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Context

type Context struct {
	Name         string `yaml:"name"`
	Organization string `yaml:"organization,omitempty"`
	Project      string `yaml:"project,omitempty"`
	Component    string `yaml:"component,omitempty"`
	Environment  string `yaml:"environment,omitempty"`
	DataPlane    string `yaml:"dataPlane,omitempty"`
	ClusterRef   string `yaml:"clusterRef,omitempty"` // Reference to KubernetesCluster
}

Context represents a single named configuration context.

type KubernetesCluster

type KubernetesCluster struct {
	Name       string `yaml:"name"`
	Kubeconfig string `yaml:"kubeconfig"`
	Context    string `yaml:"context"`
}

KubernetesCluster defines K8s cluster configuration

type StoredConfig

type StoredConfig struct {
	CurrentContext string              `yaml:"currentContext"`
	Clusters       []KubernetesCluster `yaml:"clusters"`
	Contexts       []Context           `yaml:"contexts"`
}

StoredConfig is the structure to store configuration contexts.

Jump to

Keyboard shortcuts

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