Documentation
¶
Index ¶
- func NewTarDirReader(dir string) *tarDirReader
- func Run(opts ...Opt) (err error)
- type Config
- type Opt
- func After(runners ...func(config Config) (err error)) Opt
- func CleanupContainer() Opt
- func CleanupImage() Opt
- func Exec(runners ...func(config Config) (err error)) Opt
- func WithAPIVersion(version string) Opt
- func WithClientOpts(opts ...client.Opt) Opt
- func WithConfig(config Config) Opt
- func WithCtx(ctx context.Context) Opt
- func WithCwd(cwd string) Opt
- func WithDockerfile(path string) Opt
- func WithImage(image string) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTarDirReader ¶
func NewTarDirReader(dir string) *tarDirReader
Convert a directory into a readable tar stream
Types ¶
type Config ¶
type Config struct { Name string Cwd string Host *container.HostConfig Network *network.NetworkingConfig Platform *v1.Platform ContainerConfig *container.Config ImageBuildOpts *types.ImageBuildOptions ImagePullOpts *types.ImagePullOptions Ctx context.Context ClientOpts []client.Opt Cli *client.Client Container *container.CreateResponse ImageTags []string // contains filtered or unexported fields }
type Opt ¶
func CleanupContainer ¶
func CleanupContainer() Opt
func CleanupImage ¶
func CleanupImage() Opt
func WithAPIVersion ¶
func WithClientOpts ¶
func WithConfig ¶
func WithDockerfile ¶
Click to show internal directories.
Click to hide internal directories.