Versions in this module Expand all Collapse all v1 v1.4.1 May 22, 2024 v1.4.0 Mar 4, 2024 v1.3.1 Jan 31, 2024 v1.3.0 Dec 4, 2023 Changes in this version + const Pod + const PodAdded + const PodDeleted + const PodReady + const PodTerminating + const Pvc + const PvcAdded + const PvcAttachEnded + const PvcAttachStarted + const PvcBound + const PvcDeletingEnded + const PvcDeletingStarted + const PvcUnattachEnded + const PvcUnattachStarted + const StatefulSet + const Unknown + type Conditions map[string]interface + type Entity struct + ID int64 + K8sUID string + Name string + TcID int64 + Type EntityTypeEnum + type EntityTypeEnum string + func (ete *EntityTypeEnum) Scan(value interface{}) error + func (ete EntityTypeEnum) Value() (driver.Value, error) + type Event struct + EntityID int64 + ID int64 + Name string + TcID int64 + Timestamp time.Time + Type EventTypeEnum + type EventTypeEnum string + func (ete *EventTypeEnum) Scan(value interface{}) error + func (ete EventTypeEnum) Value() (driver.Value, error) + type NumberEntities struct + ID int64 + PodsCreating int + PodsReady int + PodsTerminating int + PvcBound int + PvcCreating int + PvcTerminating int + TcID int64 + Timestamp time.Time + type ResourceUsage struct + CPU int64 + ContainerName string + ID int64 + Mem int64 + PodName string + TcID int64 + Timestamp time.Time + type SQLiteStore struct + func NewSQLiteStore(dsn string) *SQLiteStore + func (ss *SQLiteStore) Close() error + func (ss *SQLiteStore) CreateEntitiesRelation(entity1, entity2 Entity) error + func (ss *SQLiteStore) FailedTestCase(ts *TestCase, endTimestamp time.Time, errMsg string) error + func (ss *SQLiteStore) GetEntities(whereConditions Conditions, orderBy string, limit int) ([]Entity, error) + func (ss *SQLiteStore) GetEntitiesWithEventsByTestCaseAndEntityType(tc *TestCase, eType EntityTypeEnum) (map[Entity][]Event, error) + func (ss *SQLiteStore) GetEntityRelations(entity Entity) ([]Entity, error) + func (ss *SQLiteStore) GetEvents(whereConditions Conditions, orderBy string, limit int) ([]Event, error) + func (ss *SQLiteStore) GetNumberEntities(whereConditions Conditions, orderBy string, limit int) ([]NumberEntities, error) + func (ss *SQLiteStore) GetResourceUsage(whereConditions Conditions, orderBy string, limit int) ([]ResourceUsage, error) + func (ss *SQLiteStore) GetTestCases(whereConditions Conditions, orderBy string, limit int) ([]TestCase, error) + func (ss *SQLiteStore) GetTestRuns(whereConditions Conditions, orderBy string, limit int) ([]TestRun, error) + func (ss *SQLiteStore) SaveEntities(entities []*Entity) error + func (ss *SQLiteStore) SaveEvents(events []*Event) error + func (ss *SQLiteStore) SaveNumberEntities(nEntities []*NumberEntities) error + func (ss *SQLiteStore) SaveResourceUsage(resUsages []*ResourceUsage) error + func (ss *SQLiteStore) SaveTestCase(ts *TestCase) error + func (ss *SQLiteStore) SaveTestRun(tr *TestRun) error + func (ss *SQLiteStore) SuccessfulTestCase(ts *TestCase, endTimestamp time.Time) error + type StorageClassDB struct + DB *SQLiteStore + StorageClass string + TestRun TestRun + type Store interface + Close func() error + CreateEntitiesRelation func(entity1, entity2 Entity) error + FailedTestCase func(ts *TestCase, endTimestamp time.Time, errMsg string) error + GetEntities func(whereConditions Conditions, orderBy string, limit int) ([]Entity, error) + GetEntitiesWithEventsByTestCaseAndEntityType func(tc *TestCase, eType EntityTypeEnum) (map[Entity][]Event, error) + GetEntityRelations func(event Entity) ([]Entity, error) + GetEvents func(whereConditions Conditions, orderBy string, limit int) ([]Event, error) + GetNumberEntities func(whereConditions Conditions, orderBy string, limit int) ([]NumberEntities, error) + GetResourceUsage func(whereConditions Conditions, orderBy string, limit int) ([]ResourceUsage, error) + GetTestCases func(whereConditions Conditions, orderBy string, limit int) ([]TestCase, error) + GetTestRuns func(whereConditions Conditions, orderBy string, limit int) ([]TestRun, error) + SaveEntities func(entities []*Entity) error + SaveEvents func(events []*Event) error + SaveNumberEntities func(nEntities []*NumberEntities) error + SaveResourceUsage func(resUsages []*ResourceUsage) error + SaveTestCase func(ts *TestCase) error + SaveTestRun func(tr *TestRun) error + SuccessfulTestCase func(ts *TestCase, endTimestamp time.Time) error + type TestCase struct + EndTimestamp time.Time + ErrorMessage string + ID int64 + Name string + Parameters string + RunID int64 + StartTimestamp time.Time + Success bool + type TestRun struct + ClusterAddress string + ID int64 + Longevity bool + Name string + StartTimestamp time.Time + StorageClass string