Documentation
¶
Index ¶
- type MissionControl
- func (mc *MissionControl) GetScraper(id string) *Scraper
- func (mc *MissionControl) IsHealthy() (bool, error)
- func (mc *MissionControl) POST(path string, body any) (*http.Response, error)
- func (mc *MissionControl) QueryCatalog(selector ResourceSelector) ([]SelectedResource, error)
- func (mc *MissionControl) SearchCatalog(search string) ([]SelectedResource, error)
- func (mc *MissionControl) WhoAmI() (map[string]any, bool, error)
- type ResourceSelector
- type ScrapeResult
- type ScrapeResults
- type Scraper
- type SearchResourcesRequest
- type SearchResourcesResponse
- type SelectedResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MissionControl ¶
type MissionControl struct {
HTTP *http.Client
ConfigDB *http.Client
URL string
Username string
Password string
Namespace string
DB *sql.DB
}
func (*MissionControl) GetScraper ¶
func (mc *MissionControl) GetScraper(id string) *Scraper
func (*MissionControl) IsHealthy ¶
func (mc *MissionControl) IsHealthy() (bool, error)
func (*MissionControl) QueryCatalog ¶
func (mc *MissionControl) QueryCatalog(selector ResourceSelector) ([]SelectedResource, error)
func (*MissionControl) SearchCatalog ¶
func (mc *MissionControl) SearchCatalog(search string) ([]SelectedResource, error)
type ResourceSelector ¶
type ResourceSelector struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Types []string `json:"types,omitempty"`
Statuses []string `json:"statuses,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
FieldSelector string `json:"field_selector,omitempty"`
Search string `json:"search,omitempty"`
}
type ScrapeResult ¶
type ScrapeResults ¶
type SearchResourcesRequest ¶
type SearchResourcesRequest struct {
Limit int `json:"limit,omitempty"`
Configs []ResourceSelector `json:"configs,omitempty"`
}
type SearchResourcesResponse ¶
type SearchResourcesResponse struct {
Configs []SelectedResource `json:"configs"`
}
type SelectedResource ¶
type SelectedResource struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Type string `json:"type,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
Config string `json:"config,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.