types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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
}

Options for running the jsonnet command.

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 string
	Value   interface{}
}

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
}

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