pixie

package
v0.0.0-...-f30a32e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

Context stores the information necessary to connect to Pixie Cloud, and optionally a particular vizier.

func NewContext

func NewContext(apiKey string, cloudAddr string) *Context

NewContext creates a new Context.

func (*Context) AddEnv

func (ctx *Context) AddEnv(cmd *exec.Cmd)

AddEnv adds the necessary environment variables to a exec.Cmd, such that the command will connect to the Pixie cloud specified by this context.

func (*Context) NewVizierClient

func (ctx *Context) NewVizierClient() (*pxapi.VizierClient, error)

NewVizierClient creates a new pxapi VizierClient to the cluster associated with this context. If WithClusterID was not specified, this will error.

func (*Context) RunPXCmd

func (ctx *Context) RunPXCmd(clusterCtx *cluster.Context, args ...string) ([]byte, error)

RunPXCmd calls out to the `px` cli binary to run the given command, using the context's api key and cloud addr.

func (*Context) SetClusterID

func (ctx *Context) SetClusterID(id uuid.UUID)

SetClusterID sets the cluster ID associated with this Context. This is called by the pxDeploy step that deploys Pixie to the cluster.

Jump to

Keyboard shortcuts

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