mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
323cbe1997
* Update all core kinds to flattened lineages * Regen Go types, without any * Regen Go types, s/interface{}/any/ * Update generated core typescript * Update generate docs * Fix defaults gen in veneer index jenny * Flatten plugindef lineage * Convert all plugin kinds to flattened form * Switch back to interface{} for now * Switch to fs.Sub in plugin DeclParser * Mostly undesirable codegen changes, to be fixed * Update mod and sum * Update pfs tests to flattened lineages * Update thema to latest, regen docs
75 lines
2.8 KiB
Go
75 lines
2.8 KiB
Go
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// kinds/gen.go
|
|
// Using jennies:
|
|
// GoResourceTypes
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
package folder
|
|
|
|
// Defines values for OperatorStateState.
|
|
const (
|
|
OperatorStateStateFailed OperatorStateState = "failed"
|
|
OperatorStateStateInProgress OperatorStateState = "in_progress"
|
|
OperatorStateStateSuccess OperatorStateState = "success"
|
|
)
|
|
|
|
// Defines values for StatusOperatorStateState.
|
|
const (
|
|
StatusOperatorStateStateFailed StatusOperatorStateState = "failed"
|
|
StatusOperatorStateStateInProgress StatusOperatorStateState = "in_progress"
|
|
StatusOperatorStateStateSuccess StatusOperatorStateState = "success"
|
|
)
|
|
|
|
// OperatorState defines model for OperatorState.
|
|
type OperatorState struct {
|
|
// descriptiveState is an optional more descriptive state field which has no requirements on format
|
|
DescriptiveState *string `json:"descriptiveState,omitempty"`
|
|
|
|
// details contains any extra information that is operator-specific
|
|
Details map[string]interface{} `json:"details,omitempty"`
|
|
|
|
// lastEvaluation is the ResourceVersion last evaluated
|
|
LastEvaluation string `json:"lastEvaluation"`
|
|
|
|
// state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
State OperatorStateState `json:"state"`
|
|
}
|
|
|
|
// OperatorStateState state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
type OperatorStateState string
|
|
|
|
// Status defines model for Status.
|
|
type Status struct {
|
|
// additionalFields is reserved for future use
|
|
AdditionalFields map[string]interface{} `json:"additionalFields,omitempty"`
|
|
|
|
// operatorStates is a map of operator ID to operator state evaluations.
|
|
// Any operator which consumes this kind SHOULD add its state evaluation information to this field.
|
|
OperatorStates map[string]StatusOperatorState `json:"operatorStates,omitempty"`
|
|
}
|
|
|
|
// StatusOperatorState defines model for status.#OperatorState.
|
|
type StatusOperatorState struct {
|
|
// descriptiveState is an optional more descriptive state field which has no requirements on format
|
|
DescriptiveState *string `json:"descriptiveState,omitempty"`
|
|
|
|
// details contains any extra information that is operator-specific
|
|
Details map[string]interface{} `json:"details,omitempty"`
|
|
|
|
// lastEvaluation is the ResourceVersion last evaluated
|
|
LastEvaluation string `json:"lastEvaluation"`
|
|
|
|
// state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
State StatusOperatorStateState `json:"state"`
|
|
}
|
|
|
|
// StatusOperatorStateState state describes the state of the lastEvaluation.
|
|
// It is limited to three possible states for machine evaluation.
|
|
type StatusOperatorStateState string
|