Documentation
¶
Index ¶
- Constants
- Variables
- func ColorToHexRGB(color HDRColor4) string
- func ColorToHexRGBA(color HDRColor4) string
- type HDRColor3
- type HDRColor4
- type LogType
- type LogTypeFrontendMetadata
- type ParentRelationship
- type ParentRelationshipFrontendMetadata
- type RevisionState
- type RevisionStateFrontendMetadata
- type RevisionStateStyle
- type RevisionVerb
- type RevisionVerbFrontendMetadata
- type Severity
- type SeverityFrontendMetadata
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: mustHexToHDRColor4("#000000"), }, LogTypeEvent: { EnumKeyName: "LogTypeEvent", Label: "k8s_event", LabelBackgroundColor: mustHexToHDRColor4("#3fb549"), }, LogTypeAudit: { EnumKeyName: "LogTypeAudit", Label: "k8s_audit", LabelBackgroundColor: mustHexToHDRColor4("#000000"), }, LogTypeContainer: { EnumKeyName: "LogTypeContainer", Label: "k8s_container", LabelBackgroundColor: mustHexToHDRColor4("#fe9bab"), }, LogTypeNode: { EnumKeyName: "LogTypeNode", Label: "k8s_node", LabelBackgroundColor: mustHexToHDRColor4("#0077CC"), }, LogTypeGkeAudit: { EnumKeyName: "LogTypeGkeAudit", Label: "gke_audit", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeComputeApi: { EnumKeyName: "LogTypeComputeApi", Label: "compute_api", LabelBackgroundColor: mustHexToHDRColor4("#FFCC33"), }, LogTypeMulticloudAPI: { EnumKeyName: "LogTypeMulticloudAPI", Label: "multicloud_api", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeOnPremAPI: { EnumKeyName: "LogTypeOnPremAPI", Label: "onprem_api", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeNetworkAPI: { EnumKeyName: "LogTypeNetworkAPI", Label: "network_api", LabelBackgroundColor: mustHexToHDRColor4("#33CCFF"), }, LogTypeAutoscaler: { EnumKeyName: "LogTypeAutoscaler", Label: "autoscaler", LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), }, LogTypeComposerEnvironment: { EnumKeyName: "LogTypeComposerEnvironment", Label: "composer_environment", LabelBackgroundColor: mustHexToHDRColor4("#88AA55"), }, LogTypeControlPlaneComponent: { EnumKeyName: "LogTypeControlPlaneComponent", Label: "control_plane_component", LabelBackgroundColor: mustHexToHDRColor4("#FF3333"), }, LogTypeSerialPort: { EnumKeyName: "LogTypeSerialPort", Label: "serial_port", LabelBackgroundColor: mustHexToHDRColor4("#333333"), }, LogTypeCSMAccessLog: { EnumKeyName: "LogTypeCSMAccessLog", Label: "csm_access_log", LabelBackgroundColor: mustHexToHDRColor4("#FF8500"), }, }
View Source
var ParentRelationships = map[ParentRelationship]ParentRelationshipFrontendMetadata{ RelationshipChild: { Visible: false, EnumKeyName: "RelationshipChild", Label: "resource", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#CCCCCC"), SortPriority: 1000, Hint: "General resource lifecycle and logs", }, RelationshipResourceCondition: { Visible: true, EnumKeyName: "RelationshipResourceCondition", Label: "condition", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#4c29e8"), Hint: "Resource conditions from .status.conditions", SortPriority: 2000, }, RelationshipOperation: { Visible: true, EnumKeyName: "RelationshipOperation", Label: "operation", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#000000"), Hint: "GCP operations associated with this resource", SortPriority: 3000, }, RelationshipEndpointSlice: { Visible: true, EnumKeyName: "RelationshipEndpointSlice", Label: "endpoint", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#008000"), Hint: "Pod serving status from EndpointSlice", SortPriority: 20000, }, RelationshipContainer: { Visible: true, EnumKeyName: "RelationshipContainer", Label: "container", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#fe9bab"), Hint: "Container status and logs", SortPriority: 5000, }, RelationshipNodeComponent: { Visible: true, EnumKeyName: "RelationshipNodeComponent", Label: "node-component", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#0077CC"), Hint: "Non-containerized component on the node", SortPriority: 6000, }, RelationshipOwnerReference: { Visible: true, EnumKeyName: "RelationshipOwnerReference", Label: "owns", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#33DD88"), Hint: "Child resource from .metadata.ownerReferences", SortPriority: 7000, }, RelationshipPodBinding: { Visible: true, EnumKeyName: "RelationshipPodBinding", Label: "binds", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#FF8855"), Hint: "Pod binding subresource associated with this node", SortPriority: 8000, }, RelationshipNetworkEndpointGroup: { Visible: true, EnumKeyName: "RelationshipNetworkEndpointGroup", Label: "neg", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#A52A2A"), Hint: "Associated NEG serving status", SortPriority: 20500, }, RelationshipManagedInstanceGroup: { Visible: true, EnumKeyName: "RelationshipManagedInstanceGroup", Label: "mig", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), Hint: "MIG logs for the parent node pool", SortPriority: 10000, }, RelationshipControlPlaneComponent: { Visible: true, EnumKeyName: "RelationshipControlPlaneComponent", Label: "controlplane", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), Hint: "Control plane component of the cluster", SortPriority: 11000, }, RelationshipSerialPort: { Visible: true, EnumKeyName: "RelationshipSerialPort", Label: "serialport", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#333333"), Hint: "Serial port logs of the node", SortPriority: 1500, }, RelationshipAirflowTaskInstance: { Visible: true, EnumKeyName: "RelationshipAirflowTaskInstance", Label: "task", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#377e22"), Hint: "Airflow Task Instance execution state", SortPriority: 1501, }, RelationshipCSMAccessLog: { Visible: true, EnumKeyName: "RelationshipCSMAccessLog", Label: "csm", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF8500"), Hint: "CSM Access logs related to this resource", SortPriority: 5001, }, RelationshipPodPhase: { Visible: true, EnumKeyName: "RelationshipPodPhase", Label: "pod", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF8855"), Hint: "Pod status on the node from .status.phase", SortPriority: 8000, }, }
View Source
var RevisionStates = map[RevisionState]RevisionStateFrontendMetadata{ RevisionStateInferred: { EnumKeyName: "RevisionStateInferred", BackgroundColor: mustHexToHDRColor4("#999922"), CSSSelector: "inferred", Label: "Resource may be existing", Icon: "unknown_document", Style: RevisionStateStylePartialInfo, }, RevisionStateExisting: { EnumKeyName: "RevisionStateExisting", BackgroundColor: mustHexToHDRColor4("#0000FF"), CSSSelector: "existing", Label: "Resource is existing", Icon: "deployed_code", }, RevisionStateDeleted: { EnumKeyName: "RevisionStateDeleted", BackgroundColor: mustHexToHDRColor4("#CC0000"), CSSSelector: "deleted", Label: "Resource is deleted", Icon: "delete_forever", Style: RevisionStateStyleDeleted, }, RevisionStateConditionTrue: { EnumKeyName: "RevisionStateConditionTrue", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "condition_true", Label: "State is 'True'", Icon: "lightbulb", }, RevisionStateConditionFalse: { EnumKeyName: "RevisionStateConditionFalse", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "condition_false", Label: "State is 'False'", Icon: "light_off", }, RevisionStateConditionUnknown: { EnumKeyName: "RevisionStateConditionUnknown", BackgroundColor: mustHexToHDRColor4("#663366"), CSSSelector: "condition_unknown", Label: "State is 'Unknown'", Icon: "siren_question", }, RevisionStateOperationStarted: { EnumKeyName: "RevisionStateOperationStarted", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "operation_started", Label: "Processing operation", Icon: "change_circle", }, RevisionStateOperationFinished: { EnumKeyName: "RevisionStateOperationFinished", BackgroundColor: mustHexToHDRColor4("#333333"), CSSSelector: "operation_finished", Label: "Operation is finished", Icon: "check_circle", Style: RevisionStateStyleDeleted, }, RevisionStateContainerWaiting: { EnumKeyName: "RevisionStateContainerWaiting", BackgroundColor: mustHexToHDRColor4("#4444ff"), CSSSelector: "container_waiting", Label: "Waiting for starting container", Icon: "deployed_code_history", Style: RevisionStateStyleDeleted, }, RevisionStateContainerRunningNonReady: { EnumKeyName: "RevisionStateContainerRunningNonReady", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "container_running_non_ready", Label: "Container is not ready", Icon: "heart_broken", }, RevisionStateContainerRunningReady: { EnumKeyName: "RevisionStateContainerRunningReady", BackgroundColor: mustHexToHDRColor4("#007700"), CSSSelector: "container_running_ready", Label: "Container is ready", Icon: "heart_check", }, RevisionStateContainerTerminatedWithSuccess: { EnumKeyName: "RevisionStateContainerTerminatedWithSuccess", BackgroundColor: mustHexToHDRColor4("#113333"), CSSSelector: "container_terminated_success", Label: "Container exited with healthy exit code", Style: RevisionStateStyleDeleted, Icon: "check_circle", }, RevisionStateContainerTerminatedWithError: { EnumKeyName: "RevisionStateContainerTerminatedWithError", BackgroundColor: mustHexToHDRColor4("#551111"), CSSSelector: "container_terminated_error", Label: "Container exited with erroneous exit code", Style: RevisionStateStyleDeleted, Icon: "error", }, RevisionStateComposerTiScheduled: { EnumKeyName: "RevisionStateComposerTiScheduled", BackgroundColor: mustHexToHDRColor4("#d1b48c"), CSSSelector: "composer_ti_scheduled", Label: "Task instance is scheduled", Icon: "schedule", }, RevisionStateComposerTiQueued: { EnumKeyName: "RevisionStateComposerTiQueued", BackgroundColor: mustHexToHDRColor4("#808080"), CSSSelector: "composer_ti_queued", Label: "Task instance is queued", Icon: "transition_push", }, RevisionStateComposerTiRunning: { EnumKeyName: "RevisionStateComposerTiRunning", BackgroundColor: mustHexToHDRColor4("#00ff01"), CSSSelector: "composer_ti_running", Label: "Task instance is running", Icon: "directions_run", }, RevisionStateComposerTiDeferred: { EnumKeyName: "RevisionStateComposerTiDeferred", BackgroundColor: mustHexToHDRColor4("#9470dc"), CSSSelector: "composer_ti_deferred", Label: "Task instance is deferred", Icon: "pause", }, RevisionStateComposerTiSuccess: { EnumKeyName: "RevisionStateComposerTiSuccess", BackgroundColor: mustHexToHDRColor4("#008001"), CSSSelector: "composer_ti_success", Label: "Task instance completed with success state", Icon: "check", }, RevisionStateComposerTiFailed: { EnumKeyName: "RevisionStateComposerTiFailed", BackgroundColor: mustHexToHDRColor4("#fe0000"), CSSSelector: "composer_ti_failed", Label: "Task instance completed with erroneous state", Icon: "exclamation", }, RevisionStateComposerTiUpForRetry: { EnumKeyName: "RevisionStateComposerTiUpForRetry", BackgroundColor: mustHexToHDRColor4("#fed700"), CSSSelector: "composer_ti_up_for_retry", Label: "Task instance is waiting for next retry", Icon: "camping", }, RevisionStateComposerTiRestarting: { EnumKeyName: "RevisionStateComposerTiRestarting", BackgroundColor: mustHexToHDRColor4("#ee82ef"), CSSSelector: "composer_ti_restarting", Label: "Task instance is restarting", Icon: "restart_alt", }, RevisionStateComposerTiRemoved: { EnumKeyName: "RevisionStateComposerTiRemoved", BackgroundColor: mustHexToHDRColor4("#d3d3d3"), CSSSelector: "composer_ti_removed", Label: "Task instance is removed", Icon: "waving_hand", }, RevisionStateComposerTiUpstreamFailed: { EnumKeyName: "RevisionStateComposerTiUpstreamFailed", BackgroundColor: mustHexToHDRColor4("#ffa11b"), CSSSelector: "composer_ti_upstream_failed", Label: "Upstream task has failed", Icon: "falling", }, RevisionStateComposerTiZombie: { EnumKeyName: "RevisionStateComposerTiZombie", BackgroundColor: mustHexToHDRColor4("#4b0082"), CSSSelector: "composer_ti_zombie", Label: "Task instance is a zombie", Icon: "skull", }, RevisionStateComposerTiUpForReschedule: { EnumKeyName: "RevisionStateComposerTiUpForReschedule", BackgroundColor: mustHexToHDRColor4("#808080"), CSSSelector: "composer_ti_up_for_reschedule", Label: "Task instance is waiting to be rescheduled", Icon: "history", }, RevisionStateDeleting: { EnumKeyName: "RevisionStateDeleting", BackgroundColor: mustHexToHDRColor4("#CC5500"), CSSSelector: "deleting", Label: "Resource is under deleting with graceful period", Icon: "auto_delete", }, RevisionStateEndpointReady: { EnumKeyName: "RevisionStateEndpointReady", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "ready", Label: "Endpoint is ready", Icon: "heart_check", }, RevisionStateEndpointUnready: { EnumKeyName: "RevisionStateEndpointUnready", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "unready", Label: "Endpoint is not ready", Icon: "heart_broken", }, RevisionStateEndpointTerminating: { EnumKeyName: "RevisionStateEndpointTerminating", BackgroundColor: mustHexToHDRColor4("#cea700"), CSSSelector: "terminating", Label: "Endpoint is being terminated", Icon: "auto_delete", }, RevisionStateProvisioning: { EnumKeyName: "RevisionStateProvisioning", BackgroundColor: mustHexToHDRColor4("#6666ff"), CSSSelector: "provisioning", Label: "Resource is being provisioned", Icon: "deployed_code_history", }, RevisionAutoscalerNoError: { EnumKeyName: "RevisionAutoscalerNoError", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "autoscaler_no_error", Label: "Autoscaler has no error", Icon: "heart_check", }, RevisionAutoscalerHasErrors: { EnumKeyName: "RevisionAutoscalerHasErrors", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "autoscaler_has_errors", Label: "Autoscaler has errors", Icon: "heart_broken", }, RevisionStateConditionNotGiven: { EnumKeyName: "RevisionStateConditionNotGiven", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "condition_not_given", Label: "Condition is not defined at this moment", Icon: "select", Style: RevisionStateStyleDeleted, }, RevisionStateConditionNoAvailableInfo: { EnumKeyName: "RevisionStateConditionNoAvailableInfo", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "condition_no_available_info", Label: "No enough information to show condition", Icon: "unknown_document", }, RevisionStatePodPhasePending: { EnumKeyName: "RevisionStatePodPhasePending", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "pod_phase_pending", Label: "Pod is pending", Icon: "hourglass_empty", }, RevisionStatePodPhaseScheduled: { EnumKeyName: "RevisionStatePodPhaseScheduled", BackgroundColor: mustHexToHDRColor4("#4444ff"), CSSSelector: "pod_phase_scheduled", Label: "Pod is scheduled", Icon: "schedule", }, RevisionStatePodPhaseRunning: { EnumKeyName: "RevisionStatePodPhaseRunning", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "pod_phase_running", Label: "Pod is running", Icon: "motion_play", }, RevisionStatePodPhaseSucceeded: { EnumKeyName: "RevisionStatePodPhaseSucceeded", BackgroundColor: mustHexToHDRColor4("#113333"), CSSSelector: "pod_phase_succeeded", Label: "Pod is succeeded", Icon: "check_circle", Style: RevisionStateStyleDeleted, }, RevisionStatePodPhaseFailed: { EnumKeyName: "RevisionStatePodPhaseFailed", BackgroundColor: mustHexToHDRColor4("#331111"), CSSSelector: "pod_phase_failed", Label: "Pod is failed", Icon: "error", Style: RevisionStateStyleDeleted, }, RevisionStatePodPhaseUnknown: { EnumKeyName: "RevisionStatePodPhaseUnknown", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "pod_phase_unknown", Label: "Pod status is not available from current log range", Style: RevisionStateStylePartialInfo, Icon: "unknown_document", }, RevisionStateContainerStatusNotAvailable: { EnumKeyName: "RevisionStateContainerStatusNotAvailable", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "container_status_not_available", Label: "Container status is not available", Style: RevisionStateStylePartialInfo, Icon: "unknown_document", }, RevisionStateContainerStarted: { EnumKeyName: "RevisionStateContainerStarted", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "container_started", Label: "Container is started but readiness info is not available", Style: RevisionStateStylePartialInfo, Icon: "siren_question", }, RevisionStateComposerTiSkipped: { EnumKeyName: "RevisionStateComposerTiSkipped", BackgroundColor: mustHexToHDRColor4("#e60076"), CSSSelector: "composer_ti_skipped", Label: "Task instance is skipped", Icon: "step_over", }, }
View Source
var RevisionVerbs = map[RevisionVerb]RevisionVerbFrontendMetadata{ RevisionVerbUnknown: { EnumKeyName: "RevisionVerbUnknown", Label: "Unknown", CSSSelector: "unknown", LabelBackgroundColor: mustHexToHDRColor4("#CC33CC"), }, RevisionVerbCreate: { EnumKeyName: "RevisionVerbCreate", Label: "Create", CSSSelector: "create", LabelBackgroundColor: mustHexToHDRColor4("#1E88E5"), }, RevisionVerbDelete: { EnumKeyName: "RevisionVerbDelete", Label: "Delete", CSSSelector: "delete", LabelBackgroundColor: mustHexToHDRColor4("#F54945"), }, RevisionVerbUpdate: { EnumKeyName: "RevisionVerbUpdate", Label: "Update", CSSSelector: "update", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), }, RevisionVerbPatch: { EnumKeyName: "RevisionVerbPatch", Label: "Patch", CSSSelector: "patch", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), }, RevisionVerbDeleteCollection: { EnumKeyName: "RevisionVerbDeleteCollection", Label: "DeleteCollection", CSSSelector: "delete-collection", LabelBackgroundColor: mustHexToHDRColor4("#F54945"), }, RevisionVerbReady: { EnumKeyName: "RevisionVerbReady", Label: "Ready", CSSSelector: "ready", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbNonReady: { EnumKeyName: "RevisionVerbNonReady", Label: "NonReady", CSSSelector: "non-ready", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), }, RevisionVerbTerminating: { EnumKeyName: "RevisionVerbTerminating", Label: "Terminating", CSSSelector: "terminating", LabelBackgroundColor: mustHexToHDRColor4("#FFAA00"), }, RevisionVerbOperationStart: { EnumKeyName: "RevisionVerbOperationStart", Label: "Start", CSSSelector: "operation-start", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbOperationFinish: { EnumKeyName: "RevisionVerbOperationFinish", Label: "Finish", CSSSelector: "operation-finish", LabelBackgroundColor: mustHexToHDRColor4("#9999CC"), }, RevisionVerbStatusUnknown: { EnumKeyName: "RevisionVerbStatusUnknown", Label: "Condition(Unknown)", CSSSelector: "status-unknown", LabelBackgroundColor: mustHexToHDRColor4("#AA66AA"), }, RevisionVerbStatusTrue: { EnumKeyName: "RevisionVerbStatusTrue", Label: "Condition(True)", CSSSelector: "status-true", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbStatusFalse: { EnumKeyName: "RevisionVerbStatusFalse", Label: "Condition(False)", CSSSelector: "status-false", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), }, RevisionVerbContainerWaiting: { EnumKeyName: "RevisionVerbContainerWaiting", Label: "Waiting", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), CSSSelector: "container-waiting", }, RevisionVerbContainerReady: { EnumKeyName: "RevisionVerbContainerReady", Label: "Ready", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "container-ready", }, RevisionVerbContainerNonReady: { EnumKeyName: "RevisionVerbContainerNonReady", Label: "NonReady", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "container-non-ready", }, RevisionVerbContainerSuccess: { EnumKeyName: "RevisionVerbContainerSuccess", Label: "Success", LabelBackgroundColor: mustHexToHDRColor4("#007700"), CSSSelector: "container-success", }, RevisionVerbContainerError: { EnumKeyName: "RevisionVerbContainerError", Label: "Error", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "container-error", }, RevisionVerbComposerTaskInstanceScheduled: { EnumKeyName: "RevisionVerbComposerTaskInstanceScheduled", Label: "Scheduled", LabelBackgroundColor: mustHexToHDRColor4("#1E88E5"), CSSSelector: "composer-taskinstance-scheduled", }, RevisionVerbComposerTaskInstanceQueued: { EnumKeyName: "RevisionVerbComposerTaskInstanceQueued", Label: "Queued", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-queued", }, RevisionVerbComposerTaskInstanceRunning: { EnumKeyName: "RevisionVerbComposerTaskInstanceRunning", Label: "Running", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-running", }, RevisionVerbComposerTaskInstanceUpForRetry: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpForRetry", Label: "UpForRetry", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "composer-taskinstance-upforretry", }, RevisionVerbComposerTaskInstanceSuccess: { EnumKeyName: "RevisionVerbComposerTaskInstanceSuccess", Label: "Success", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-success", }, RevisionVerbComposerTaskInstanceFailed: { EnumKeyName: "RevisionVerbComposerTaskInstanceFailed", Label: "Failed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-failed", }, RevisionVerbComposerTaskInstanceDeferred: { EnumKeyName: "RevisionVerbComposerTaskInstanceDeferred", Label: "Deferred", LabelBackgroundColor: mustHexToHDRColor4("#9470DC"), CSSSelector: "composer-taskinstance-deferred", }, RevisionVerbComposerTaskInstanceUpForReschedule: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpForReschedule", Label: "UpForReschedule", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "composer-taskinstance-upforreschedule", }, RevisionVerbComposerTaskInstanceRemoved: { EnumKeyName: "RevisionVerbComposerTaskInstanceRemoved", Label: "Removed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-removed", }, RevisionVerbComposerTaskInstanceUpstreamFailed: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpstreamFailed", Label: "UpstreamFailed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-upstreamfailed", }, RevisionVerbComposerTaskInstanceZombie: { EnumKeyName: "RevisionVerbComposerTaskInstanceZombie", Label: "Zombie", LabelBackgroundColor: mustHexToHDRColor4("#696969"), CSSSelector: "composer-taskinstance-zombie", }, RevisionVerbComposerTaskInstanceStats: { EnumKeyName: "RevisionVerbComposerTaskInstanceStats", Label: "Stats", LabelBackgroundColor: mustHexToHDRColor4("#DDDDDD"), CSSSelector: "composer-taskinstance-stats", }, RevisionVerbComposerTaskInstanceUnimplemented: { EnumKeyName: "RevisionVerbComposerTaskInstanceUnimplemented", Label: "Unimplemented", LabelBackgroundColor: mustHexToHDRColor4("#DDDDDD"), CSSSelector: "composer-taskinstance-unimplemented", }, RevisionVerbComposerTaskInstanceSkipped: { EnumKeyName: "RevisionVerbComposerTaskInstanceSkipped", Label: "Skipped", LabelBackgroundColor: mustHexToHDRColor4("#e60076"), CSSSelector: "composer-taskinstance-skipped", }, }
View Source
var Severities = map[Severity]SeverityFrontendMetadata{ SeverityUnknown: { EnumKeyName: "SeverityUnknown", Label: "UNKNOWN", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#000000"), BorderColor: mustHexToHDRColor4("#AAAAAA"), }, SeverityInfo: { EnumKeyName: "SeverityInfo", Label: "INFO", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#0000FF"), BorderColor: mustHexToHDRColor4("#1E88E5"), }, SeverityWarning: { EnumKeyName: "SeverityWarning", Label: "WARNING", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#FFAA44"), BorderColor: mustHexToHDRColor4("#FDD835"), }, SeverityError: { EnumKeyName: "SeverityError", Label: "ERROR", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#FF3935"), BorderColor: mustHexToHDRColor4("#FF8888"), }, SeverityFatal: { EnumKeyName: "SeverityFatal", Label: "FATAL", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#AA66AA"), BorderColor: mustHexToHDRColor4("#FF99FF"), }, }
Functions ¶
func ColorToHexRGB ¶ added in v0.51.0
ColorToHexRGB converts HDRColor4 to sRGB hex.
func ColorToHexRGBA ¶ added in v0.51.0
ColorToHexRGBA converts HDRColor4 to sRGB hex with alpha.
Types ¶
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 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 HDRColor4
LabelBackgroundColor HDRColor4
SortPriority int
}
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 RevisionStateComposerTiSkipped RevisionState = 42 // Added since 0.53 )
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 HDRColor4
// Icon is used for rendering the icon in timeline view.
Icon string
// Style decides non color styling of the revision like stripes depending on its revision purpose.
Style RevisionStateStyle
}
type RevisionStateStyle ¶ added in v0.51.0
type RevisionStateStyle int
const ( RevisionStateStyleNormal RevisionStateStyle = 0 RevisionStateStyleDeleted RevisionStateStyle = 1 RevisionStateStylePartialInfo RevisionStateStyle = 2 )
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 RevisionVerbComposerTaskInstanceSkipped RevisionVerb = 32 // Added since 0.53 )
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 HDRColor4
}
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 HDRColor4
// Background color of the label on log pane and the diamond shape on timeline view.
BackgroundColor HDRColor4
// Border color of the diamond shape on timeline view.
BorderColor HDRColor4
}
Click to show internal directories.
Click to hide internal directories.