config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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"`
}

Context represents a single named configuration context.

type ControlPlane added in v0.3.0

type ControlPlane struct {
	Type     string `yaml:"type"`            // "local" or "remote"
	Endpoint string `yaml:"endpoint"`        // API server URL
	Token    string `yaml:"token,omitempty"` // Optional auth token
}

ControlPlane defines OpenChoreo API server configuration

type StoredConfig

type StoredConfig struct {
	CurrentContext string        `yaml:"currentContext"`
	ControlPlane   *ControlPlane `yaml:"controlPlane,omitempty"`
	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