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 ¶
NewContext creates a new Context.
func (*Context) AddEnv ¶
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 ¶
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 ¶
SetClusterID sets the cluster ID associated with this Context. This is called by the pxDeploy step that deploys Pixie to the cluster.