agent

package
v1.16.12-beta036 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAPIKeyMeta added in v1.8.34

func AddAPIKeyMeta(ctx context.Context, apiKey string) context.Context

func NewGRPCConnection added in v1.8.34

func NewGRPCConnection(ctx context.Context, isInsecure bool, server string, logger *zap.SugaredLogger) (*grpc.ClientConn, error)

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(logger *zap.SugaredLogger,
	handler fasthttp.RequestHandler,
	apiKey string,
	client cloud.TestKubeCloudAPIClient,
	workerCount int,
	logStreamWorkerCount int,
	logStreamFunc func(ctx context.Context, executionID string) (chan output.Output, error),
	clusterID string,
	clusterName string,
	envs map[string]string,
) (*Agent, error)

func (*Agent) Events added in v1.7.21

func (ag *Agent) Events() []testkube.EventType

func (*Agent) Kind added in v1.7.21

func (ag *Agent) Kind() string

func (*Agent) Load added in v1.7.21

func (ag *Agent) Load() (listeners common.Listeners, err error)

func (*Agent) Metadata added in v1.7.21

func (ag *Agent) Metadata() map[string]string

func (*Agent) Name added in v1.7.21

func (ag *Agent) Name() string

func (*Agent) Notify added in v1.7.21

func (ag *Agent) Notify(event testkube.Event) (result testkube.EventResult)

func (*Agent) Run

func (ag *Agent) Run(ctx context.Context) error

func (*Agent) Selector added in v1.7.21

func (ag *Agent) Selector() string

Jump to

Keyboard shortcuts

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