properties

package
v1.0.126 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTextCreated

func GetTextCreated(created bool) string

Types

type EntityProperty

type EntityProperty struct {

	// The name of the property being described
	Name string `json:"name"`

	// Explain is a human readable explanation of the property
	// it is static describe the property itself and not the current value.
	// this is optional and can be empty
	Explain string `json:"explain,omitempty"`

	// The value to display for this property
	Value interface{} `json:"value"`

	// The status of the property actual state
	Status PropertyStatus `json:"status,omitempty"`
}

type PropertyStatus

type PropertyStatus string
const (

	// the property is in it's desired state
	PropertyStatusSuccess PropertyStatus = "success"

	// the property is not in it's desired state, but it's state might be temporary
	// if wait some time, it might reconcile to the desired state (or not)
	PropertyStatusTransitioning PropertyStatus = "transitioning"

	// the property is not in it's desired state, and it's state is not expected to change
	PropertyStatusError PropertyStatus = "error"
)

func GetSuccessOrError

func GetSuccessOrError(matchExpected bool) PropertyStatus

func GetSuccessOrTransitioning

func GetSuccessOrTransitioning(matchExpected bool) PropertyStatus

Jump to

Keyboard shortcuts

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