enum

package
v0.50.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const EnumLogTypeLength = int(logTypeUnusedEnd) + 1
View Source
const EnumParentRelationshipLength = int(relationshipUnusedEnd) + 1

EnumParentRelationshipLength is the count of ParentRelationship enum elements.

Variables

View Source
var LogTypes = map[LogType]LogTypeFrontendMetadata{
	LogTypeUnknown: {
		EnumKeyName:          "LogTypeUnknown",
		Label:                "unknown",
		LabelBackgroundColor: "#000000",
	},
	LogTypeEvent: {
		EnumKeyName:          "LogTypeEvent",
		Label:                "k8s_event",
		LabelBackgroundColor: "#3fb549",
	},
	LogTypeAudit: {
		EnumKeyName:          "LogTypeAudit",
		Label:                "k8s_audit",
		LabelBackgroundColor: "#000000",
	},
	LogTypeContainer: {
		EnumKeyName:          "LogTypeContainer",
		Label:                "k8s_container",
		LabelBackgroundColor: "#fe9bab",
	},
	LogTypeNode: {
		EnumKeyName:          "LogTypeNode",
		Label:                "k8s_node",
		LabelBackgroundColor: "#0077CC",
	},
	LogTypeGkeAudit: {
		EnumKeyName:          "LogTypeGkeAudit",
		Label:                "gke_audit",
		LabelBackgroundColor: "#AA00FF",
	},
	LogTypeComputeApi: {
		EnumKeyName:          "LogTypeComputeApi",
		Label:                "compute_api",
		LabelBackgroundColor: "#FFCC33",
	},
	LogTypeMulticloudAPI: {
		EnumKeyName:          "LogTypeMulticloudAPI",
		Label:                "multicloud_api",
		LabelBackgroundColor: "#AA00FF",
	},
	LogTypeOnPremAPI: {
		EnumKeyName:          "LogTypeOnPremAPI",
		Label:                "onprem_api",
		LabelBackgroundColor: "#AA00FF",
	},
	LogTypeNetworkAPI: {
		EnumKeyName:          "LogTypeNetworkAPI",
		Label:                "network_api",
		LabelBackgroundColor: "#33CCFF",
	},
	LogTypeAutoscaler: {
		EnumKeyName:          "LogTypeAutoscaler",
		Label:                "autoscaler",
		LabelBackgroundColor: "#FF5555",
	},
	LogTypeComposerEnvironment: {
		EnumKeyName:          "LogTypeComposerEnvironment",
		Label:                "composer_environment",
		LabelBackgroundColor: "#88AA55",
	},
	LogTypeControlPlaneComponent: {
		EnumKeyName:          "LogTypeControlPlaneComponent",
		Label:                "control_plane_component",
		LabelBackgroundColor: "#FF3333",
	},
	LogTypeSerialPort: {
		EnumKeyName:          "LogTypeSerialPort",
		Label:                "serial_port",
		LabelBackgroundColor: "#333333",
	},
	LogTypeCSMAccessLog: {
		EnumKeyName:          "LogTypeCSMAccessLog",
		Label:                "csm_access_log",
		LabelBackgroundColor: "#FF8500",
	},
}
View Source
var ParentRelationships = map[ParentRelationship]ParentRelationshipFrontendMetadata{
	RelationshipChild: {
		Visible:              false,
		EnumKeyName:          "RelationshipChild",
		Label:                "resource",
		LabelColor:           "#000000",
		LabelBackgroundColor: "#CCCCCC",
		SortPriority:         1000,
		LongName:             "The default resource timeline",
		Description:          "A default timeline recording the history of Kubernetes resources",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateInferred,
				SourceLogType: LogTypeAudit,
				Description:   "This state indicates the resource exists at the time, but this existence is inferred from the other logs later. The detailed resource information is not available.",
			},
			{
				State:         RevisionStateExisting,
				SourceLogType: LogTypeAudit,
				Description:   "This state indicates the resource exists at the time",
			},
			{
				State:         RevisionStateDeleted,
				SourceLogType: LogTypeAudit,
				Description:   "This state indicates the resource is deleted at the time.",
			},
			{
				State:         RevisionStateDeleting,
				SourceLogType: LogTypeAudit,
				Description:   "This state indicates the resource is being deleted with grace period at the time.",
			},
			{
				State:         RevisionStateProvisioning,
				SourceLogType: LogTypeGkeAudit,
				Description:   "This state indicates the resource is being provisioned. Currently this state is only used for cluster/nodepool status only.",
			},
		},
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeAudit,
				Description:   "An event that related to a resource but not changing the resource. This is often an error log for an operation to the resource.",
			},
			{
				SourceLogType: LogTypeEvent,
				Description:   "An event that related to a resource",
			},
			{
				SourceLogType: LogTypeNode,
				Description:   "An event that related to a node resource",
			},
			{
				SourceLogType: LogTypeComputeApi,
				Description:   "An event that related to a compute resource",
			},
			{
				SourceLogType: LogTypeControlPlaneComponent,
				Description:   "A log related to the timeline resource related to control plane component",
			},
			{
				SourceLogType: LogTypeAutoscaler,
				Description:   "A log related to the Pod which triggered or prevented autoscaler",
			},
		},
	},
	RelationshipResourceCondition: {
		Visible:              true,
		EnumKeyName:          "RelationshipResourceCondition",
		Label:                "condition",
		LongName:             "Status condition field timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#4c29e8",
		Hint:                 "Resource condition written on .status.conditions",
		SortPriority:         2000,
		Description:          "A timeline showing the state changes on `.status.conditions` of the parent resource",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateConditionTrue,
				SourceLogType: LogTypeAudit,
				Description:   "The condition state is `True`. **This doesn't always mean a good status** (For example, `NetworkUnreachabel` condition on a Node means a bad condition when it is `True`)",
			},
			{
				State:         RevisionStateConditionFalse,
				SourceLogType: LogTypeAudit,
				Description:   "The condition state is `False`. **This doesn't always mean a bad status** (For example, `NetworkUnreachabel` condition on a Node means a good condition when it is `False`)",
			},
			{
				State:         RevisionStateConditionUnknown,
				SourceLogType: LogTypeAudit,
				Description:   "The condition state is `Unknown`",
			},
		},
	},
	RelationshipOperation: {
		Visible:              true,
		EnumKeyName:          "RelationshipOperation",
		Label:                "operation",
		LongName:             "Operation timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#000000",
		Hint:                 "GCP operations associated with this resource",
		SortPriority:         3000,
		Description:          "A timeline showing long running operation status related to the parent resource",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateOperationStarted,
				SourceLogType: LogTypeComputeApi,
				Description:   "A long running operation is running",
			},
			{
				State:         RevisionStateOperationFinished,
				SourceLogType: LogTypeComputeApi,
				Description:   "An operation is finished at the time of left edge of this operation.",
			},
			{
				State:         RevisionStateOperationStarted,
				SourceLogType: LogTypeGkeAudit,
				Description:   "A long running operation is running",
			},
			{
				State:         RevisionStateOperationFinished,
				SourceLogType: LogTypeGkeAudit,
				Description:   "An operation is finished at the time of left edge of this operation.",
			},
			{
				State:         RevisionStateOperationStarted,
				SourceLogType: LogTypeNetworkAPI,
				Description:   "A long running operation is running",
			},
			{
				State:         RevisionStateOperationFinished,
				SourceLogType: LogTypeNetworkAPI,
				Description:   "An operation is finished at the time of left edge of this operation.",
			},
			{
				State:         RevisionStateOperationStarted,
				SourceLogType: LogTypeMulticloudAPI,
				Description:   "A long running operation is running",
			},
			{
				State:         RevisionStateOperationFinished,
				SourceLogType: LogTypeMulticloudAPI,
				Description:   "An operation is finished at the time of left edge of this operation.",
			},
			{
				State:         RevisionStateOperationStarted,
				SourceLogType: LogTypeOnPremAPI,
				Description:   "A long running operation is running",
			},
			{
				State:         RevisionStateOperationFinished,
				SourceLogType: LogTypeOnPremAPI,
				Description:   "An operation is finished at the time of left edge of this operation.",
			},
		},
	},
	RelationshipEndpointSlice: {
		Visible:              true,
		EnumKeyName:          "RelationshipEndpointSlice",
		Label:                "endpoint",
		LongName:             "Endpoint serving state timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#008000",
		Hint:                 "Pod serving status obtained from endpoint slice",
		SortPriority:         20000,
		Description:          "A timeline indicates the status of endpoint related to the parent resource(Pod or Service)",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateEndpointReady,
				SourceLogType: LogTypeAudit,
				Description:   "An endpoint associated with the parent resource is ready",
			},
			{
				State:         RevisionStateEndpointUnready,
				SourceLogType: LogTypeAudit,
				Description:   "An endpoint associated with the parent resource is not ready. Traffic shouldn't be routed during this time.",
			},
			{
				State:         RevisionStateEndpointTerminating,
				SourceLogType: LogTypeAudit,
				Description:   "An endpoint associated with the parent resource is being terminated. New traffic shouldn't be routed to this endpoint during this time, but the endpoint can still have pending requests.",
			},
		},
	},
	RelationshipContainer: {
		Visible:              true,
		EnumKeyName:          "RelationshipContainer",
		Label:                "container",
		LongName:             "Container timeline",
		LabelColor:           "#000000",
		LabelBackgroundColor: "#fe9bab",
		Hint:                 "Statuses/logs of a container",
		SortPriority:         5000,
		Description:          "A timline of a container included in the parent timeline of a Pod",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateContainerWaiting,
				SourceLogType: LogTypeAudit,
				Description:   "The container is not started yet and waiting for something.(Example: Pulling images, mounting volumes ...etc)",
			},
			{
				State:         RevisionStateContainerRunningNonReady,
				SourceLogType: LogTypeAudit,
				Description:   "The container is started but the readiness is not ready.",
			},
			{
				State:         RevisionStateContainerRunningReady,
				SourceLogType: LogTypeAudit,
				Description:   "The container is started and the readiness is ready",
			},
			{
				State:         RevisionStateContainerTerminatedWithSuccess,
				SourceLogType: LogTypeAudit,
				Description:   "The container is already terminated with successful exit code = 0",
			},
			{
				State:         RevisionStateContainerTerminatedWithError,
				SourceLogType: LogTypeAudit,
				Description:   "The container is already terminated with errornous exit code != 0",
			},
		},
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeContainer,
				Description:   "A container log on stdout/etderr",
			},
			{
				SourceLogType: LogTypeNode,
				Description:   "kubelet/containerd logs associated with the container",
			},
		},
	},
	RelationshipNodeComponent: {
		Visible:              true,
		EnumKeyName:          "RelationshipNodeComponent",
		Label:                "node-component",
		LongName:             "Node component timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#0077CC",
		Hint:                 "Non container resource running on a node",
		SortPriority:         6000,
		Description:          "A component running inside of the parent timeline of a Node",
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateInferred,
				SourceLogType: LogTypeNode,
				Description:   "The component is infrred to be running because of the logs from it",
			},
			{
				State:         RevisionStateExisting,
				SourceLogType: LogTypeNode,
				Description:   "The component is running running. (Few node components supports this state because the parser knows logs on startup for specific components)",
			},
			{
				State:         RevisionStateDeleted,
				SourceLogType: LogTypeNode,
				Description:   "The component is no longer running. (Few node components supports this state because the parser knows logs on termination for specific components)",
			},
		},
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeNode,
				Description:   "A log from the component on the log",
			},
		},
	},
	RelationshipOwnerReference: {
		Visible:              true,
		EnumKeyName:          "RelationshipOwnerReference",
		Label:                "owns",
		LongName:             "Owning children timeline",
		LabelColor:           "#000000",
		LabelBackgroundColor: "#33DD88",
		Hint:                 "A k8s resource related to this resource from .metadata.ownerReference field",
		SortPriority:         7000,
		GeneratableAliasTimelineInfo: []GeneratableAliasTimelineInfo{
			{
				AliasedTimelineRelationship: RelationshipChild,
				SourceLogType:               LogTypeAudit,
				Description:                 "This timeline shows the events and revisions of the owning resources.",
			},
		},
	},
	RelationshipPodBinding: {
		Visible:              true,
		EnumKeyName:          "RelationshipPodBinding",
		Label:                "binds",
		LongName:             "Pod binding timeline",
		LabelColor:           "#000000",
		LabelBackgroundColor: "#FF8855",
		Hint:                 "Pod binding subresource associated with this node",
		SortPriority:         8000,
		GeneratableAliasTimelineInfo: []GeneratableAliasTimelineInfo{
			{
				AliasedTimelineRelationship: RelationshipChild,
				SourceLogType:               LogTypeAudit,
				Description:                 "This timeline shows the binding subresources associated on a node",
			},
		},
	},
	RelationshipNetworkEndpointGroup: {
		Visible:              true,
		EnumKeyName:          "RelationshipNetworkEndpointGroup",
		Label:                "neg",
		LongName:             "Network Endpoint Group timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#A52A2A",
		Hint:                 "Pod serving status obtained from the associated NEG status",
		SortPriority:         20500,
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateConditionTrue,
				SourceLogType: LogTypeNetworkAPI,
				Description:   "indicates the NEG is already attached to the Pod.",
			},
			{
				State:         RevisionStateConditionFalse,
				SourceLogType: LogTypeNetworkAPI,
				Description:   "indicates the NEG is detached from the Pod",
			},
		},
	},
	RelationshipManagedInstanceGroup: {
		Visible:              true,
		EnumKeyName:          "RelationshipManagedInstanceGroup",
		Label:                "mig",
		LongName:             "Managed instance group timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#FF5555",
		Hint:                 "MIG logs associated to the parent node pool",
		SortPriority:         10000,
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeAutoscaler,
				Description:   "Autoscaler logs associated to a MIG(e.g The mig was scaled up by the austoscaler)",
			},
		},
	},
	RelationshipControlPlaneComponent: {
		Visible:              true,
		EnumKeyName:          "RelationshipControlPlaneComponent",
		Label:                "controlplane",
		LongName:             "Control plane component timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#FF5555",
		Hint:                 "control plane component of the cluster",
		SortPriority:         11000,
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeControlPlaneComponent,
				Description:   "A log from the control plane component",
			},
		},
	},
	RelationshipSerialPort: {
		Visible:              true,
		EnumKeyName:          "RelationshipSerialPort",
		Label:                "serialport",
		LongName:             "Serialport log timeline",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#333333",
		Hint:                 "Serial port logs of the node",
		SortPriority:         1500,
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeSerialPort,
				Description:   "A serialport log from the node",
			},
		},
	},
	RelationshipAirflowTaskInstance: {
		Visible:              true,
		EnumKeyName:          "RelationshipAirflowTaskInstance",
		Label:                "task",
		LongName:             "@task(Operator, Sensor, etc)",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#377e22",
		Hint:                 "Task is the basic unit of execution in Airflow",
		SortPriority:         1501,
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStateComposerTiDeferred,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = deferred",
			},
			{
				State:         RevisionStateComposerTiFailed,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = failed",
			},
			{
				State:         RevisionStateComposerTiRemoved,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = removed",
			},
			{
				State:         RevisionStateComposerTiRunning,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = running",
			},
			{
				State:         RevisionStateComposerTiScheduled,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = scheduled",
			},
			{
				State:         RevisionStateComposerTiSuccess,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = success",
			},
			{
				State:         RevisionStateComposerTiQueued,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = queued",
			},
			{
				State:         RevisionStateComposerTiUpForRetry,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = up_for_retry",
			},
			{
				State:         RevisionStateComposerTiUpForReschedule,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = reschedule",
			},
			{
				State:         RevisionStateComposerTiZombie,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = zombie",
			},
			{
				State:         RevisionStateComposerTiUpstreamFailed,
				SourceLogType: LogTypeComposerEnvironment,
				Description:   "Ti.state = upstream_failed",
			},
			{
				State:         RevisionStateComposerTiRestarting,
				SourceLogType: LogTypeControlPlaneComponent,
				Description:   "Ti.state = restarting",
			},
		},
	},
	RelationshipCSMAccessLog: {
		Visible:              true,
		EnumKeyName:          "RelationshipCSMAccessLog",
		Label:                "csm",
		LongName:             "CSM access log",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#FF8500",
		Hint:                 "CSM Access logs related to this resource",
		SortPriority:         5001,
		GeneratableEvents: []GeneratableEventInfo{
			{
				SourceLogType: LogTypeCSMAccessLog,
				Description:   "An access log entry reported from CSM",
			},
		},
	},
	RelationshipPodPhase: {
		Visible:              true,
		EnumKeyName:          "RelationshipPodPhase",
		Label:                "pod",
		LongName:             "Pod phase",
		LabelColor:           "#FFFFFF",
		LabelBackgroundColor: "#FF8855",
		Hint:                 "Pod phase running on the node",
		SortPriority:         8000,
		GeneratableRevisions: []GeneratableRevisionInfo{
			{
				State:         RevisionStatePodPhasePending,
				SourceLogType: LogTypeAudit,
				Description:   "Pod is pending",
			},
			{
				State:         RevisionStatePodPhaseRunning,
				SourceLogType: LogTypeAudit,
				Description:   "Pod is running",
			},
			{
				State:         RevisionStatePodPhaseSucceeded,
				SourceLogType: LogTypeAudit,
				Description:   "Pod is succeeded",
			},
			{
				State:         RevisionStatePodPhaseFailed,
				SourceLogType: LogTypeAudit,
				Description:   "Pod is failed",
			},
			{
				State:         RevisionStatePodPhaseUnknown,
				SourceLogType: LogTypeAudit,
				Description:   "Pod phase is unknown",
			},
		},
	},
}
View Source
var RevisionStates = map[RevisionState]RevisionStateFrontendMetadata{
	RevisionStateInferred: {
		EnumKeyName:     "RevisionStateInferred",
		BackgroundColor: "#997700",
		CSSSelector:     "inferred",
		Label:           "Resource may be existing",
	},
	RevisionStateExisting: {
		EnumKeyName:     "RevisionStateExisting",
		BackgroundColor: "#0000FF",
		CSSSelector:     "existing",
		Label:           "Resource is existing",
	},
	RevisionStateDeleted: {
		EnumKeyName:     "RevisionStateDeleted",
		BackgroundColor: "#CC0000",
		CSSSelector:     "deleted",
		Label:           "Resource is deleted",
	},
	RevisionStateConditionTrue: {
		EnumKeyName:     "RevisionStateConditionTrue",
		BackgroundColor: "#004400",
		CSSSelector:     "condition_true",
		Label:           "State is 'True'",
	},
	RevisionStateConditionFalse: {
		EnumKeyName:     "RevisionStateConditionFalse",
		BackgroundColor: "#EE4400",
		CSSSelector:     "condition_false",
		Label:           "State is 'False'",
	},
	RevisionStateConditionUnknown: {
		EnumKeyName:     "RevisionStateConditionUnknown",
		BackgroundColor: "#663366",
		CSSSelector:     "condition_unknown",
		Label:           "State is 'Unknown'",
	},
	RevisionStateOperationStarted: {
		EnumKeyName:     "RevisionStateOperationStarted",
		BackgroundColor: "#004400",
		CSSSelector:     "operation_started",
		Label:           "Processing operation",
	},
	RevisionStateOperationFinished: {
		EnumKeyName:     "RevisionStateOperationFinished",
		BackgroundColor: "#333333",
		CSSSelector:     "operation_finished",
		Label:           "Operation is finished",
	},
	RevisionStateContainerWaiting: {
		EnumKeyName:     "RevisionStateContainerWaiting",
		BackgroundColor: "#997700",
		CSSSelector:     "container_waiting",
		Label:           "Waiting for starting container",
	},
	RevisionStateContainerRunningNonReady: {
		EnumKeyName:     "RevisionStateContainerRunningNonReady",
		BackgroundColor: "#EE4400",
		CSSSelector:     "container_running_non_ready",
		Label:           "Container is not ready",
	},
	RevisionStateContainerRunningReady: {
		EnumKeyName:     "RevisionStateContainerRunningReady",
		BackgroundColor: "#007700",
		CSSSelector:     "container_running_ready",
		Label:           "Container is ready",
	},
	RevisionStateContainerTerminatedWithSuccess: {
		EnumKeyName:     "RevisionStateContainerTerminatedWithSuccess",
		BackgroundColor: "#113333",
		CSSSelector:     "container_terminated_success",
		Label:           "Container exited with healthy exit code",
	},
	RevisionStateContainerTerminatedWithError: {
		EnumKeyName:     "RevisionStateContainerTerminatedWithError",
		BackgroundColor: "#331111",
		CSSSelector:     "container_terminated_error",
		Label:           "Container exited with errornous exit code",
	},

	RevisionStateComposerTiScheduled: {
		EnumKeyName:     "RevisionStateComposerTiScheduled",
		BackgroundColor: "#d1b48c",
		CSSSelector:     "composer_ti_scheduled",
		Label:           "Task instance is scheduled",
	},
	RevisionStateComposerTiQueued: {
		EnumKeyName:     "RevisionStateComposerTiQueued",
		BackgroundColor: "#808080",
		CSSSelector:     "composer_ti_queued",
		Label:           "Task instance is queued",
	},
	RevisionStateComposerTiRunning: {
		EnumKeyName:     "RevisionStateComposerTiRunning",
		BackgroundColor: "#00ff01",
		CSSSelector:     "composer_ti_running",
		Label:           "Task instance is running",
	},
	RevisionStateComposerTiDeferred: {
		EnumKeyName:     "RevisionStateComposerTiDeferred",
		BackgroundColor: "#9470dc",
		CSSSelector:     "composer_ti_deferred",
		Label:           "Task instance is deferrd",
	},
	RevisionStateComposerTiSuccess: {
		EnumKeyName:     "RevisionStateComposerTiSuccess",
		BackgroundColor: "#008001",
		CSSSelector:     "composer_ti_success",
		Label:           "Task instance completed with success state",
	},
	RevisionStateComposerTiFailed: {
		EnumKeyName:     "RevisionStateComposerTiFailed",
		BackgroundColor: "#fe0000",
		CSSSelector:     "composer_ti_failed",
		Label:           "Task instance completed with errournous state",
	},
	RevisionStateComposerTiUpForRetry: {
		EnumKeyName:     "RevisionStateComposerTiUpForRetry",
		BackgroundColor: "#fed700",
		CSSSelector:     "composer_ti_up_for_retry",
		Label:           "Task instance is waiting for next retry",
	},
	RevisionStateComposerTiRestarting: {
		EnumKeyName:     "RevisionStateComposerTiRestarting",
		BackgroundColor: "#ee82ef",
		CSSSelector:     "composer_ti_restarting",
		Label:           "Task instance is being restarted",
	},
	RevisionStateComposerTiRemoved: {
		EnumKeyName:     "RevisionStateComposerTiRemoved",
		BackgroundColor: "#d3d3d3",
		CSSSelector:     "composer_ti_removed",
		Label:           "Task instance is removed",
	},
	RevisionStateComposerTiUpstreamFailed: {
		EnumKeyName:     "RevisionStateComposerTiUpstreamFailed",
		BackgroundColor: "#ffa11b",
		CSSSelector:     "composer_ti_upstream_failed",
		Label:           "Upstream of this task is failed",
	},
	RevisionStateComposerTiZombie: {
		EnumKeyName:     "RevisionStateComposerTiZombie",
		BackgroundColor: "#4b0082",
		CSSSelector:     "composer_ti_zombie",
		Label:           "Task instance is being zombie",
	},
	RevisionStateComposerTiUpForReschedule: {
		EnumKeyName:     "RevisionStateComposerTiUpForReschedule",
		BackgroundColor: "#808080",
		CSSSelector:     "composer_ti_up_for_reschedule",
		Label:           "Task instance is waiting for being rescheduled",
	},
	RevisionStateDeleting: {
		EnumKeyName:     "RevisionStateDeleting",
		BackgroundColor: "#CC5500",
		CSSSelector:     "deleting",
		Label:           "Resource is under deleting with graceful period",
	},
	RevisionStateEndpointReady: {
		EnumKeyName:     "RevisionStateEndpointReady",
		BackgroundColor: "#004400",
		CSSSelector:     "ready",
		Label:           "Endpoint is ready",
	},
	RevisionStateEndpointUnready: {
		EnumKeyName:     "RevisionStateEndpointUnready",
		BackgroundColor: "#EE4400",
		CSSSelector:     "unready",
		Label:           "Endpoint is not ready",
	},
	RevisionStateEndpointTerminating: {
		EnumKeyName:     "RevisionStateEndpointTerminating",
		BackgroundColor: "#fed700",
		CSSSelector:     "terminating",
		Label:           "Endpoint is being terminated",
	},
	RevisionStateProvisioning: {
		EnumKeyName:     "RevisionStateProvisioning",
		BackgroundColor: "#4444ff",
		CSSSelector:     "provisioning",
		Label:           "Resource is being provisioned",
	},
	RevisionAutoscalerNoError: {
		EnumKeyName:     "RevisionAutoscalerNoError",
		BackgroundColor: "#004400",
		CSSSelector:     "autoscaler_no_error",
		Label:           "Autoscaler has no error",
	},
	RevisionAutoscalerHasErrors: {
		EnumKeyName:     "RevisionAutoscalerHasErrors",
		BackgroundColor: "#EE4400",
		CSSSelector:     "autoscaler_has_errors",
		Label:           "Autoscaler has errors",
	},
	RevisionStateConditionNotGiven: {
		EnumKeyName:     "RevisionStateConditionNotGiven",
		BackgroundColor: "#666666",
		CSSSelector:     "condition_not_given",
		Label:           "Condition is not defined at this moment",
	},
	RevisionStateConditionNoAvailableInfo: {
		EnumKeyName:     "RevisionStateConditionNoAvailableInfo",
		BackgroundColor: "#997700",
		CSSSelector:     "condition_no_available_info",
		Label:           "No enough information to show condition",
	},
	RevisionStatePodPhasePending: {
		EnumKeyName:     "RevisionStatePodPhasePending",
		BackgroundColor: "#666666",
		CSSSelector:     "pod_phase_pending",
		Label:           "Pod is pending",
	},
	RevisionStatePodPhaseScheduled: {
		EnumKeyName:     "RevisionStatePodPhaseScheduled",
		BackgroundColor: "#4444ff",
		CSSSelector:     "pod_phase_scheduled",
		Label:           "Pod is scheduled",
	},
	RevisionStatePodPhaseRunning: {
		EnumKeyName:     "RevisionStatePodPhaseRunning",
		BackgroundColor: "#004400",
		CSSSelector:     "pod_phase_running",
		Label:           "Pod is running",
	},
	RevisionStatePodPhaseSucceeded: {
		EnumKeyName:     "RevisionStatePodPhaseSucceeded",
		BackgroundColor: "#113333",
		CSSSelector:     "pod_phase_succeeded",
		Label:           "Pod is succeeded",
	},
	RevisionStatePodPhaseFailed: {
		EnumKeyName:     "RevisionStatePodPhaseFailed",
		BackgroundColor: "#331111",
		CSSSelector:     "pod_phase_failed",
		Label:           "Pod is failed",
	},
	RevisionStatePodPhaseUnknown: {
		EnumKeyName:     "RevisionStatePodPhaseUnknown",
		BackgroundColor: "#000000",
		CSSSelector:     "pod_phase_unknown",
		Label:           "Pod status is not available from current log range",
	},
	RevisionStateContainerStatusNotAvailable: {
		EnumKeyName:     "RevisionStateContainerStatusNotAvailable",
		BackgroundColor: "#666666",
		CSSSelector:     "container_status_not_available",
		Label:           "Container status is not available",
	},
	RevisionStateContainerStarted: {
		EnumKeyName:     "RevisionStateContainerStarted",
		BackgroundColor: "#997700",
		CSSSelector:     "container_started",
		Label:           "Container is started but readiness info is not available",
	},
}
View Source
var RevisionVerbs = map[RevisionVerb]RevisionVerbFrontendMetadata{
	RevisionVerbUnknown: {
		EnumKeyName:          "RevisionVerbUnknown",
		Label:                "Unknown",
		CSSSelector:          "unknown",
		LabelBackgroundColor: "#CC33CC",
	},
	RevisionVerbCreate: {
		EnumKeyName:          "RevisionVerbCreate",
		Label:                "Create",
		CSSSelector:          "create",
		LabelBackgroundColor: "#1E88E5",
	},
	RevisionVerbDelete: {
		EnumKeyName:          "RevisionVerbDelete",
		Label:                "Delete",
		CSSSelector:          "delete",
		LabelBackgroundColor: "#F54945",
	},
	RevisionVerbUpdate: {
		EnumKeyName:          "RevisionVerbUpdate",
		Label:                "Update",
		CSSSelector:          "update",
		LabelBackgroundColor: "#FDD835",
	},
	RevisionVerbPatch: {
		EnumKeyName:          "RevisionVerbPatch",
		Label:                "Patch",
		CSSSelector:          "patch",
		LabelBackgroundColor: "#FDD835",
	},
	RevisionVerbDeleteCollection: {
		EnumKeyName:          "RevisionVerbDeleteCollection",
		Label:                "DeleteCollection",
		CSSSelector:          "delete-collection",
		LabelBackgroundColor: "#F54945",
	},
	RevisionVerbReady: {
		EnumKeyName:          "RevisionVerbReady",
		Label:                "Ready",
		CSSSelector:          "ready",
		LabelBackgroundColor: "#22CC22",
	},
	RevisionVerbNonReady: {
		EnumKeyName:          "RevisionVerbNonReady",
		Label:                "NonReady",
		CSSSelector:          "non-ready",
		LabelBackgroundColor: "#FF7700",
	},
	RevisionVerbTerminating: {
		EnumKeyName:          "RevisionVerbTerminating",
		Label:                "Terminating",
		CSSSelector:          "terminating",
		LabelBackgroundColor: "#FFAA00",
	},
	RevisionVerbOperationStart: {
		EnumKeyName:          "RevisionVerbOperationStart",
		Label:                "Start",
		CSSSelector:          "operation-start",
		LabelBackgroundColor: "#22CC22",
	},
	RevisionVerbOperationFinish: {
		EnumKeyName:          "RevisionVerbOperationFinish",
		Label:                "Finish",
		CSSSelector:          "operation-finish",
		LabelBackgroundColor: "#9999CC",
	},
	RevisionVerbStatusUnknown: {
		EnumKeyName:          "RevisionVerbStatusUnknown",
		Label:                "Condition(Unknown)",
		CSSSelector:          "status-unknown",
		LabelBackgroundColor: "#AA66AA",
	},
	RevisionVerbStatusTrue: {
		EnumKeyName:          "RevisionVerbStatusTrue",
		Label:                "Condition(True)",
		CSSSelector:          "status-true",
		LabelBackgroundColor: "#22CC22",
	},
	RevisionVerbStatusFalse: {
		EnumKeyName:          "RevisionVerbStatusFalse",
		Label:                "Condition(False)",
		CSSSelector:          "status-false",
		LabelBackgroundColor: "#FF7700",
	},
	RevisionVerbContainerWaiting: {
		EnumKeyName:          "RevisionVerbContainerWaiting",
		Label:                "Waiting",
		LabelBackgroundColor: "#FDD835",
		CSSSelector:          "container-waiting",
	},
	RevisionVerbContainerReady: {
		EnumKeyName:          "RevisionVerbContainerReady",
		Label:                "Ready",
		LabelBackgroundColor: "#22CC22",
		CSSSelector:          "container-ready",
	},
	RevisionVerbContainerNonReady: {
		EnumKeyName:          "RevisionVerbContainerNonReady",
		Label:                "NonReady",
		LabelBackgroundColor: "#FF7700",
		CSSSelector:          "container-non-ready",
	},
	RevisionVerbContainerSuccess: {
		EnumKeyName:          "RevisionVerbContainerSuccess",
		Label:                "Success",
		LabelBackgroundColor: "#007700",
		CSSSelector:          "container-success",
	},
	RevisionVerbContainerError: {
		EnumKeyName:          "RevisionVerbContainerError",
		Label:                "Error",
		LabelBackgroundColor: "#A51915",
		CSSSelector:          "container-error",
	},
	RevisionVerbComposerTaskInstanceScheduled: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceScheduled",
		Label:                "Scheduled",
		LabelBackgroundColor: "#1E88E5",
		CSSSelector:          "composer-taskinstance-scheduled",
	},
	RevisionVerbComposerTaskInstanceQueued: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceQueued",
		Label:                "Queued",
		LabelBackgroundColor: "#22CC22",
		CSSSelector:          "composer-taskinstance-queued",
	},
	RevisionVerbComposerTaskInstanceRunning: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceRunning",
		Label:                "Running",
		LabelBackgroundColor: "#22CC22",
		CSSSelector:          "composer-taskinstance-running",
	},
	RevisionVerbComposerTaskInstanceUpForRetry: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceUpForRetry",
		Label:                "UpForRetry",
		LabelBackgroundColor: "#FF7700",
		CSSSelector:          "composer-taskinstance-upforretry",
	},
	RevisionVerbComposerTaskInstanceSuccess: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceSuccess",
		Label:                "Success",
		LabelBackgroundColor: "#22CC22",
		CSSSelector:          "composer-taskinstance-success",
	},
	RevisionVerbComposerTaskInstanceFailed: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceFailed",
		Label:                "Failed",
		LabelBackgroundColor: "#A51915",
		CSSSelector:          "composer-taskinstance-failed",
	},
	RevisionVerbComposerTaskInstanceDeferred: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceDeferred",
		Label:                "Deferred",
		LabelBackgroundColor: "#9470DC",
		CSSSelector:          "composer-taskinstance-deferred",
	},
	RevisionVerbComposerTaskInstanceUpForReschedule: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceUpForReschedule",
		Label:                "UpForReschedule",
		LabelBackgroundColor: "#FF7700",
		CSSSelector:          "composer-taskinstance-upforreschedule",
	},
	RevisionVerbComposerTaskInstanceRemoved: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceRemoved",
		Label:                "Removed",
		LabelBackgroundColor: "#A51915",
		CSSSelector:          "composer-taskinstance-removed",
	},
	RevisionVerbComposerTaskInstanceUpstreamFailed: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceUpstreamFailed",
		Label:                "UpstreamFailed",
		LabelBackgroundColor: "#A51915",
		CSSSelector:          "composer-taskinstance-upstreamfailed",
	},
	RevisionVerbComposerTaskInstanceZombie: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceZombie",
		Label:                "Zombie",
		LabelBackgroundColor: "#696969",
		CSSSelector:          "composer-taskinstance-zombie",
	},
	RevisionVerbComposerTaskInstanceStats: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceStats",
		Label:                "Stats",
		LabelBackgroundColor: "#DDDDDD",
		CSSSelector:          "composer-taskinstance-stats",
	},
	RevisionVerbComposerTaskInstanceUnimplemented: {
		EnumKeyName:          "RevisionVerbComposerTaskInstanceUnimplemented",
		Label:                "Unimplemented",
		LabelBackgroundColor: "#DDDDDD",
		CSSSelector:          "composer-taskinstance-unimplemented",
	},
}
View Source
var Severities = map[Severity]SeverityFrontendMetadata{
	SeverityUnknown: {
		EnumKeyName:     "SeverityUnknown",
		Label:           "UNKNOWN",
		LabelColor:      "#FFFFFF",
		BackgroundColor: "#000000",
		BorderColor:     "#AAAAAA",
	},
	SeverityInfo: {
		EnumKeyName:     "SeverityInfo",
		Label:           "INFO",
		LabelColor:      "#FFFFFF",
		BackgroundColor: "#0000FF",
		BorderColor:     "#1E88E5",
	},
	SeverityWarning: {
		EnumKeyName:     "SeverityWarning",
		Label:           "WARNING",
		LabelColor:      "#FFFFFF",
		BackgroundColor: "#FFAA44",
		BorderColor:     "#FDD835",
	},
	SeverityError: {
		EnumKeyName:     "SeverityError",
		Label:           "ERROR",
		LabelColor:      "#FFFFFF",
		BackgroundColor: "#FF3935",
		BorderColor:     "#FF8888",
	},
	SeverityFatal: {
		EnumKeyName:     "SeverityFatal",
		Label:           "FATAL",
		LabelColor:      "#FFFFFF",
		BackgroundColor: "#AA66AA",
		BorderColor:     "#FF99FF",
	},
}

