command

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner runs commands

func NewRunner

func NewRunner(client platform.Clienter, cloneURL string, logger logger.Loggerer) *Runner

NewRunner creates Runner

func (*Runner) Deploy

func (r *Runner) Deploy(
	ctx context.Context,
	userName string,
	stacks []string,
) error

Deploy runs cdk deploy

func (*Runner) Diff

func (r *Runner) Diff(
	ctx context.Context,
) error

Diff runs cdk diff

func (*Runner) Rollback

func (r *Runner) Rollback(
	ctx context.Context,
	userName string,
	stacks []string,
) error

Rollback runs cdk deploy at base branch

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, command string, userName string) error

Run a command

type Runnerer

type Runnerer interface {
	Diff(
		ctx context.Context,
		cdkPath string,
		contexts map[string]string,
	) (bool, error)
	Deploy(
		ctx context.Context,
		cdkPath string,
		contexts map[string]string,
		cfg *config.Config,
		userName string,
	) (bool, error)
}

Runnerer is interface of Runner

Jump to

Keyboard shortcuts

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