Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func New

func New(cli *client.Client, logger *zap.Logger) *Docker

func (*Docker) Build

func (d *Docker) Build(ctx context.Context, langs []string) error

func (*Docker) BuildConcurrently

func (d *Docker) BuildConcurrently(ctx context.Context, langs []string) error

func (*Docker) Cleanup

func (d *Docker) Cleanup(ctx context.Context) ([]string, error)

func (*Docker) CleanupWithInterval

func (d *Docker) CleanupWithInterval(interval time.Duration)

func (*Docker) Eval

func (d *Docker) Eval(ctx context.Context, lang string, code string) (string, error)

func (*Docker) ListContainers

func (d *Docker) ListContainers(ctx context.Context) ([]string, error)

func (*Docker) SetupContainer

func (d *Docker) SetupContainer(ctx context.Context, lang string) (string, error)

func (*Docker) SetupContainers

func (d *Docker) SetupContainers(ctx context.Context, langs []string) error