monitor

package
v0.0.325 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForRunningMachine added in v0.0.236

func WaitForRunningMachine(ctx context.Context, appName string, machineID string, apiClient *api.Client) (*api.Machine, error)

func WaitForRunningVM

func WaitForRunningVM(ctx context.Context, appName string, apiClient *api.Client) (err error)

func WatchLogs added in v0.0.201

func WatchLogs(cc *cmdctx.CmdContext, w io.Writer, opts LogOptions) error

Types

type LogOptions added in v0.0.201

type LogOptions struct {
	W io.Writer

	MaxBackoff time.Duration
	AppName    string
	VMID       string
	RegionCode string
}

type LogStream added in v0.0.201

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

func NewLogStream added in v0.0.201

func NewLogStream(apiClient *api.Client) *LogStream

func (*LogStream) Err added in v0.0.201

func (ls *LogStream) Err() error

func (*LogStream) Stream added in v0.0.201

func (ls *LogStream) Stream(ctx context.Context, opts LogOptions) <-chan []api.LogEntry

Jump to

Keyboard shortcuts

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