latest

package
v0.4.0-preview Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dockerfile string          `yaml:"dockerfile,omitempty"`
	Entrypoint Entrypoint      `yaml:"entrypoint,omitempty"`
	Sync       []string        `yaml:"sync,omitempty"`
	Env        []corev1.EnvVar `yaml:"env,omitempty"`
}

Config stores a deployment config.

type Entrypoint

type Entrypoint struct {
	Command string   `yaml:"command"`
	Args    []string `yaml:"args,omitempty"`
}

Entrypoint stores an API entrypoint.

type Manifest

type Manifest struct {
	ManivestVersion string `yaml:"kudaManifestVersion"`
	Version         string `yaml:"version,omitempty"`
	Name            string `yaml:"name"`
	License         string `yaml:"license,omitempty"`

	// The dev & deploy configs.
	Deploy Config `yaml:"deploy"`
	Dev    Config `yaml:"dev,omitempty"`

	// Release can contain the path to the deployed container.
	Release string `yaml:"release,omitempty"`
}

Manifest stores a kuda manifest.

func (*Manifest) CheckValid

func (manifest *Manifest) CheckValid() error

CheckValid ensures a manifest fields are properly set.

func (*Manifest) Load

func (manifest *Manifest) Load(reader io.Reader) error

Load the content of a file into a manifest.

Jump to

Keyboard shortcuts

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