Documentation
¶
Overview ¶
Package types contains shared types used across kr8+ packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdJsonnetOptions ¶
type CmdJsonnetOptions struct {
Prune bool
Cluster string
ClusterParams string
Component string
Format string
Color bool
Lint bool
}
Options for running the jsonnet command. Used by a few packages and commands.
type Kr8Cluster ¶
An object that stores variables that can be referenced by components.
type Kr8Error ¶
type Kr8Error struct {
// Message to show the user.
Message string
// Value to include with message
Value interface{}
}
Shared kr8+ error struct.
type Kr8Opts ¶
type Kr8Opts struct {
// Base directory of kr8+ configuration
BaseDir string
// Directory where component definitions are stored
ComponentDir string
// Directory where cluster configurations are stored
ClusterDir string
}
Options that configure where kr8+ looks for files.
type VMConfig ¶
type VMConfig struct {
// JPaths is a list of paths to search for Jsonnet libraries (libsonnet files)
JPaths []string `json:"jpath" yaml:"jpath"`
// ExtVars is a list of external variables to pass to Jsonnet VM
ExtVars []string `json:"ext_str_file" yaml:"ext_str_files"`
// base directory for the project
BaseDir string `json:"base_dir" yaml:"base_dir"`
}
VMConfig describes configuration to initialize the Jsonnet VM with.
Click to show internal directories.
Click to hide internal directories.