Documentation ¶
Index ¶
- Variables
- func AppStatusLoop(ctx context.Context, c client.Client, logger AppStatusLogger, appName string) error
- func Dev(ctx context.Context, client client.Client, opts *Options) error
- func DevPorts(ctx context.Context, c client.Client, logger Logger, appName string) error
- func LogLoop(ctx context.Context, c client.Client, appName string, opts *client.LogOptions) error
- func PrintAppStatus(app *apiv1.App, logger AppStatusLogger)
- type AppStatusLogger
- type BuildState
- type BuildStatus
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildRunning = BuildState("running") BuildFailed = BuildState("failed") BuildSucceeded = BuildState("succeeded") )
Functions ¶
func AppStatusLoop ¶
func PrintAppStatus ¶
func PrintAppStatus(app *apiv1.App, logger AppStatusLogger)
Types ¶
type AppStatusLogger ¶ added in v0.9.0
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 }
Click to show internal directories.
Click to hide internal directories.