packer2llb

package
v0.0.0-...-eca8a8d Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package packer2llb is the main integration point for plugins that implement support for various ecosystems.

Index

Constants

View Source
const DirInstall = "/usr/local/bin"

DirInstall specifies the target path that the binaries will be installed in.

Variables

View Source
var ErrActivate = errors.New("packer2llb: activate plugin")

ErrActivate is returned by plugin's Detect function when plugin detected a compatible project.

Functions

func Clear

func Clear()

Clear all plugin registrations.

func Register

func Register(plugin Plugin)

Register the plugin for the integration.

Types

type Plugin

type Plugin interface {
	// Detect if this plugin is compatible with the project (in which case
	// ErrActivate is returned).
	Detect(ctx context.Context, src client.Reference, config *config.Config) error
	// Build a container image for the project with this plugin.
	Build(ctx context.Context, platform *specs.Platform, build cib.Service) (*llb.State, *dockerfile2llb.Image, error)
}

Plugin represents an ecosystem integration.

func Detect

func Detect(ctx context.Context, build cib.Service, config *config.Config) (plugin Plugin, err error)

Detect if any of active integrations can process this project.

Directories

Path Synopsis
Package packer2llb_mock is a generated GoMock package.
Package packer2llb_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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