Documentation
¶
Index ¶
- Constants
- type App
- func (app *App) AddComponents(components ...*Component) error
- func (app *App) BindFlags(flagSet *pflag.FlagSet) error
- func (app *App) BuildComponents(components ...*Component) error
- func (app *App) BuildContainer() error
- func (app *App) Components() Components
- func (app *App) Container() container.Container
- func (app *App) Serve() error
- type BindFlags
- type Component
- type Components
- type Config
- type Constructor
- type Run
- type Serve
- type ServeChan
Constants ¶
View Source
const ( NamespaceFieldName = "NAMESPACE" ClusterFieldName = "CLUSTER" ContainerIdFieldName = "CONTAINER_ID" ContainerNameFieldName = "CONTAINER_NAME" HostnameFieldName = "HOSTNAME" NamespaceDefault = "namespace" ClusterDefault = "cluster" ContainerIdDefault = "container_id" ContainerNameDefault = "container_name" HostnameDefault = "hostname" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AddComponents ¶
func (*App) BuildComponents ¶
func (*App) BuildContainer ¶
func (*App) Components ¶
func (app *App) Components() Components
type Component ¶
type Component struct {
Dependencies Components
Constructor Constructor
BindFlags BindFlags
// Deprecated: should use the ServeChan method
Serve Serve
ServeChan ServeChan
Run Run
// contains filtered or unexported fields
}
type Components ¶
type Components []*Component
func (Components) Exist ¶
func (components Components) Exist(component *Component) bool
type Config ¶
type Config struct {
Name string
PID uint64
Namespace string
Cluster string
ContainerId string
ContainerName string
HostName string
}
func Configuration ¶
type Constructor ¶
Click to show internal directories.
Click to hide internal directories.