Documentation ¶
Index ¶
- func DefaultLogsClient(ctx context.Context, overrideAPIAddr string) (pb.LogsClient, error)
- func DefaultPluginLogsClient(ctx context.Context, overrideAPIAddr string) (pb3.LogsClient, error)
- func DefaultResultsClient(ctx context.Context, overrideAPIAddr string) (pb.ResultsClient, error)
- type Factory
- func (f *Factory) LogClient(ctx context.Context, overrideAPIAddr string) (pb.LogsClient, error)
- func (f *Factory) PluginLogsClient(ctx context.Context, overrideAPIAddr string) (pb3.LogsClient, error)
- func (f *Factory) ResultsClient(ctx context.Context, overrideAPIAddr string) (pb.ResultsClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogsClient ¶
DefaultLogsClient creates a new default logs client.
func DefaultPluginLogsClient ¶ added in v0.12.0
DefaultPluginLogsClient creates a new default logs client.
func DefaultResultsClient ¶
DefaultResultsClient creates a new results client. Will dial overrideAPIAddr if overrideAPIAddr is not empty
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory contains the configuration for creating a k8s client.
func NewDefaultFactory ¶
NewDefaultFactory creates a new Factory with the default configuration.
func (*Factory) LogClient ¶
LogClient creates a new Results gRPC client for the given factory settings. TODO: Refactor this with watcher client code?
func (*Factory) PluginLogsClient ¶ added in v0.12.0
func (f *Factory) PluginLogsClient(ctx context.Context, overrideAPIAddr string) (pb3.LogsClient, error)
PluginLogsClient creates a new Results gRPC client for the given factory settings.
func (*Factory) ResultsClient ¶
func (f *Factory) ResultsClient(ctx context.Context, overrideAPIAddr string) (pb.ResultsClient, error)
ResultsClient creates a new Results gRPC client for the given factory settings. TODO: Refactor this with watcher client code?