Functions

This section is empty.

Types

type GeneratableAliasTimelineInfo

type GeneratableAliasTimelineInfo struct {
	AliasedTimelineRelationship ParentRelationship
	SourceLogType               LogType
	Description                 string
}

type GeneratableEventInfo

type GeneratableEventInfo struct {
	SourceLogType LogType
	Description   string
}

type GeneratableRevisionInfo

type GeneratableRevisionInfo struct {
	State         RevisionState
	SourceLogType LogType
	Description   string
}

type LogType

type LogType int
const (
	LogTypeUnknown               LogType = 0
	LogTypeEvent                 LogType = 1
	LogTypeAudit                 LogType = 2
	LogTypeContainer             LogType = 3
	LogTypeNode                  LogType = 4
	LogTypeGkeAudit              LogType = 5
	LogTypeComputeApi            LogType = 6
	LogTypeMulticloudAPI         LogType = 7
	LogTypeOnPremAPI             LogType = 8
	LogTypeNetworkAPI            LogType = 9
	LogTypeAutoscaler            LogType = 10
	LogTypeComposerEnvironment   LogType = 11
	LogTypeControlPlaneComponent LogType = 12
	LogTypeSerialPort            LogType = 13

	LogTypeCSMAccessLog LogType = 14 // Added since 0.49

)

