bundlefile

package
v0.0.0-...-5e14263 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(out io.Writer, bundle *Bundlefile) error

Print writes the contents of the bundlefile to the output writer as human readable json

Types

type Bundlefile

type Bundlefile struct {
	Version  string
	Services map[string]Service
}

Bundlefile stores the contents of a bundlefile

func LoadFile

func LoadFile(reader io.Reader) (*Bundlefile, error)

LoadFile loads a bundlefile from a path to the file

type Port

type Port struct {
	Protocol string
	Port     uint32
}

Port is a port as defined in a bundlefile

type Service

type Service struct {
	Image      string
	Command    []string          `json:",omitempty"`
	Args       []string          `json:",omitempty"`
	Env        []string          `json:",omitempty"`
	Labels     map[string]string `json:",omitempty"`
	Ports      []Port            `json:",omitempty"`
	WorkingDir *string           `json:",omitempty"`
	User       *string           `json:",omitempty"`
	Networks   []string          `json:",omitempty"`
}

Service is a service from a bundlefile

Jump to

Keyboard shortcuts

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