agent

package
v1.16.29-beta3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 23 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, skipVerify 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,
	client cloud.TestKubeCloudAPIClient,
	logStreamFunc func(ctx context.Context, executionID string) (chan output.Output, error),
	clusterID string,
	clusterName string,
	envs map[string]string,
	features featureflags.FeatureFlags,
	proContext config.ProContext,
) (*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