spec

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const APIGroup = "tanka.dev"

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte, name string) (*v1alpha1.Config, error)

Parse parses the json `data` into a `v1alpha1.Config` object. `name` is the name of the environment

func ParseDir

func ParseDir(baseDir, name string) (*v1alpha1.Config, error)

ParseDir parses the given environments `spec.json` into a `v1alpha1.Config` 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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