Documentation
¶
Index ¶
- Constants
- type ElasticLogStore
- func (es *ElasticLogStore) ApplicationLogs(timeToWait time.Duration) (types.Logs, error)
- func (es *ElasticLogStore) ClusterLocalEndpoint() string
- func (es *ElasticLogStore) GrepLogs(expr string, timeToWait time.Duration) (string, error)
- func (es *ElasticLogStore) HasApplicationLogs(timeToWait time.Duration) (bool, error)
- func (es *ElasticLogStore) HasAuditLogs(timeToWait time.Duration) (bool, error)
- func (es *ElasticLogStore) HasInfraStructureLogs(timeToWait time.Duration) (bool, error)
- func (es *ElasticLogStore) Indices() (Indices, error)
- func (es *ElasticLogStore) RetrieveLogs() (map[string]string, error)
- type Index
- type Indices
- type ManagedElasticsearch
Constants ¶
View Source
const ( InfraIndexPrefix = "infra-" ProjectIndexPrefix = "app-" AuditIndexPrefix = "audit-" )
View Source
const ( ManagedLogStore = "elasticsearch-rh" ManagedLogStoreSecret = "elasticsearch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticLogStore ¶
func NewElasticLogStore ¶
func NewElasticLogStore(test framework.Test) *ElasticLogStore
func (*ElasticLogStore) ApplicationLogs ¶
func (*ElasticLogStore) ClusterLocalEndpoint ¶
func (es *ElasticLogStore) ClusterLocalEndpoint() string
func (*ElasticLogStore) HasApplicationLogs ¶
func (es *ElasticLogStore) HasApplicationLogs(timeToWait time.Duration) (bool, error)
func (*ElasticLogStore) HasAuditLogs ¶
func (es *ElasticLogStore) HasAuditLogs(timeToWait time.Duration) (bool, error)
func (*ElasticLogStore) HasInfraStructureLogs ¶
func (es *ElasticLogStore) HasInfraStructureLogs(timeToWait time.Duration) (bool, error)
func (*ElasticLogStore) Indices ¶
func (es *ElasticLogStore) Indices() (Indices, error)
Indices fetches the list of indices stored by Elasticsearch
func (*ElasticLogStore) RetrieveLogs ¶
func (es *ElasticLogStore) RetrieveLogs() (map[string]string, error)
type Index ¶
type Index struct {
Health string `json:"health"`
Status string `json:"status"`
Name string `json:"index"`
UUID string `json:"uuid"`
Primary string `json:"pri"`
Replicas string `json:"rep"`
DocsCount string `json:"docs.count"`
DocsDeleted string `json:"docs.deleted"`
StoreSize string `json:"store.size"`
PrimaryStoreSize string `json:"pri.store.size"`
}
type Indices ¶
type Indices []Index
func (*Indices) HasApplicationLogs ¶
HasApplicationLogs returns true if there are any indices that begin with ProjectIndexPrefix and also contains documents
func (*Indices) HasAuditLogs ¶
HasAuditLogs returns true if there are any indices that begin with AuditIndexPrefix and also contains documents
func (*Indices) HasInfraStructureLogs ¶
HasInfraStructureLogs returns true if there are any indices that begin with InfraIndexPrefix and also contains documents
type ManagedElasticsearch ¶
type ManagedElasticsearch struct {
*ElasticLogStore
}
func NewManagedElasticsearch ¶
func NewManagedElasticsearch(test framework.Test) *ManagedElasticsearch
func (*ManagedElasticsearch) Deploy ¶
func (es *ManagedElasticsearch) Deploy() error
TODO: Update to also support deployment of elasticsearch operator
Click to show internal directories.
Click to hide internal directories.