# Functions
ColNames Creates a list fo string column names from list of typed ClusterCols.
New function creates and initializes a new instance of Storage structure.
NewClusterQuery creates new ClusterQuery Sql model.
NewFromConnection function creates and initializes a new instance of Storage interface from prepared connection.
# Variables
ErrNoSuchObj is indicating no result returned from db.
ErrUnknown indicates db query failed without details (QueryRow returning Row wasn't populated).
# Structs
Cluster represents cluster record in the controller service.
ClusterConfiguration represents cluster configuration record in the controller service.
ClusterQuery is Sql query model for Cluster.
ClusterQueryBuilder is just a typed wrapped to build queries more conviniently using only exposed methods.
Cols defines which columns exist in Clusters table, just for tyoe safe operations with them.
ConfigurationProfile represents configuration profile record in the controller service.
ItemNotFoundError shows that item with provided ItemID wasn't found in storage.
SearchClusterRequest defines type safe SearchCluster request, it is reused and defines request validation tags.
Storage represents an interface to any relational database based on SQL language.
Trigger represents trigger record in the controller service ID: unique key Type: ID of trigger type Cluster: cluster ID (not name) Reason: a string with any comment(s) about the trigger Link: link to any document with customer ACK with the trigger TriggeredAt: timestamp of the last configuration change TriggeredBy: username of admin that created or updated the trigger AckedAt: timestamp where the insights operator acked the trigger Parameters: parameters that needs to be pass to trigger code Active: flag indicating whether the trigger is still active or not.
# Interfaces
Storager exposes interface for testing.
# Type aliases
ClusterCol is type of cluster column.
ClusterConfigurationID represents unique key of cluster configuration stored in database.
ClusterID represents unique key of cluster stored in database.
ClusterName represents name of cluster in format c8590f31-e97e-4b85-b506-c45ce1911a12.
Column is typed reference to a sql column, which is further used by particular storage objects.
ConfigurationID represents unique key of configuration stored in database.
ID represents unique ID for any object.
Name represents common name of object stored in database.
TriggerID represents unique key of trigger stored in database.