manifest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Specs []Spec `yaml:"specs"`
}

func Parse

func Parse(filePath string) (Manifest, error)

type Port

type Port int

type Process

type Process struct {
	Command string `yaml:"command"`
	User    string `yaml:"user"`
	Ports   []Port `yaml:"ports"`
	Ignore  bool   `yaml:"ignore_ports,omitempty"`
}

type Spec

type Spec struct {
	Prefix    string `yaml:"prefix"`
	Processes []Process
}

func (Spec) ExpectedCommands

func (h Spec) ExpectedCommands() []string

func (Spec) ExpectedPorts

func (h Spec) ExpectedPorts() []Port

func (Spec) ShouldIgnorePortsForCommand

func (h Spec) ShouldIgnorePortsForCommand(command string) bool

Jump to

Keyboard shortcuts

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