ksonnet

package
v1.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination added in v0.10.0

func Destination(data []byte, environment string) (*v1alpha1.ApplicationDestination, error)

Destination returns the deployment destination for an environment in app spec data

func Version

func Version() (string, error)

Version returns the version of ksonnet used when running ksonnet commands

Types

type KsonnetApp

type KsonnetApp interface {
	// Root is the root path ksonnet application directory
	Root() string

	// Show returns a list of unstructured objects that would be applied to an environment
	Show(environment string) ([]*unstructured.Unstructured, error)

	// Destination returns the deployment destination for an environment
	Destination(environment string) (*v1alpha1.ApplicationDestination, error)

	// ListParams returns list of ksonnet parameters
	ListParams(environment string) ([]*v1alpha1.KsonnetParameter, error)

	// SetComponentParams updates component parameter in specified environment.
	SetComponentParams(environment string, component string, param string, value string) error
}

KsonnetApp represents a ksonnet application directory and provides wrapper functionality around the `ks` command.

func NewKsonnetApp

func NewKsonnetApp(path string) (KsonnetApp, error)

NewKsonnetApp tries to create a new wrapper to run commands on the `ks` command-line tool.

Jump to

Keyboard shortcuts

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