libtbd

package
v0.0.0-...-39baee9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContext

func BuildContext(dockerfile string) (io.Reader, error)

func BuildTemplate

func BuildTemplate(baseImage, path string) (string, error)

func Compile

func Compile(path string, outputPath string, options ...string) (io.ReadCloser, error)

func Must

func Must(err error)

Types

type Builder

type Builder interface {
	Build(ctx context.Context, path string) (string, error)
	Push(ctx context.Context, id string) error
	Run(ctx context.Context, id string) error
	Logs(ctx context.Context, id string) (chan string, error)
}

type DockerBuilder

type DockerBuilder struct {
	Debug     bool
	TempDir   string
	BaseImage string
	Client    *client.Client
}

func NewDockerBuilder

func NewDockerBuilder(debug bool, baseImage string) (DockerBuilder, error)

func (DockerBuilder) Build

func (d DockerBuilder) Build(ctx context.Context, path string) (string, error)

func (DockerBuilder) Logs

func (d DockerBuilder) Logs(ctx context.Context, id string) (chan string, error)

func (DockerBuilder) Push

func (d DockerBuilder) Push(ctx context.Context, id string) error

func (DockerBuilder) Run

func (d DockerBuilder) Run(ctx context.Context, id string) error

type TBD

type TBD struct {
	Storage s.Storage
	Builder Builder
}

func DefaultTBD

func DefaultTBD(owner, repo, apiKey string, debug bool) (TBD, error)

func (TBD) BuildImage

func (t TBD) BuildImage(path string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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