engine

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context) error

Start start docker engine api loop

Types

type Docker

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

func New

func New(opts ...Option) (*Docker, error)

func (*Docker) Ping

func (e *Docker) Ping(ctx context.Context) error

Ping pings the Docker daemon.

type Option

type Option interface {
	Apply(*Docker)
}

An Option configures a mutex.

func WithClient

func WithClient(c client.APIClient) Option

WithClient set custom client

func WithHidePull

func WithHidePull(v bool) Option

WithHidePull hide pull event.

type OptionFunc

type OptionFunc func(*Docker)

OptionFunc is a function that configure a value.

func (OptionFunc) Apply

func (f OptionFunc) Apply(docker *Docker)

Apply calls f(option)

Jump to

Keyboard shortcuts

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