AMI app model interfaces
| 43 | |
| 44 | // AMI app model interfaces |
| 45 | type AMI interface { |
| 46 | // node |
| 47 | CollectNodeInfo() (map[string]interface{}, error) |
| 48 | CollectNodeStats() (map[string]interface{}, error) |
| 49 | GetModeInfo() (interface{}, error) |
| 50 | |
| 51 | // app |
| 52 | ApplyApp(string, specv1.Application, map[string]specv1.Configuration, map[string]specv1.Secret) error |
| 53 | DeleteApp(string, string) error |
| 54 | StatsApps(string) ([]specv1.AppStats, error) |
| 55 | |
| 56 | // TODO: update |
| 57 | FetchLog(namespace, service string, tailLines, sinceSeconds int64) (io.ReadCloser, error) |
| 58 | |
| 59 | // RemoteCommand remote debug |
| 60 | RemoteCommand(option *DebugOptions, pipe Pipe) error |
| 61 | |
| 62 | // RemoteWebsocket remote link |
| 63 | RemoteWebsocket(ctx context.Context, option *DebugOptions, pipe Pipe) error |
| 64 | |
| 65 | // RemoteLogs remote logs |
| 66 | RemoteLogs(option *LogsOptions, pipe Pipe) error |
| 67 | |
| 68 | UpdateNodeLabels(string, map[string]string) error |
| 69 | |
| 70 | // RPCApp call baetyl app from baetyl-core |
| 71 | RPCApp(url string, req *specv1.RPCRequest) (*specv1.RPCResponse, error) |
| 72 | } |
| 73 | |
| 74 | type DebugOptions struct { |
| 75 | KubeDebugOptions |
no outgoing calls
no test coverage detected