gravity

package
v0.0.179 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentWelcome

type AgentWelcome struct {
	cproject.AgentConfig
	Welcome
}

type AgentsControlResponse

type AgentsControlResponse struct {
	ProjectID   string         `json:"projectId"`
	ProjectName string         `json:"projectName"`
	Agents      []AgentWelcome `json:"agents"`
}

type Client

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

func New

func New(config Config) *Client

func (*Client) APIKey

func (c *Client) APIKey() string

APIKey returns the API key of the client.

func (*Client) APIURL

func (c *Client) APIURL() string

APIURL returns the API URL of the client.

func (*Client) Close

func (c *Client) Close() error

Close will close the client and all the associated services.

func (*Client) EndpointID

func (c *Client) EndpointID() string

EndpointID returns the endpoint ID of the client.

func (*Client) HealthCheck

func (c *Client) HealthCheck(devModeUrl string) error

func (*Client) Hostname

func (c *Client) Hostname() string

Hostname returns the hostname of the client.

func (*Client) OrgID

func (c *Client) OrgID() string

OrgID returns the organization ID of the client.

func (*Client) Start

func (c *Client) Start() error

Start will start the client and all the associated services.

func (*Client) TelemetryAPIKey

func (c *Client) TelemetryAPIKey() string

TelemetryAPIKey returns the telemetry API key of the client.

func (*Client) TelemetryURL

func (c *Client) TelemetryURL() string

TelemetryURL returns the telemetry URL of the client.

type Config

type Config struct {
	Context         context.Context
	Logger          logger.Logger
	Version         string // of the cli
	OrgID           string
	Project         project.ProjectContext
	EndpointID      string
	URL             string
	SDKKey          string
	ProxyPort       uint
	AgentPort       uint
	Ephemeral       bool
	ClientName      string
	DynamicHostname bool
	DynamicProject  bool
}

type Welcome

type Welcome struct {
	Message string `json:"welcome"`
	Prompts []struct {
		Data        string `json:"data"`
		ContentType string `json:"contentType"`
	} `json:"prompts,omitempty"`
}

Jump to

Keyboard shortcuts

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