builder

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	// Run takes the command to run, a list of args, and list of environment variables
	// in the form A=B, and returns stdout / error.
	Run(string, []string, []string) (string, error)

	RunInDir(string, string, []string, []string) (string, error)
}

CommandRunner runs the given command. Useful for mocking commands in unit tests.

type RealCommandRunner

type RealCommandRunner struct{}

RealCommandRunner runs a command for real on the host.

func (*RealCommandRunner) Run

func (r *RealCommandRunner) Run(name string, args []string, env []string) (string, error)

func (*RealCommandRunner) RunInDir

func (r *RealCommandRunner) RunInDir(dir, name string, args []string, env []string) (string, error)

type ReleaseBuilder

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

func NewReleaseBuilder

func NewReleaseBuilder(runner CommandRunner) *ReleaseBuilder

func (*ReleaseBuilder) BuildMetadata

func (r *ReleaseBuilder) BuildMetadata(dir string) error

func (*ReleaseBuilder) BuildRelease

func (r *ReleaseBuilder) BuildRelease() error

BuildRelease creates a Calico release.

func (*ReleaseBuilder) NewBranch

func (r *ReleaseBuilder) NewBranch() error

func (*ReleaseBuilder) PublishRelease

func (r *ReleaseBuilder) PublishRelease() error

Jump to

Keyboard shortcuts

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