Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaetylGPUStatsExtension = "baetyl_gpu_stats_extension" BaetylNodeStatsExtension = "baetyl_node_stats_extension" BaetylQPSStatsExtension = "baetyl_qps_stats_extension" )
Variables ¶
View Source
var Hooks = map[string]interface{}{}
Functions ¶
func RemoteWebsocket ¶ added in v2.4.3
func RemoteWebsocket(ctx context.Context, option *DebugOptions, pipe Pipe) error
RemoteWebsocket set up websocket connect
Types ¶
type AMI ¶
type AMI interface { // node CollectNodeInfo() (map[string]interface{}, error) CollectNodeStats() (map[string]interface{}, error) GetModeInfo() (interface{}, error) // app ApplyApp(string, specv1.Application, map[string]specv1.Configuration, map[string]specv1.Secret) error DeleteApp(string, string) error StatsApps(string) ([]specv1.AppStats, error) // TODO: update FetchLog(namespace, service string, tailLines, sinceSeconds int64) (io.ReadCloser, error) // RemoteCommand remote debug RemoteCommand(option *DebugOptions, pipe Pipe) error // RemoteWebsocket remote link RemoteWebsocket(ctx context.Context, option *DebugOptions, pipe Pipe) error // RemoteLogs remote logs RemoteLogs(option *LogsOptions, pipe Pipe) error UpdateNodeLabels(string, map[string]string) error // RPCApp call baetyl app from baetyl-core RPCApp(url string, req *specv1.RPCRequest) (*specv1.RPCResponse, error) }
AMI app model interfaces
type CollectStatsExtFunc ¶ added in v2.2.0
type DebugOptions ¶
type DebugOptions struct { KubeDebugOptions NativeDebugOptions WebsocketOptions }
type KubeDebugOptions ¶ added in v2.2.0
type LogsOptions ¶ added in v2.2.0
type NativeDebugOptions ¶ added in v2.2.0
type Pipe ¶
type Pipe struct { InReader *io.PipeReader InWriter *io.PipeWriter OutReader *io.PipeReader OutWriter *io.PipeWriter }
type WebsocketOptions ¶ added in v2.4.3
Click to show internal directories.
Click to hide internal directories.