statusmodel

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MPL-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 VmwareTanzuCoreV1alpha1StatusCondition

type VmwareTanzuCoreV1alpha1StatusCondition struct {

	// Last time the condition transit from one status to another.
	// Format: date-time
	LastTransitionTime strfmt.DateTime `json:"lastTransitionTime,omitempty"`

	// Human readable message indicating details about last transition.
	Message string `json:"message,omitempty"`

	// One-word reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// Severity of condition, one of Error, Warning, Info.
	// Default is Error.
	Severity *VmwareTanzuCoreV1alpha1StatusConditionSeverity `json:"severity,omitempty"`

	// Status of the condition, one of True, False, Unknown.
	// Default is Unknown.
	Status *VmwareTanzuCoreV1alpha1StatusConditionStatus `json:"status,omitempty"`

	// Type of condition.
	Type string `json:"type,omitempty"`
}

VmwareTanzuCoreV1alpha1StatusCondition Condition describes the status of resource. Each resource should provide meaningful set of conditions. For Tanzu, each resource must support 'Ready' and 'Scheduled' conditions Here is meaning of base conditions and their states: Condition 'Ready' with Status 'True' means user action has reached the desired state Condition 'Ready' with Status 'False' means user action failed to reach desired state. Condition 'Scheduled' with Status 'False' means user action can not be scheduled due to some reason Condition 'Scheduled' with Status 'True', Ready unknown means job is scheduled and system is working/will work on reaching to desires state Condition 'Scheduled' with Status 'Unknown' means system does not know the status of the action

swagger:model vmware.tanzu.core.v1alpha1.status.Condition

func (*VmwareTanzuCoreV1alpha1StatusCondition) MarshalBinary

