dockerfile

package
v0.0.1-rc.9 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOptions

type AddOptions struct {
	Src  string
	Dest string
}

type ConfigOptions

type ConfigOptions struct {
	WorkingDir string
	Cmd        []string
	User       string
	Volumes    []string
	Ports      []int32
	Env        map[string]string
	Entrypoint []string
}

type ContainerState

type ContainerState interface {
	Name() string
	Lines() []string

	Add(AddOptions)
	Copy(CopyOptions) error
	Config(ConfigOptions)
	Run(RunOptions)

	Dependencies() []string
	Ignore() []string
	// contains filtered or unexported methods
}

func NewContainer

func NewContainer(opts NewContainerOpts) (ContainerState, error)

type ContainerStateStore

type ContainerStateStore interface {
	// Create a new container in the container state store
	NewContainer(opts NewContainerOpts) (ContainerState, error)
	// Put a new container state
	Put(string, ContainerState) error
	// Get an existing container state
	Get(string) (ContainerState, error)
	// Has - returns true if container exists in this state store
	Has(string) bool
	// Compile - Compiles the given container and it's dependencies into a ContainerFile/Dockerfile
	Compile(string, []string) ([]string, error)
}

func NewStateStore

func NewStateStore() ContainerStateStore

type CopyOptions

type CopyOptions struct {
	Src  string
	Dest string
	From string
}

type NewContainerOpts

type NewContainerOpts struct {
	From   string
	As     string
	Ignore []string
}

type RunOptions

type RunOptions struct {
	Command []string
}

Jump to

Keyboard shortcuts

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