types

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 1 Imported by: 0

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

type Kr8Cluster struct {
	Name string `json:"name"`
	Path string `json:"-"`
}

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.

func (Kr8Error) Error

func (e Kr8Error) Error() string

Error implements error.

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.

Jump to

Keyboard shortcuts

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