func (m *VmwareTanzuCoreV1alpha1StatusCondition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation.

func (*VmwareTanzuCoreV1alpha1StatusCondition) UnmarshalBinary

func (m *VmwareTanzuCoreV1alpha1StatusCondition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation.

type VmwareTanzuCoreV1alpha1StatusConditionSeverity

type VmwareTanzuCoreV1alpha1StatusConditionSeverity string

VmwareTanzuCoreV1alpha1StatusConditionSeverity Severity expresses the severity of a Condition Type failing.

  • SEVERITY_UNSPECIFIED: Unspecified severity.
  • ERROR: Failure of a condition type should be viewed as an error.
  • WARNING: Failure of a condition type should be viewed as a warning, but that things could still work.
  • INFO: Failure of a condition type should be viewed as purely informational, and that things could still work.

swagger:model vmware.tanzu.core.v1alpha1.status.Condition.Severity

const (

	// VmwareTanzuCoreV1alpha1StatusConditionSeveritySEVERITYUNSPECIFIED captures enum value "SEVERITY_UNSPECIFIED".
	VmwareTanzuCoreV1alpha1StatusConditionSeveritySEVERITYUNSPECIFIED VmwareTanzuCoreV1alpha1StatusConditionSeverity = "SEVERITY_UNSPECIFIED"

	// VmwareTanzuCoreV1alpha1StatusConditionSeverityERROR captures enum value "ERROR".
	VmwareTanzuCoreV1alpha1StatusConditionSeverityERROR VmwareTanzuCoreV1alpha1StatusConditionSeverity = "ERROR"

	// VmwareTanzuCoreV1alpha1StatusConditionSeverityWARNING captures enum value "WARNING".
	VmwareTanzuCoreV1alpha1StatusConditionSeverityWARNING VmwareTanzuCoreV1alpha1StatusConditionSeverity = "WARNING"

	// VmwareTanzuCoreV1alpha1StatusConditionSeverityINFO captures enum value "INFO".
	VmwareTanzuCoreV1alpha1StatusConditionSeverityINFO VmwareTanzuCoreV1alpha1StatusConditionSeverity = "INFO"
)

func (VmwareTanzuCoreV1alpha1StatusConditionSeverity) Pointer

Pointer returns a pointer to a freshly-allocated VmwareTanzuCoreV1alpha1StatusConditionSeverity.

type VmwareTanzuCoreV1alpha1StatusConditionStatus

type VmwareTanzuCoreV1alpha1StatusConditionStatus string

VmwareTanzuCoreV1alpha1StatusConditionStatus Status describes the state of condition.

  • STATUS_UNSPECIFIED: Controller is actively working to achieve the condition.
  • TRUE: Reconciliation has succeeded. Once all transition conditions have succeeded, the "happy state" condition should be set to True..
  • FALSE: Reconciliation has failed. This should be a terminal failure state until user action occurs.

swagger:model vmware.tanzu.core.v1alpha1.status.Condition.Status

const (

	// VmwareTanzuCoreV1alpha1StatusConditionStatusSTATUSUNSPECIFIED captures enum value "STATUS_UNSPECIFIED".
	VmwareTanzuCoreV1alpha1StatusConditionStatusSTATUSUNSPECIFIED VmwareTanzuCoreV1alpha1StatusConditionStatus = "STATUS_UNSPECIFIED"

	// VmwareTanzuCoreV1alpha1StatusConditionStatusTRUE captures enum value "TRUE".
	VmwareTanzuCoreV1alpha1StatusConditionStatusTRUE VmwareTanzuCoreV1alpha1StatusConditionStatus = "TRUE"

	// VmwareTanzuCoreV1alpha1StatusConditionStatusFALSE captures enum value "FALSE".
	VmwareTanzuCoreV1alpha1StatusConditionStatusFALSE VmwareTanzuCoreV1alpha1StatusConditionStatus = "FALSE"
)

func (VmwareTanzuCoreV1alpha1StatusConditionStatus) Pointer

Pointer returns a pointer to a freshly-allocated VmwareTanzuCoreV1alpha1StatusConditionStatus.

type VmwareTanzuManageV1alpha1CommonBatchDetails

type VmwareTanzuManageV1alpha1CommonBatchDetails struct {

	// Number of atomic targets on which this source resource is successfully applied.
	Applied int32 `json:"applied,omitempty"`

	// Total number of targets available for this source resource.
	AvailableTargets int32 `json:"availableTargets,omitempty"`

	// Number of atomic targets on which this source resource failed to apply due to some error.
	Error int32 `json:"error,omitempty"`

	// Number of atomic targets on which this source resource is overridden by another resource.
	Overridden int32 `json:"overridden,omitempty"`

	// Number of atomic targets on which this source resource is still being applied.
	Pending int32 `json:"pending,omitempty"`
}

VmwareTanzuManageV1alpha1CommonBatchDetails Details contains information about a source resource being applied on its atomic targets.

swagger:model vmware.tanzu.manage.v1alpha1.common.batch.Details

func (*VmwareTanzuManageV1alpha1CommonBatchDetails) MarshalBinary

func (m *VmwareTanzuManageV1alpha1CommonBatchDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation.

func (*VmwareTanzuManageV1alpha1CommonBatchDetails) UnmarshalBinary

func (m *VmwareTanzuManageV1alpha1CommonBatchDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation.

type VmwareTanzuManageV1alpha1CommonBatchPhase

type VmwareTanzuManageV1alpha1CommonBatchPhase string

VmwareTanzuManageV1alpha1CommonBatchPhase Phase of the source resource application on its atomic targets. Note: The phase can move back to Pending from Applied when there are additions to the list of available atomic targets. In such a case, the system will automatically try to apply the changes to the new targets to get back to the Applied state.

  • PHASE_UNSPECIFIED: UNSPECIFIED phase.
  • PENDING: PENDING phase is set when source resource is currently being applied on at least one atomic target.
  • APPLIED: APPLIED phase is set when source resource is successfully applied or skipped due to an override on all atomic targets.
  • ERROR: ERROR phase is set when source resource has failed to apply on at-least one atomic target (not considering overrides).

swagger:model vmware.tanzu.manage.v1alpha1.common.batch.Phase

const (

	// VmwareTanzuManageV1alpha1CommonBatchPhasePHASEUNSPECIFIED captures enum value "PHASE_UNSPECIFIED".
	VmwareTanzuManageV1alpha1CommonBatchPhasePHASEUNSPECIFIED VmwareTanzuManageV1alpha1CommonBatchPhase = "PHASE_UNSPECIFIED"

	// VmwareTanzuManageV1alpha1CommonBatchPhasePENDING captures enum value "PENDING".
	VmwareTanzuManageV1alpha1CommonBatchPhasePENDING VmwareTanzuManageV1alpha1CommonBatchPhase = "PENDING"

	// VmwareTanzuManageV1alpha1CommonBatchPhaseAPPLIED captures enum value "APPLIED".
	VmwareTanzuManageV1alpha1CommonBatchPhaseAPPLIED VmwareTanzuManageV1alpha1CommonBatchPhase = "APPLIED"

	// VmwareTanzuManageV1alpha1CommonBatchPhaseERROR captures enum value "ERROR".
	VmwareTanzuManageV1alpha1CommonBatchPhaseERROR VmwareTanzuManageV1alpha1CommonBatchPhase = "ERROR"
)

func (VmwareTanzuManageV1alpha1CommonBatchPhase) Pointer

Pointer returns a pointer to a freshly-allocated VmwareTanzuManageV1alpha1CommonBatchPhase.

Jump to

Keyboard shortcuts

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