builder

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 12 Imported by: 0

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
}

Docker is a docker image builder.

func NewDocker

func NewDocker(logger *slog.Logger, cli *client.Client) *Docker

NewDocker returns new Docker instance.

func (Docker) Build

func (d Docker) Build(ctx context.Context, file string) (string, error)

Build builds docker image.

func (Docker) Run

func (d Docker) Run(ctx context.Context, image string) error

Run create and runs docker container.

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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