Documentation ¶
Index ¶
- Constants
- func Meta(ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, ...)
- func Query(ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, ...)
- func Tail(ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, ...)
- type Command
- type HTTPClient
- type Logger
- type MetaOption
- type QueryOption
- type TailOption
- type Tailer
Constants ¶
View Source
const (
MaximumBatchSize int = 1000
)
Variables ¶
This section is empty.
Functions ¶
func Meta ¶
func Meta( ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, log Logger, tableWriter io.Writer, mopts ...MetaOption, )
Meta returns the metadata from Log Cache
func Query ¶
func Query( ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, log Logger, w io.Writer, opts ...QueryOption, )
func Tail ¶
func Tail( ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, log Logger, w io.Writer, opts ...TailOption, )
Tail will fetch the logs for a given application guid and write them to stdout.
Types ¶
type Command ¶
type Command func(ctx context.Context, cli plugin.CliConnection, args []string, c HTTPClient, log Logger, w io.Writer)
Command is the interface to implement plugin commands
type HTTPClient ¶
HTTPClient is the client used for HTTP requests
type Logger ¶
type Logger interface { Fatalf(format string, args ...interface{}) Printf(format string, args ...interface{}) }
Logger is used for outputting log-cache results and errors
type MetaOption ¶
type MetaOption func(*optionsFlags)
func WithMetaNoHeaders ¶
func WithMetaNoHeaders() MetaOption
func WithMetaNoiseSleepDuration ¶
func WithMetaNoiseSleepDuration(d time.Duration) MetaOption
type QueryOption ¶
type QueryOption func(*queryOptions)
type TailOption ¶
type TailOption func(*tailOptions)
func WithTailNoHeaders ¶
func WithTailNoHeaders() TailOption
Click to show internal directories.
Click to hide internal directories.