client

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fallback added in v0.3.0

func Fallback(
	ctx context.Context,
	log hclog.Logger,
	c *client.Client,
) (bool, error)

Fallback returns true if we should attempt to fallback to a daemonless mechanism. If the return value is (false, nil) then we should not fallback and Docker appears ready to use. If the return value is (false, non-nil) then we should not fallback but Docker does NOT appear healthy.

Note that a return value of true means that we should attempt a fallback, but this method doesn't validate that any fallback mechanism is actually available.

func NewClientWithOpts

func NewClientWithOpts(ops ...client.Opt) (*client.Client, error)

NewClientWithOpts wraps Docker's NewClientWithOpts with withConnectionHelper

Types

This section is empty.

Jump to

Keyboard shortcuts

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