spec

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const APIGroup = "tanka.dev"

APIGroup is the prefix used for `kind`

View Source
const Specfile = "spec.json"

Specfile is the filename for the environment config

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte, namespace string) (*v1alpha1.Environment, error)

Parse parses the json `data` into a `v1alpha1.Environment` object.

func ParseDir

func ParseDir(path string) (*v1alpha1.Environment, error)

ParseDir parses the given environments `spec.json` into a `v1alpha1.Environment` object with the name set to the directories name

Types

type ErrDeprecated

type ErrDeprecated []depreciation

ErrDeprecated is a non-fatal error that occurs when deprecated fields are used in the spec.json

func (ErrDeprecated) Error

func (e ErrDeprecated) Error() string

type ErrMistypedField added in v0.8.0

type ErrMistypedField struct {
	// contains filtered or unexported fields
}

ErrMistypedField occurs that the field of the given name has the wrong type

func (ErrMistypedField) Error added in v0.8.0

func (e ErrMistypedField) Error() string

type ErrNoSpec added in v0.8.0

type ErrNoSpec struct {
	// contains filtered or unexported fields
}

ErrNoSpec means that the given directory has no spec.json This must not be fatal, some operations work without

func (ErrNoSpec) Error added in v0.8.0

func (e ErrNoSpec) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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