Help us shape the future of Go! Take the 2026 Go Developer Survey

dev

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 36 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, 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)
}

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
	Logger            Logger
	BuildStatus       chan<- BuildStatus
}

Jump to

Keyboard shortcuts

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