type LogTypeFrontendMetadata

type LogTypeFrontendMetadata struct {
	// EnumKeyName is the name of this enum value. Must match with the enum key.
	EnumKeyName string
	// Label string shown on frontnend to indicate the log type.
	Label string
	// Background color of the label on log pane.
	LabelBackgroundColor string
}

type ParentRelationship

type ParentRelationship int
const (
	RelationshipChild                 ParentRelationship = 0
	RelationshipResourceCondition     ParentRelationship = 1
	RelationshipOperation             ParentRelationship = 2
	RelationshipEndpointSlice         ParentRelationship = 3
	RelationshipContainer             ParentRelationship = 4
	RelationshipNodeComponent         ParentRelationship = 5
	RelationshipOwnerReference        ParentRelationship = 6
	RelationshipPodBinding            ParentRelationship = 7 // Deprecated and replaced by PodPhase
	RelationshipNetworkEndpointGroup  ParentRelationship = 8
	RelationshipManagedInstanceGroup  ParentRelationship = 9
	RelationshipControlPlaneComponent ParentRelationship = 10
	RelationshipSerialPort            ParentRelationship = 11
	RelationshipAirflowTaskInstance   ParentRelationship = 12
	RelationshipCSMAccessLog          ParentRelationship = 13 // Added since 0.49
	RelationshipPodPhase              ParentRelationship = 14 // Added since 0.50

)

