dev

package
v0.10.1-rc2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildRunning   = BuildState("running")
	BuildFailed    = BuildState("failed")
	BuildSucceeded = BuildState("succeeded")
)

Functions

func AppStatusLoop

func AppStatusLoop(ctx context.Context, c client.Client, logger AppStatusLogger, appName string) error

func Dev

func Dev(ctx context.Context, client client.Client, opts *Options) error

func DevPorts

func DevPorts(ctx context.Context, c client.Client, logger Logger, appName string) error

func LogLoop

func LogLoop(ctx context.Context, c client.Client, appName string, opts *client.LogOptions) error

func PrintAppStatus

func PrintAppStatus(app *apiv1.App, logger AppStatusLogger)

Types

type AppStatusLogger added in v0.9.0

type AppStatusLogger interface {
	AppStatus(ready bool, msg string, app *apiv1.App)
}

type BuildState added in v0.9.0

type BuildState string

type BuildStatus added in v0.9.0

type BuildStatus struct {
	AppName string
	State   BuildState
	Image   string
	Message string
}

type Logger added in v0.9.0

type Logger interface {
	client.ContainerLogsWriter
	AppStatusLogger

	Errorf(format string, args ...interface{})
	Infof(format string, args ...interface{})
}

type Options

type Options struct {
	ImageSource       imagesource.ImageSource
	Run               client.AppRunOptions
	Replace           bool
	Dangerous         bool
	BidirectionalSync bool
	TimeoutSeconds    int32
	ReleaseOnExit     *bool
	Logger            Logger
	BuildStatus       chan<- BuildStatus
}

Jump to

Keyboard shortcuts

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