plugin

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPluginLogLevel = hclog.Info

TODO(this should be rather wired through an env var from the skaffold process)

Variables

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

SkaffoldCorePluginExecutionMap maps the core plugin name to the execution function

Functions

func Execute

func Execute(plugin string) error

Execute executes a plugin - does not validate

func GetCorePluginFromEnv added in v0.26.0

func GetCorePluginFromEnv() (string, error)

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

func NewPluginBuilder

func NewPluginBuilder(runCtx *runctx.RunContext) (shared.PluginBuilder, error)

NewPluginBuilder initializes and returns all required plugin builders

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 (b *Builder) Init(runCtx *runctx.RunContext) error

func (*Builder) Labels

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

Labels are labels applied to deployed resources.

func (*Builder) Prune added in v0.27.0

func (b *Builder) Prune(ctx context.Context, out io.Writer) error

Jump to

Keyboard shortcuts

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