docker_server

package
v0.0.1-rc.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() pb.BuilderServer

Types

type BuilderPbServer

type BuilderPbServer interface {
	Send(*v1.OutputResponse) error
}

type BuilderServer

type BuilderServer struct {
	pb.UnimplementedBuilderServer
	// contains filtered or unexported fields
}

func (*BuilderServer) Add

Add

func (*BuilderServer) Commit

Add

func (*BuilderServer) Config

Add

func (*BuilderServer) Copy

Copy

func (*BuilderServer) From

From

func (*BuilderServer) Run

Add

type ContainerState

type ContainerState interface {
	Name() string
	Lines() []string
	// TODO: We will want to replace this with a more op/args model to translate better between more types of container file formats
	AddLine(line string)
	LogLine(line string) string
	AddDependency(name string)
	Dependencies() []string
	Ignore() []string
}

type ContainerStateStore

type ContainerStateStore interface {
	// 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)
}

Jump to

Keyboard shortcuts

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