bundle

package
v0.0.0-...-16c4818 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
}

Bundle is docker bundle file loader, implements Loader interface

func (*Bundle) LoadFile

func (b *Bundle) LoadFile(files []string) (kobject.KomposeObject, error)

LoadFile loads dab file into KomposeObject

type Bundlefile

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

Bundlefile stores the contents of a bundlefile

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