skaffold

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Skaffold

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

func NewSkaffold

func NewSkaffold(version, binDir, kubeConfigPath string) *Skaffold

func (*Skaffold) Capture

func (s *Skaffold) Capture(ctx context.Context, args []string) (stdout string, stderr string, err error)

Capture execute command with returning outs as string.

func (*Skaffold) Dir

func (s *Skaffold) Dir() string

func (*Skaffold) Envs

func (s *Skaffold) Envs() []string

func (*Skaffold) Execute

func (s *Skaffold) Execute(ctx context.Context, args []string) error

Execute If OutPut is necessary, use Capture. Execute uses os.Stderr.

func (*Skaffold) Name

func (s *Skaffold) Name() string

func (*Skaffold) Path

func (s *Skaffold) Path() string

func (*Skaffold) Run

func (s *Skaffold) Run(ctx context.Context, filename string, logs bool) error

Run exec skaffold run -f {filename} if logs is true, it outputs kubectl logs to stdout.

func (*Skaffold) URL added in v1.1.0

func (s *Skaffold) URL() string

func (*Skaffold) Version

func (s *Skaffold) Version() string

Jump to

Keyboard shortcuts

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