diagnostics

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package diagnostics stores bounded private failure reports, never health output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Timestamp time.Time `json:"timestamp"`
	ScaleSet  string    `json:"scaleset"`
	Provider  string    `json:"provider"`
	Runner    string    `json:"runner"`
	Instance  string    `json:"instance"`
	Reason    string    `json:"reason"`
	provider.ExitDiagnostics
	Excerpt string `json:"excerpt,omitempty"`
}

type Store

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

func NewStore

func NewStore(dir string, captureLogs bool) *Store

func (*Store) Save

func (s *Store) Save(ctx context.Context, r Record, secrets ...string) (string, error)

Jump to

Keyboard shortcuts

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