Documentation ¶
Index ¶
Constants ¶
View Source
const AkkerisAppLabelKey = "akkeris.io/app-name"
View Source
const AkkerisDynoTypeLabelKey = "akkeris.io/dyno-type"
View Source
const DrainAnnotationKey = "logtrain.akkeris.io/drains"
View Source
const HostnameAnnotationKey = "logtrain.akkeris.io/hostname"
View Source
const TagAnnotationKey = "logtrain.akkeris.io/tag"
Variables ¶
This section is empty.
Functions ¶
func GetHostNameFromTLO ¶
Types ¶
type DataSource ¶
type KubernetesDataSource ¶
type KubernetesDataSource struct {
// contains filtered or unexported fields
}
func CreateKubernetesDataSource ¶
func CreateKubernetesDataSource(kube kubernetes.Interface) (*KubernetesDataSource, error)
func (*KubernetesDataSource) AddRoute ¶
func (kds *KubernetesDataSource) AddRoute() chan LogRoute
func (*KubernetesDataSource) Close ¶
func (kds *KubernetesDataSource) Close() error
func (*KubernetesDataSource) GetAllRoutes ¶
func (kds *KubernetesDataSource) GetAllRoutes() ([]LogRoute, error)
func (*KubernetesDataSource) RemoveRoute ¶
func (kds *KubernetesDataSource) RemoveRoute() chan LogRoute
type Listener ¶
type Listener interface { Close() error Listen(string) error NotificationChannel() <-chan *pq.Notification Ping() error }
This normally isnt needed but in order to pass in a fake listener for testing we need this.
type PostgresDataSource ¶
type PostgresDataSource struct {
// contains filtered or unexported fields
}
func (*PostgresDataSource) AddRoute ¶
func (pds *PostgresDataSource) AddRoute() chan LogRoute
func (*PostgresDataSource) GetAllRoutes ¶
func (pds *PostgresDataSource) GetAllRoutes() ([]LogRoute, error)
func (*PostgresDataSource) RemoveRoute ¶
func (pds *PostgresDataSource) RemoveRoute() chan LogRoute
Click to show internal directories.
Click to hide internal directories.