controllerstatus

package
v0.0.0-...-507705e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	CurrentStatus() (summary Summary, ready bool)
}

Interface an interface for controller status

type Operation

type Operation string

Operation describing the operation

const (
	// Uploading specific flag for summary related to uploading process.
	Uploading Operation = "Uploading"
)

type Simple

type Simple struct {
	Name string
	// contains filtered or unexported fields
}

Simple a structure for tracking a named summary

func (*Simple) CurrentStatus

func (s *Simple) CurrentStatus() (Summary, bool)

CurrentStatus A method for obtaining the status of a summary object and whether it previously existed

func (*Simple) UpdateStatus

func (s *Simple) UpdateStatus(summary Summary)

UpdateStatus A method for updating the tracking of a summary

type Summary

type Summary struct {
	Operation          Operation
	Healthy            bool
	Reason             string
	Message            string
	LastTransitionTime time.Time
	Count              int
}

Summary a structure describing the health, time, and count of an operation

Jump to

Keyboard shortcuts

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