type ParentRelationshipFrontendMetadata

type ParentRelationshipFrontendMetadata struct {
	// Visible is a flag if this relationship is visible as a chip left of timeline name.
	Visible bool
	// EnumKeyName is the name of enum exactly matching with the constant variable defined in this file.
	EnumKeyName string
	// Label is a short name shown on frontend as the chip on the left of timeline name.
	Label string
	// Hint explains the meaning of this timeline. This is shown as the tooltip on front end.
	Hint                 string
	LabelColor           string
	LabelBackgroundColor string
	SortPriority         int

	// LongName is a descriptive name of the ralationship. This value is used in the document.
	LongName string
	// Description is a description of this timeline ralationship. This value is used in the document.
	Description string
	// GeneratableEvents contains the list of possible event types put on a timeline with the relationship type. This field is used for document generation.
	GeneratableEvents []GeneratableEventInfo
	// GeneratableRevisions contains the list of possible revision types put on a timeline with the relationship type. This field is used for document generation.
	GeneratableRevisions []GeneratableRevisionInfo
	// GeneratableAliasTimelineInfo contains the list of possible target timelines aliased from the timeline of this relationship. This field is used for document generation.
	GeneratableAliasTimelineInfo []GeneratableAliasTimelineInfo
}

parentRelationshipFrontendMetadata is a type defined for each parent relationship types.

