Documentation ¶
Index ¶
- func MapContainerState(state string) common.ContainerState
- type DeploymentLogger
- func (dog *DeploymentLogger) GetLogs() []string
- func (dog *DeploymentLogger) SetRequestID(requestID string)
- func (dog *DeploymentLogger) Write(messages ...string)
- func (dog *DeploymentLogger) WriteContainerState(containerState string, messages ...string)
- func (dog *DeploymentLogger) WriteDeploymentStatus(status common.DeploymentStatus, messages ...string)
- func (dog *DeploymentLogger) WriteString(s string) (int, error)
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)
Click to show internal directories.
Click to hide internal directories.