dogger

package
v0.1.2-0...-3e0559f Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 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(ctx context.Context, deploymentID *string,
	stream agent.Agent_DeploymentStatusClient,
	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