skaffold

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunBuilder

type RunBuilder struct {
	// contains filtered or unexported fields
}

RunBuilder is used to build a command line to run `skaffold`.

func Build

func Build(args ...string) *RunBuilder

Build runs `skaffold build` with the given arguments.

func Config

func Config(args ...string) *RunBuilder

Config runs `skaffold config` with the given arguments.

func Debug added in v0.30.0

func Debug(args ...string) *RunBuilder

Debug runs `skaffold debug` with the given arguments.

func Delete

func Delete(args ...string) *RunBuilder

Delete runs `skaffold delete` with the given arguments.

func Deploy

func Deploy(args ...string) *RunBuilder

Deploy runs `skaffold deploy` with the given arguments.

func Dev

func Dev(args ...string) *RunBuilder

Dev runs `skaffold dev` with the given arguments.

func Diagnose added in v0.30.0

func Diagnose(args ...string) *RunBuilder

Diagnose runs `skaffold diagnose` with the given arguments.

func Fix

func Fix(args ...string) *RunBuilder

Fix runs `skaffold fix` with the given arguments.

func Init

func Init(args ...string) *RunBuilder

Init runs `skaffold init` with the given arguments.

func Run

func Run(args ...string) *RunBuilder

Run runs `skaffold run` with the given arguments.

func (*RunBuilder) InDir

func (b *RunBuilder) InDir(dir string) *RunBuilder

InDir sets the directory in which skaffold is running.

func (*RunBuilder) InNs

func (b *RunBuilder) InNs(ns string) *RunBuilder

InNs sets the Kubernetes namespace in which skaffold deploys.

func (*RunBuilder) Run

func (b *RunBuilder) Run(t *testing.T) error

Run runs the skaffold command.

func (*RunBuilder) RunBackground

func (b *RunBuilder) RunBackground(t *testing.T) context.CancelFunc

RunBackground runs the skaffold command in the background. This also returns a teardown function that stops skaffold.

func (*RunBuilder) RunOrFail

func (b *RunBuilder) RunOrFail(t *testing.T)

RunOrFail runs the skaffold command and fails the test if the command returns an error.

func (*RunBuilder) RunOrFailOutput added in v0.26.0

func (b *RunBuilder) RunOrFailOutput(t *testing.T) []byte

RunOrFailOutput runs the skaffold command and fails the test if the command returns an error. It only returns the standard output.

func (*RunBuilder) RunWithCombinedOutput added in v0.34.1

func (b *RunBuilder) RunWithCombinedOutput(t *testing.T) ([]byte, error)

RunWithCombinedOutput runs the skaffold command and returns the combined standard output and error.

func (*RunBuilder) WithConfig

func (b *RunBuilder) WithConfig(configFile string) *RunBuilder

WithConfig sets the config file to be used by skaffold.

func (*RunBuilder) WithEnv

func (b *RunBuilder) WithEnv(env []string) *RunBuilder

WithEnv sets environment variables.

func (*RunBuilder) WithStdin

func (b *RunBuilder) WithStdin(input []byte) *RunBuilder

WithStdin sets the stdin.

Jump to

Keyboard shortcuts

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