package bundlefile

import "github.com/dotcloud/docker/cli/command/bundlefile"

Index

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

Source Files

bundlefile.go

Version
v1.13.0-rc7
Published
Jan 12, 2017
Platform
js/wasm
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.