client

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogsClient

func DefaultLogsClient(ctx context.Context, overrideAPIAddr string) (pb.LogsClient, error)

DefaultLogsClient creates a new default logs client.

func DefaultPluginLogsClient added in v0.12.0

func DefaultPluginLogsClient(ctx context.Context, overrideAPIAddr string) (pb3.LogsClient, error)

DefaultPluginLogsClient creates a new default logs client.

func DefaultResultsClient

func DefaultResultsClient(ctx context.Context, overrideAPIAddr string) (pb.ResultsClient, error)

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

func NewDefaultFactory() (*Factory, error)

NewDefaultFactory creates a new Factory with the default configuration.

func (*Factory) LogClient

func (f *Factory) LogClient(ctx context.Context, overrideAPIAddr string) (pb.LogsClient, error)

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?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL