common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyColor         = "color"          // string
	KeyDebug         = "debug"          // bool
	KeyOutput        = "output"         // string
	KeyTty           = "tty-encode"     // string
	KeyServerAddress = "server-address" // string
	KeyTimeout       = "timeout"        // duration
	KeyRetries       = "retries"        // int
)

Variables

View Source
var (
	Debug         bool
	ServerAddress string
	Timeout       time.Duration
	Retries       int
)

Functions

func CliRun

func CliRun(fn func(ctx context.Context, cli tetragon.FineGuidanceSensorsClient))

func CliRunErr

func CliRunErr(fn func(ctx context.Context, cli tetragon.FineGuidanceSensorsClient), fnErr func(err error))

Types

type ConnectedClient added in v1.0.0

type ConnectedClient struct {
	Client tetragon.FineGuidanceSensorsClient
	Ctx    context.Context
	// contains filtered or unexported fields
}

func NewConnectedClient added in v1.0.0

func NewConnectedClient() ConnectedClient

NewConnectedClient return a connected client to a tetragon server, caller must call Close() on the client. On failure to connect, this function calls Fatal() thus stopping execution.

func (ConnectedClient) Close added in v1.0.0

func (c ConnectedClient) Close()

Close cleanup resources, it closes the connection and cancel the context

Jump to

Keyboard shortcuts

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