dogger

package
v0.0.0-...-d99d806 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapContainerState

func MapContainerState(state string) common.ContainerState

Types

type DeploymentLogger

type DeploymentLogger struct {
	io.StringWriter
	// contains filtered or unexported fields
}

func NewDeploymentLogger

func NewDeploymentLogger(deploymentID *string,
	stream agent.Agent_DeploymentStatusClient,
	ctx context.Context,
	appConfig *config.CommonConfiguration) *DeploymentLogger

func (*DeploymentLogger) GetLogs

func (dog *DeploymentLogger) GetLogs() []string

func (*DeploymentLogger) SetRequestID

func (dog *DeploymentLogger) SetRequestID(requestID string)

func (*DeploymentLogger) Write

func (dog *DeploymentLogger) Write(messages ...string)

Writes to all available streams: std.out and grpc streams

func (*DeploymentLogger) WriteContainerState

func (dog *DeploymentLogger) WriteContainerState(containerState string, messages ...string)

func (*DeploymentLogger) WriteDeploymentStatus

func (dog *DeploymentLogger) WriteDeploymentStatus(status common.DeploymentStatus, messages ...string)

func (*DeploymentLogger) WriteString

func (dog *DeploymentLogger) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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