Documentation ¶
Index ¶
- Variables
- func Cleanup()
- func ConvertNamedParams(sql string, namedArgs map[string]interface{}) (string, []interface{})
- func CreateCanary(canary *pkg.Canary) error
- func CreateCheck(canary pkg.Canary, check *pkg.Check) error
- func CreateComponentCanaryFromInline(id, name, namespace, schedule, owner string, spec *v1.CanarySpec) (*pkg.Canary, error)
- func DeleteCanary(canary v1.Canary) error
- func DeleteCheckComponentRelationshipsForCanary(id string, deleteTime time.Time) error
- func DeleteChecks(id []string) error
- func DeleteChecksForCanary(id string, deleteTime time.Time) error
- func DeleteComponentChildren(componentID string, deleteTime time.Time) error
- func DeleteComponentRelationship(componentID string, deleteTime time.Time) error
- func DeleteComponentsWithIDs(compIDs []string, deleteTime time.Time) error
- func DeleteComponentsWithSystemTemplate(systemTemplateID string, deleteTime time.Time) error
- func DeleteConfigRelationshipForComponent(componentID uuid.UUID, deleteTime time.Time) error
- func DeleteInlineCanariesForComponent(componentID string, deleteTime time.Time) error
- func DeleteSystemTemplate(systemTemplate *v1.SystemTemplate) error
- func FindCanary(namespace, name string) (*pkg.Canary, error)
- func FindCheck(canary pkg.Canary, name string) (*pkg.Check, error)
- func FindConfig(config pkg.Config) (*pkg.Config, error)
- func FindConfigForComponent(componentID, configType string) ([]pkg.Config, error)
- func GetActiveComponentsIDsWithSystemTemplateID(systemID string) (compIDs []uuid.UUID, err error)
- func GetAllActiveChecksForCanary(canaryID uuid.UUID) (checks pkg.Checks, err error)
- func GetAllCanaries() ([]v1.Canary, error)
- func GetAllChecks() ([]pkg.Check, error)
- func GetAllChecksForCanary(canaryID uuid.UUID) (checks pkg.Checks, err error)
- func GetAllComponentWithCanaries() (components pkg.Components, err error)
- func GetAllComponentsWithConfigs() (components pkg.Components, err error)
- func GetAllComponentsWithSelectors() (components pkg.Components, err error)
- func GetAllSystemTemplates() ([]v1.SystemTemplate, error)
- func GetCanary(id string) (*pkg.Canary, error)
- func GetCheck(id string) (*pkg.Check, error)
- func GetCheckRelationshipsForComponent(componentID uuid.UUID) ([]pkg.CheckComponentRelationship, error)
- func GetChecksWithLabelSelector(labelSelector string) (selectedChecks pkg.Checks, err error)
- func GetChildRelationshipsForParentComponent(componentID uuid.UUID) ([]pkg.ComponentRelationship, error)
- func GetComponentsWithFieldSelector(fieldSelector string) (components pkg.Components, err error)
- func GetComponentsWithLabelSelector(labelSelector string) (components pkg.Components, err error)
- func GetComponentsWithSelectors(resourceSelectors v1.ResourceSelectors) (components pkg.Components, err error)
- func GetDB() (*sql.DB, error)
- func GetLabelsFromSelector(selector string) (matchLabels map[string]string)
- func GoOffline() error
- func Init() error
- func IsConfigured() bool
- func IsConnected() bool
- func NewComponentRelationships(relationshipID uuid.UUID, path string, components pkg.Components) (relationships []*pkg.ComponentRelationship, err error)
- func PersistCanary(canary v1.Canary, source string) (*pkg.Canary, map[string]string, bool, error)
- func PersistCheck(check pkg.Check, canaryID uuid.UUID) (uuid.UUID, error)
- func PersistCheckComponentRelationship(relationship *pkg.CheckComponentRelationship) error
- func PersistComponent(component *pkg.Component) ([]uuid.UUID, error)
- func PersistComponentRelationship(relationship *pkg.ComponentRelationship) error
- func PersistComponents(results []*pkg.Component) error
- func PersistConfigComponentRelationship(configID, componentID uuid.UUID, selectorID string) error
- func PersistJobHistory(h *models.JobHistory) error
- func PersistSystemTemplate(system *v1.SystemTemplate) (string, bool, error)
- func PostgRESTEndpoint() string
- func QueryNamed(ctx context.Context, sql string, args map[string]interface{}) (pgx.Rows, error)
- func Start(ctx context.Context) error
- func StartPostgrest()
- func StopServer() error
- func UpdateComponentCosts() error
- func UpdateStatusAndSummaryForComponent(id uuid.UUID, status models.ComponentStatus, summary models.Summary) (int64, error)
- type ConfigComponentRelationship
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectionString string
View Source
var DefaultExpiryDays int
View Source
var Gorm *gorm.DB
View Source
var HTTPEndpoint = "http://localhost:8080/db"
View Source
var Pool *pgxpool.Pool
View Source
var PostgRESTServerPort = 3000
View Source
var PostgRESTVersion = "v9.0.0"
View Source
var PostgresServer *embeddedpostgres.EmbeddedPostgres
View Source
var RunMigrations bool
Functions ¶
func ConvertNamedParams ¶ added in v0.38.85
func CreateCanary ¶ added in v0.38.85
func CreateComponentCanaryFromInline ¶ added in v0.38.151
func DeleteCanary ¶ added in v0.38.85
func DeleteCheckComponentRelationshipsForCanary ¶ added in v0.38.151
func DeleteChecks ¶ added in v0.38.160
func DeleteChecksForCanary ¶ added in v0.38.151
func DeleteComponentChildren ¶ added in v0.38.210
func DeleteComponentRelationship ¶ added in v0.38.140
func DeleteComponentsWithIDs ¶ added in v0.38.125
DeleteComponentsWithID deletes all components with specified ids.
func DeleteComponentsWithSystemTemplate ¶ added in v0.38.210
DeleteComponents deletes all components associated with a systemTemplate
func DeleteConfigRelationshipForComponent ¶ added in v0.38.165
func DeleteInlineCanariesForComponent ¶ added in v0.38.151
func DeleteSystemTemplate ¶ added in v0.38.106
func DeleteSystemTemplate(systemTemplate *v1.SystemTemplate) error
func FindConfigForComponent ¶ added in v0.38.195
func GetActiveComponentsIDsWithSystemTemplateID ¶ added in v0.38.135
func GetAllActiveChecksForCanary ¶ added in v0.38.160
returns all the checks associated with canary which are currently executing
func GetAllCanaries ¶ added in v0.38.85
func GetAllChecks ¶ added in v0.38.85
func GetAllChecksForCanary ¶ added in v0.38.151
returns all the checks associated with canary.
func GetAllComponentWithCanaries ¶ added in v0.38.151
func GetAllComponentWithCanaries() (components pkg.Components, err error)
func GetAllComponentsWithConfigs ¶ added in v0.38.172
func GetAllComponentsWithConfigs() (components pkg.Components, err error)
func GetAllComponentsWithSelectors ¶ added in v0.38.198
func GetAllComponentsWithSelectors() (components pkg.Components, err error)
Get all the components from table which has not null selectors
func GetAllSystemTemplates ¶ added in v0.38.106
func GetAllSystemTemplates() ([]v1.SystemTemplate, error)
func GetCheckRelationshipsForComponent ¶ added in v0.38.181
func GetCheckRelationshipsForComponent(componentID uuid.UUID) ([]pkg.CheckComponentRelationship, error)
func GetChecksWithLabelSelector ¶ added in v0.38.151
func GetChildRelationshipsForParentComponent ¶ added in v0.38.181
func GetChildRelationshipsForParentComponent(componentID uuid.UUID) ([]pkg.ComponentRelationship, error)
func GetComponentsWithFieldSelector ¶ added in v0.38.198
func GetComponentsWithFieldSelector(fieldSelector string) (components pkg.Components, err error)
func GetComponentsWithLabelSelector ¶ added in v0.38.198
func GetComponentsWithLabelSelector(labelSelector string) (components pkg.Components, err error)
func GetComponentsWithSelectors ¶ added in v0.38.151
func GetComponentsWithSelectors(resourceSelectors v1.ResourceSelectors) (components pkg.Components, err error)
func GetLabelsFromSelector ¶ added in v0.38.114
func IsConfigured ¶ added in v0.38.85
func IsConfigured() bool
func IsConnected ¶ added in v0.38.85
func IsConnected() bool
func NewComponentRelationships ¶ added in v0.38.181
func NewComponentRelationships(relationshipID uuid.UUID, path string, components pkg.Components) (relationships []*pkg.ComponentRelationship, err error)
func PersistCanary ¶ added in v0.38.85
func PersistCheck ¶ added in v0.38.85
func PersistCheckComponentRelationship ¶ added in v0.38.151
func PersistCheckComponentRelationship(relationship *pkg.CheckComponentRelationship) error
func PersistComponent ¶ added in v0.38.85
TODO: Simplify logic and improve readability
func PersistComponentRelationship ¶ added in v0.38.114
func PersistComponentRelationship(relationship *pkg.ComponentRelationship) error
func PersistComponents ¶ added in v0.38.135
func PersistConfigComponentRelationship ¶ added in v0.38.165
func PersistJobHistory ¶ added in v0.38.201
func PersistJobHistory(h *models.JobHistory) error
func PersistSystemTemplate ¶ added in v0.38.106
func PersistSystemTemplate(system *v1.SystemTemplate) (string, bool, error)
func PostgRESTEndpoint ¶ added in v0.38.137
func PostgRESTEndpoint() string
func QueryNamed ¶ added in v0.38.85
TODO: Use pgx/v5 and use Pool.Query(ctx, sql, pgx.NamedArgs{})
func StartPostgrest ¶ added in v0.38.137
func StartPostgrest()
func StopServer ¶ added in v0.38.83
func StopServer() error
func UpdateComponentCosts ¶ added in v0.38.199
func UpdateComponentCosts() error
func UpdateStatusAndSummaryForComponent ¶ added in v0.38.146
Types ¶
type ConfigComponentRelationship ¶ added in v0.38.176
type ConfigComponentRelationship struct { ComponentID uuid.UUID ConfigID uuid.UUID SelectorID string DeletedAt *time.Time }
Store entry in config_component_relationship table
func GetConfigRelationshipsForComponent ¶ added in v0.38.165
func GetConfigRelationshipsForComponent(componentID uuid.UUID) ([]ConfigComponentRelationship, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.