plugin

package
v0.0.0-...-8922f3e Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTypeAssertionFailed = errors.New("type assertion failed")

Functions

func Flags

func Flags(settings *Settings, category string) []cli.Flag

Flags returns a slice of CLI flags for the plugin.

func GetContainerIP

func GetContainerIP() (string, error)

func WaitForSocket

func WaitForSocket(ctx context.Context, path string, bfn func(err error, delay time.Duration)) error

waitForSocket waits for a Unix socket to become available.

func WriteDockerConf

func WriteDockerConf(path, conf string) error

Types

type Plugin

type Plugin struct {
	*plugin_base.Plugin
	Repository *plugin_base.Repository
	Commit     *plugin_base.Commit
	Settings   *Settings
}

Plugin implements provide the plugin.

func New

func New(e plugin_base.ExecuteFunc, build ...string) *Plugin

func (*Plugin) Execute

func (p *Plugin) Execute(ctx context.Context) error

Execute provides the implementation of the plugin.

func (*Plugin) GenerateLabels

func (p *Plugin) GenerateLabels() []string

func (*Plugin) Validate

func (p *Plugin) Validate() error

Validate handles the settings validation of the plugin.

type Settings

type Settings struct {
	BuildkitConfig string

	Daemon   buildkit.Daemon
	Registry buildkit.Registry
	Build    buildkit.BuildData
}

Settings for the Plugin.

Jump to

Keyboard shortcuts

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