dev

package
v0.10.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 42 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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