types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColumnId                 = "id"
	ColumnVersion            = "version"
	ColumnIsDeleted          = "is_deleted"
	ColumnName               = "name"
	ColumnState              = "state"
	ColumnMessage            = "message"
	ColumnDeploymentPlanName = "deployment_plan_name"
	ColumnDeploymentId       = "deployment_id"
)

Variables

This section is empty.

Functions

func GetDisplayMetaInstanceColumnTags

func GetDisplayMetaInstanceColumnTags() []string

func ValidateDisplayMetaInstanceColumnTags

func ValidateDisplayMetaInstanceColumnTags(tags []string) error

Types

type DisplayMetaInstance

type DisplayMetaInstance struct {
	Metadata           DisplayMetadata           `json:"metadata,omitempty"`
	Name               string                    `json:"name,omitempty" displayName:"Meta Instance Name" columnTag:"name"`
	Status             DisplayMetaInstanceStatus `json:"status,omitempty"`
	DeploymentPlanName string                    `json:"deployment_plan_name,omitempty" displayName:"Deployment Plan Name" columnTag:"deployment_plan_name"`
	DeploymentID       string                    `json:"deployment_id,omitempty" displayName:"Deployment ID" columnTag:"deployment_id"`
	RuntimeInstances   []DisplayRuntimeInstance  `json:"runtime_instances,omitempty"`
	Operations         []DisplayOperation        `json:"operations,omitempty"`
}

DisplayMetaInstance represents the display version of the MetaInstanceRecord.

func (*DisplayMetaInstance) GetDeploymentID

func (n *DisplayMetaInstance) GetDeploymentID() printer.DisplayField

func (*DisplayMetaInstance) GetDeploymentPlanName

func (n *DisplayMetaInstance) GetDeploymentPlanName() printer.DisplayField

func (*DisplayMetaInstance) GetDisplayFieldFromColumnTag

func (n *DisplayMetaInstance) GetDisplayFieldFromColumnTag(columnTag string) (printer.DisplayField, error)

func (*DisplayMetaInstance) GetName

type DisplayMetaInstanceStatus

type DisplayMetaInstanceStatus struct {
	State   string `` /* 176-byte string literal not displayed */
	Message string `json:"message,omitempty" displayName:"Status Message" columnTag:"message"`
}

DisplayMetaInstanceStatus represents the display version of MetaInstanceStatus.

func (*DisplayMetaInstanceStatus) GetMessage

func (*DisplayMetaInstanceStatus) GetState

type DisplayMetadata

type DisplayMetadata struct {
	ID        string `json:"id,omitempty" displayName:"ID" columnTag:"id"`
	Version   int    `json:"version,omitempty" displayName:"Version" columnTag:"version"`
	IsDeleted bool   `json:"is_deleted,omitempty" displayName:"Is Deleted" columnTag:"is_deleted" redTexts:"true" greenTexts:"false"`
}

DisplayMetadata is the display version of core.Metadata in MetaInstanceRecord.

func (*DisplayMetadata) GetID

func (*DisplayMetadata) GetIsDeleted

func (n *DisplayMetadata) GetIsDeleted() printer.DisplayField

func (*DisplayMetadata) GetVersion

func (n *DisplayMetadata) GetVersion() printer.DisplayField

type DisplayOperation

type DisplayOperation struct {
	ID       string                 `json:"id,omitempty" displayName:"Operation ID"`
	Type     string                 `json:"type,omitempty" displayName:"Operation Type"`
	IntentID string                 `json:"intent_id,omitempty" displayName:"Intent ID"`
	Status   DisplayOperationStatus `json:"status,omitempty"`
}

DisplayOperation represents the display version of Operation.

func (*DisplayOperation) GetID

func (*DisplayOperation) GetIntentID

func (n *DisplayOperation) GetIntentID() printer.DisplayField

func (*DisplayOperation) GetType

func (n *DisplayOperation) GetType() printer.DisplayField

type DisplayOperationStatus

type DisplayOperationStatus struct {
	State   string `` /* 218-byte string literal not displayed */
	Message string `json:"message,omitempty" displayName:"Status Message"`
}

DisplayOperationStatus represents the display version of OperationStatus.

func (*DisplayOperationStatus) GetMessage

func (*DisplayOperationStatus) GetState

type DisplayRuntimeInstance

type DisplayRuntimeInstance struct {
	ID       string                       `json:"id,omitempty" displayName:"Instance ID"`
	NodeName string                       `json:"node_name,omitempty" displayName:"Node Name"`
	IsActive bool                         `json:"is_active,omitempty" displayName:"Is Active" redTexts:"false" greenTexts:"true"`
	Status   DisplayRuntimeInstanceStatus `json:"status,omitempty"`
}

DisplayRuntimeInstance represents the display version of RuntimeInstance.

func (*DisplayRuntimeInstance) GetID

func (*DisplayRuntimeInstance) GetIsActive

func (n *DisplayRuntimeInstance) GetIsActive() printer.DisplayField

func (*DisplayRuntimeInstance) GetNodeName

func (n *DisplayRuntimeInstance) GetNodeName() printer.DisplayField

type DisplayRuntimeInstanceStatus

type DisplayRuntimeInstanceStatus struct {
	State   string `` /* 243-byte string literal not displayed */
	Message string `json:"message,omitempty" displayName:"Status Message"`
}

DisplayRuntimeInstanceStatus represents the display version of RuntimeInstanceStatus.

func (*DisplayRuntimeInstanceStatus) GetMessage

func (*DisplayRuntimeInstanceStatus) GetState

Jump to

Keyboard shortcuts

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