buildkitopt

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDocker

func FromDocker(tr transport.Doer) []client.ClientOpt

FromDocker is a convenience function that returns a slice of ClientOpts that can be used to create a client for the buildkit GRPC and session APIs provided by dockerd.

func NewClient

func NewClient(ctx context.Context, tr transport.Doer, opts ...client.ClientOpt) (*client.Client, error)

NewClient is a convenience wrapper which creates a buildkit client for the buildkit service provided by dockerd. This just wraps buildkit's client.New to include WithSessionDialer and WithGRPCDialer automatically in addition to the opts provided.

func WithGRPCDialer

func WithGRPCDialer(tr transport.Doer) client.ClientOpt

WithGRPCDialer creates a ClientOpt that can be used to create a client for the buildkit GRPC API provided by dockerd.

func WithSessionDialer

func WithSessionDialer(tr transport.Doer) client.ClientOpt

WithSessionDialer creates a ClientOpt that can be used to create a client for the buildkit session API provided by dockerd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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