Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigSection ¶
ConfigSection represents Config section of container configuration
type Container ¶
type Container struct { Type string `json:"-"` ID string `json:"ID"` LogPath string `json:"LogPath"` State StateSection `json:"State"` Config ConfigSection `json:"Config"` }
Container represents container configuration
func (*Container) GetPodName ¶
GetPodName returns container pod name or empty string
func (*Container) GetPodNamespace ¶
GetPodNamespace returns container pod namespace or empty string
type Containers ¶
Containers is the map of container entities
func (Containers) Present ¶
func (containers Containers) Present(path string) bool
Present checks whether the key present in containers map
type ProviderContainers ¶
ProviderContainers seeks for logs in requested logPath and resolves links
func NewProviderContainers ¶
func NewProviderContainers(path string, logger logging.Logger) (*ProviderContainers, error)
NewProviderContainers is ProviderContainers constructor
func (*ProviderContainers) Containers ¶
func (provider *ProviderContainers) Containers() (Containers, error)
Containers seek and return all Containers
type StateSection ¶
type StateSection struct {
Running bool
}
StateSection represents State section of container configuration
Click to show internal directories.
Click to hide internal directories.