plugin

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkaffoldCorePluginExecutionMap = map[string]func() error{
	"docker": docker.Execute,
	"bazel":  bazel.Execute,
}

SkaffoldCorePluginExecutionMap maps the core plugin name to the execution function

Functions

func Execute

func Execute() error

Execute executes a plugin, assumes ShouldExecuteCorePlugin has already been called

func NewPluginBuilder

func NewPluginBuilder(cfg *latest.BuildConfig, opts *config.SkaffoldOptions) (shared.PluginBuilder, error)

NewPluginBuilder initializes and returns all required plugin builders

func ShouldExecuteCorePlugin

func ShouldExecuteCorePlugin() bool

ShouldExecuteCorePlugin returns true if env variables for plugins are set properly and the plugin passed in is a core plugin

Types

type Builder

type Builder struct {
	Builders map[string]shared.PluginBuilder
}

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact) ([]build.Artifact, error)

func (*Builder) DependenciesForArtifact added in v0.24.0

func (b *Builder) DependenciesForArtifact(ctx context.Context, artifact *latest.Artifact) ([]string, error)

func (*Builder) Init

func (*Builder) Labels

func (b *Builder) Labels() map[string]string

Labels are labels applied to deployed resources.

Jump to

Keyboard shortcuts

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