Documentation
¶
Index ¶
- func LogReader(prefix string, in <-chan *api.StreamFrame, out chan<- string)
- func LogRecordsPrinter(outputCh <-chan string, filterStr []string, excludeStr []string)
- func Run(_ context.Context, conf *Config) error
- func Subscriber(client *api.Client, conf *Config, subs <-chan Subscription, out chan<- string, ...)
- func SubscriptionFinder(client *api.Client, subsCh chan<- Subscription, prefix string, task string)
- type AllocSpec
- type Config
- type Options
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRecordsPrinter ¶ added in v0.2.0
func Subscriber ¶
func SubscriptionFinder ¶
func SubscriptionFinder(client *api.Client, subsCh chan<- Subscription, prefix string, task string)
Types ¶
type Config ¶
type Config struct {
JobsOrAllocPrefix string
NomadAddress string
Timestamps bool
Follow bool
ShowStdout bool
ShowStderr bool
TaskName string
FilterStr *[]string
ExcludeStr *[]string
TailBytes int64
Raw bool
}
Config contains the config (Where is my rock?)
type Subscription ¶
func NewSubscription ¶
func NewSubscription(node, job, alloc, task string) *Subscription
func (*Subscription) String ¶
func (s *Subscription) String() string
Click to show internal directories.
Click to hide internal directories.