rollout

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package rollout records rollout manifests and functional evidence.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassifyFailure

func ClassifyFailure(input string) string

func Redact

func Redact(input string) string

Types

type Event

type Event struct {
	Time         time.Time         `json:"time"`
	Phase        string            `json:"phase"`
	Status       string            `json:"status"`
	Severity     string            `json:"severity,omitempty"`
	Message      string            `json:"message,omitempty"`
	FailureClass string            `json:"failureClass,omitempty"`
	Attributes   map[string]string `json:"attributes,omitempty"`
}

type Metadata

type Metadata struct {
	RunID              string            `json:"runId"`
	StackKit           string            `json:"stackkit,omitempty"`
	TenantDeploymentID string            `json:"tenantDeploymentId,omitempty"`
	TenantID           string            `json:"tenantId,omitempty"`
	Environment        string            `json:"environment,omitempty"`
	Provider           string            `json:"provider,omitempty"`
	Labels             map[string]string `json:"labels,omitempty"`
}

type Recorder

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

func NewRecorder

func NewRecorder(stackkitDir string, meta Metadata) (*Recorder, error)

func (*Recorder) Close

func (r *Recorder) Close(summary Summary) error

func (*Recorder) Event

func (r *Recorder) Event(event Event)

func (*Recorder) Root

func (r *Recorder) Root() string

func (*Recorder) RunID

func (r *Recorder) RunID() string

type Summary

type Summary struct {
	Status       string   `json:"status"`
	FailureClass string   `json:"failureClass,omitempty"`
	Message      string   `json:"message,omitempty"`
	Artifacts    []string `json:"artifacts,omitempty"`
}

Jump to

Keyboard shortcuts

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