startuprecorder

package
v0.0.0-...-bb71e59 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroshiftData

type MicroshiftData struct {
	Start         time.Time     `json:"start"`
	ServicesStart time.Time     `json:"servicesStart"`
	Ready         time.Time     `json:"ready"`
	TimeToReady   time.Duration `json:"timeToReady"`
}

type ServiceData

type ServiceData struct {
	Name         string        `json:"name"`
	Dependencies []string      `json:"dependencies"`
	Start        time.Time     `json:"start"`
	Ready        time.Time     `json:"ready"`
	TimeToReady  time.Duration `json:"timeToReady"`
}

type StartupData

type StartupData struct {
	Services   []ServiceData  `json:"services"`
	Microshift MicroshiftData `json:"microshift"`
}

type StartupRecorder

type StartupRecorder struct {
	Data StartupData

	ServiceCount int
	// contains filtered or unexported fields
}

func New

func New() *StartupRecorder

func (*StartupRecorder) MicroshiftReady

func (l *StartupRecorder) MicroshiftReady()

func (*StartupRecorder) MicroshiftStarts

func (l *StartupRecorder) MicroshiftStarts(start time.Time)

func (*StartupRecorder) OutputData

func (l *StartupRecorder) OutputData()

func (*StartupRecorder) ServiceReady

func (l *StartupRecorder) ServiceReady(serviceName string, dependencies []string, start time.Time)

func (*StartupRecorder) ServicesStart

func (l *StartupRecorder) ServicesStart(start time.Time)

Jump to

Keyboard shortcuts

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