Documentation ¶
Index ¶
- type RunBuilder
- func Apply(args ...string) *RunBuilder
- func Build(args ...string) *RunBuilder
- func Config(args ...string) *RunBuilder
- func Credits(args ...string) *RunBuilder
- func Debug(args ...string) *RunBuilder
- func Delete(args ...string) *RunBuilder
- func Deploy(args ...string) *RunBuilder
- func Dev(args ...string) *RunBuilder
- func Diagnose(args ...string) *RunBuilder
- func Filter(args ...string) *RunBuilder
- func Fix(args ...string) *RunBuilder
- func GeneratePipeline(args ...string) *RunBuilder
- func Init(args ...string) *RunBuilder
- func Inspect(args ...string) *RunBuilder
- func Render(args ...string) *RunBuilder
- func Run(args ...string) *RunBuilder
- func Schema(args ...string) *RunBuilder
- func Test(args ...string) *RunBuilder
- func (b *RunBuilder) InDir(dir string) *RunBuilder
- func (b *RunBuilder) InNs(ns string) *RunBuilder
- func (b *RunBuilder) Run(t *testing.T) error
- func (b *RunBuilder) RunBackground(t *testing.T)
- func (b *RunBuilder) RunInBackgroundWithOutput(t *testing.T, out io.Writer)
- func (b *RunBuilder) RunLive(t *testing.T) io.ReadCloser
- func (b *RunBuilder) RunOrFail(t *testing.T)
- func (b *RunBuilder) RunOrFailOutput(t *testing.T) []byte
- func (b *RunBuilder) RunWithCombinedOutput(t *testing.T) ([]byte, error)
- func (b *RunBuilder) StartWithProcess(t *testing.T) (*os.Process, error)
- func (b *RunBuilder) WithConfig(configFile string) *RunBuilder
- func (b *RunBuilder) WithEnv(env []string) *RunBuilder
- func (b *RunBuilder) WithProfiles(profiles []string) *RunBuilder
- func (b *RunBuilder) WithRepo(repo string) *RunBuilder
- func (b *RunBuilder) WithStdin(input []byte) *RunBuilder
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 Apply ¶ added in v1.21.0
func Apply(args ...string) *RunBuilder
Apply runs `skaffold apply` with the given arguments.
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 Credits ¶ added in v1.2.0
func Credits(args ...string) *RunBuilder
Credits runs `skaffold credits` 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 Diagnose ¶ added in v0.30.0
func Diagnose(args ...string) *RunBuilder
Diagnose runs `skaffold diagnose` with the given arguments.
func Filter ¶ added in v1.7.1
func Filter(args ...string) *RunBuilder
Filter runs `skaffold filter` with the given arguments.
func GeneratePipeline ¶ added in v0.36.0
func GeneratePipeline(args ...string) *RunBuilder
func Init ¶
func Init(args ...string) *RunBuilder
Init runs `skaffold init` with the given arguments.
func Inspect ¶ added in v1.26.0
func Inspect(args ...string) *RunBuilder
Inspect runs `skaffold inspect` with the given arguments.
func Render ¶ added in v1.7.1
func Render(args ...string) *RunBuilder
Render runs `skaffold render` with the given arguments.
func Schema ¶ added in v1.2.0
func Schema(args ...string) *RunBuilder
Schema runs `skaffold schema` with the given arguments.
func Test ¶ added in v1.18.0
func Test(args ...string) *RunBuilder
Test runs `skaffold test` 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)
RunBackground runs the skaffold command in the background. The Skaffold output is accumulated and logged on test failure.
func (*RunBuilder) RunInBackgroundWithOutput ¶ added in v1.33.0
func (b *RunBuilder) RunInBackgroundWithOutput(t *testing.T, out io.Writer)
RunInBackgroundWithOutput runs the skaffold command in the background.
func (*RunBuilder) RunLive ¶ added in v1.18.0
func (b *RunBuilder) RunLive(t *testing.T) io.ReadCloser
RunLive runs the skaffold command in the background with live output. !!Warning!! RunLive blocks the skaffold command until the caller reads from the returned `PipeReader`. Please use `WaitForLogs` or similar to read continuously from the returned `PipeReader`.
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) StartWithProcess ¶ added in v1.27.0
StartWithProcess starts the skaffold command and returns the process id 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) WithProfiles ¶ added in v1.5.0
func (b *RunBuilder) WithProfiles(profiles []string) *RunBuilder
WithProfiles sets profiles.
func (*RunBuilder) WithRepo ¶ added in v1.2.0
func (b *RunBuilder) WithRepo(repo string) *RunBuilder
WithRepo sets the default repository to be used by skaffold.
func (*RunBuilder) WithStdin ¶
func (b *RunBuilder) WithStdin(input []byte) *RunBuilder
WithStdin sets the stdin.