type RevisionState

type RevisionState int
const (
	RevisionStateInferred RevisionState = 0
	RevisionStateExisting RevisionState = 1
	RevisionStateDeleted  RevisionState = 2

	RevisionStateConditionTrue    RevisionState = 3
	RevisionStateConditionFalse   RevisionState = 4
	RevisionStateConditionUnknown RevisionState = 5

	RevisionStateOperationStarted  RevisionState = 6
	RevisionStateOperationFinished RevisionState = 7

	RevisionStateContainerWaiting               RevisionState = 8
	RevisionStateContainerRunningNonReady       RevisionState = 9
	RevisionStateContainerRunningReady          RevisionState = 10
	RevisionStateContainerTerminatedWithSuccess RevisionState = 11
	RevisionStateContainerTerminatedWithError   RevisionState = 12

	// Cloud Composer
	RevisionStateComposerTiScheduled       RevisionState = 13
	RevisionStateComposerTiQueued          RevisionState = 14
	RevisionStateComposerTiRunning         RevisionState = 15
	RevisionStateComposerTiDeferred        RevisionState = 16
	RevisionStateComposerTiSuccess         RevisionState = 17
	RevisionStateComposerTiFailed          RevisionState = 18
	RevisionStateComposerTiUpForRetry      RevisionState = 19
	RevisionStateComposerTiRestarting      RevisionState = 20
	RevisionStateComposerTiRemoved         RevisionState = 21
	RevisionStateComposerTiUpstreamFailed  RevisionState = 22
	RevisionStateComposerTiZombie          RevisionState = 23
	RevisionStateComposerTiUpForReschedule RevisionState = 24

	RevisionStateDeleting            RevisionState = 25 // Added since 0.41
	RevisionStateEndpointReady       RevisionState = 26
	RevisionStateEndpointTerminating RevisionState = 27
	RevisionStateEndpointUnready     RevisionState = 28

	RevisionStateProvisioning RevisionState = 29 // Added since 0.42

	RevisionAutoscalerNoError   RevisionState = 30 // Added since 0.49
	RevisionAutoscalerHasErrors RevisionState = 31

	RevisionStateConditionNotGiven        RevisionState = 32 // Added since 0.50
	RevisionStateConditionNoAvailableInfo RevisionState = 33 // Added since 0.50

	RevisionStatePodPhasePending   RevisionState = 34 // Added since 0.50
	RevisionStatePodPhaseScheduled RevisionState = 35 // Added since 0.50
	RevisionStatePodPhaseRunning   RevisionState = 36 // Added since 0.50
	RevisionStatePodPhaseSucceeded RevisionState = 37 // Added since 0.50
	RevisionStatePodPhaseFailed    RevisionState = 38 // Added since 0.50
	RevisionStatePodPhaseUnknown   RevisionState = 39 // Added since 0.50

	RevisionStateContainerStatusNotAvailable RevisionState = 40 // Added since 0.50
	RevisionStateContainerStarted            RevisionState = 41 // Added since 0.50

)

