Documentation
¶
Index ¶
Constants ¶
View Source
const ( Namespace = "kubeskoop" ExporterConfigMap = "kubeskoop-config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureArgs ¶
type CaptureTaskResult ¶
type CaptureTaskResult struct {
TaskID int `json:"task_id"`
Spec *TaskSpec `json:"spec"`
Status string `json:"status"`
Result string `json:"result"`
Message string `json:"message"`
}
todo reflect to generic task definition
type ControllerService ¶
type ControllerService interface {
rpc.ControllerRegisterServiceServer
GetAgentList() []*rpc.AgentInfo
Capture(ctx context.Context, capture *CaptureArgs) (int, error)
CaptureList(ctx context.Context) (map[int][]*CaptureTaskResult, error)
QueryRangeEvent(ctx context.Context, start, end time.Time, filters map[string][]string, limit int) ([]Event, error)
Diagnose(ctx context.Context, args *skoopContext.TaskConfig) (int64, error)
DiagnoseList(ctx context.Context) ([]DiagnoseTaskResult, error)
DownloadCaptureFile(ctx context.Context, id int) (string, int64, io.ReadCloser, error)
PodList(ctx context.Context) ([]*Pod, error)
NodeList(ctx context.Context) ([]*Node, error)
NamespaceList(ctx context.Context) ([]string, error)
QueryPrometheus(ctx context.Context, query string, ts time.Time) (model.Value, promv1.Warnings, error)
GetPodNodeInfoFromMetrics(ctx context.Context, ts time.Time) (model.Vector, model.Vector, error)
PingMesh(ctx context.Context, pingmesh *PingMeshArgs) (*PingMeshResult, error)
GetExporterConfig(ctx context.Context) (*exporter.InspServerConfig, error)
UpdateExporterConfig(ctx context.Context, cfg *exporter.InspServerConfig) error
}
func NewControllerService ¶
func NewControllerService(k8sClient *kubernetes.Clientset, config *Config) (ControllerService, error)
type DiagnoseTaskResult ¶
type DiagnoseTaskResult struct {
TaskID int64 `json:"task_id" db:"id"`
TaskConfig string `json:"task_config" db:"config"`
StartTime string `json:"start_time" db:"start_time"`
FinishTime *string `json:"finish_time" db:"finish_time"`
Status string `json:"status" db:"status"`
Result *string `json:"result" db:"result"`
Message *string `json:"message" db:"message"`
}
todo reflect to generic task definition
type PingMeshArgs ¶
type PingMeshResult ¶
Click to show internal directories.
Click to hide internal directories.