type RevisionStateFrontendMetadata

type RevisionStateFrontendMetadata struct {
	// EnumKeyName is the name of this enum value. Must match with the enum key.
	EnumKeyName string

	// CSSSelector is used for CSS class name. it must be valid as the css class name
	CSSSelector string

	// Label is human readable text explaining this state.
	Label string

	// BackgroundColor is used for rendering the revision rectangles in timeline view.
	BackgroundColor string
}

type RevisionVerb

type RevisionVerb int
const (
	RevisionVerbUnknown          RevisionVerb = 0
	RevisionVerbCreate           RevisionVerb = 1
	RevisionVerbDelete           RevisionVerb = 2
	RevisionVerbUpdate           RevisionVerb = 3
	RevisionVerbPatch            RevisionVerb = 4
	RevisionVerbDeleteCollection RevisionVerb = 5

	RevisionVerbReady    RevisionVerb = 6
	RevisionVerbNonReady RevisionVerb = 7

	RevisionVerbOperationStart  RevisionVerb = 8
	RevisionVerbOperationFinish RevisionVerb = 9

	RevisionVerbStatusUnknown RevisionVerb = 10
	RevisionVerbStatusTrue    RevisionVerb = 11
	RevisionVerbStatusFalse   RevisionVerb = 12

	RevisionVerbContainerWaiting  RevisionVerb = 13
	RevisionVerbContainerReady    RevisionVerb = 14
	RevisionVerbContainerNonReady RevisionVerb = 15
	RevisionVerbContainerSuccess  RevisionVerb = 16
	RevisionVerbContainerError    RevisionVerb = 17

	RevisionVerbComposerTaskInstanceScheduled       RevisionVerb = 18
	RevisionVerbComposerTaskInstanceQueued          RevisionVerb = 19
	RevisionVerbComposerTaskInstanceRunning         RevisionVerb = 20
	RevisionVerbComposerTaskInstanceUpForRetry      RevisionVerb = 21
	RevisionVerbComposerTaskInstanceSuccess         RevisionVerb = 22
	RevisionVerbComposerTaskInstanceFailed          RevisionVerb = 23
	RevisionVerbComposerTaskInstanceDeferred        RevisionVerb = 24
	RevisionVerbComposerTaskInstanceUpForReschedule RevisionVerb = 25
	RevisionVerbComposerTaskInstanceRemoved         RevisionVerb = 26
	RevisionVerbComposerTaskInstanceUpstreamFailed  RevisionVerb = 27
	RevisionVerbComposerTaskInstanceZombie          RevisionVerb = 28
	RevisionVerbComposerTaskInstanceStats           RevisionVerb = 29
	RevisionVerbComposerTaskInstanceUnimplemented   RevisionVerb = 30

	RevisionVerbTerminating RevisionVerb = 31 // Added since 0.41 for endpoint slice

)

type RevisionVerbFrontendMetadata

type RevisionVerbFrontendMetadata struct {
	// EnumKeyName is the name of this enum value. Must match with the enum key.
	EnumKeyName string
	// Label string shown on frontnend to indicate the verb.
	Label       string
	CSSSelector string
	// Background color of the label on log pane and the diamond shape on timeline view.
	LabelBackgroundColor string
}

type Severity

type Severity int
const (
	SeverityUnknown Severity = 0
	SeverityInfo    Severity = 1
	SeverityWarning Severity = 2
	SeverityError   Severity = 3
	SeverityFatal   Severity = 4
)

type SeverityFrontendMetadata

type SeverityFrontendMetadata struct {
	// EnumKeyName is the name of this enum value. Must match with the enum key.
	EnumKeyName string
	// Label string shown on frontnend to indicate the severity.
	Label string
	// Label color used in log pane.
	LabelColor string
	// Background color of the label on log pane and the diamond shape on timeline view.
	BackgroundColor string
	// Border color of the diamond shape on timeline view.
	BorderColor string
}

Jump to

Keyboard shortcuts

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