Documentation
¶
Index ¶
- func OpenBrowser(url string) error
- func OutputMessage(ctx context.Context, msg string)
- func OutputWait(ctx context.Context, msg string)
- func RunForService(ctx context.Context, serverListen ListenType, serverPort ListenPort) error
- func StopDashboardService(ctx context.Context) error
- func WriteServiceStateFile(state *DashboardServiceState) error
- type AvailableDashboardsPayload
- type ClientRequest
- type ClientRequestDashboardPayload
- type ClientRequestPayload
- type DashboardClientInfo
- type DashboardMetadata
- type DashboardMetadataPayload
- type DashboardServiceState
- type ErrorPayload
- type ExecutionPayload
- type InputValuesClearedPayload
- type ListenPort
- type ListenType
- type ModAvailableDashboard
- type ModDashboardMetadata
- type Server
- type ServiceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenBrowser ¶
https://stackoverflow.com/questions/39320371/how-start-web-server-to-open-page-in-browser-in-golang
func OutputMessage ¶
func OutputWait ¶ added in v0.13.1
func RunForService ¶
func RunForService(ctx context.Context, serverListen ListenType, serverPort ListenPort) error
func StopDashboardService ¶
func WriteServiceStateFile ¶
func WriteServiceStateFile(state *DashboardServiceState) error
Types ¶
type AvailableDashboardsPayload ¶
type AvailableDashboardsPayload struct {
Action string `json:"action"`
DashboardsByMod map[string]map[string]ModAvailableDashboard `json:"dashboards_by_mod"`
}
type ClientRequest ¶
type ClientRequest struct {
Action string `json:"action"`
Payload ClientRequestPayload `json:"payload"`
}
type ClientRequestDashboardPayload ¶
type ClientRequestDashboardPayload struct {
FullName string `json:"full_name"`
}
type ClientRequestPayload ¶
type ClientRequestPayload struct {
Dashboard ClientRequestDashboardPayload `json:"dashboard"`
InputValues map[string]interface{} `json:"input_values"`
ChangedInput string `json:"changed_input"`
}
type DashboardClientInfo ¶
type DashboardMetadata ¶
type DashboardMetadata struct {
Mod ModDashboardMetadata `json:"mod"`
InstalledMods map[string]ModDashboardMetadata `json:"installed_mods,omitempty"`
Cloud *steampipeconfig.CloudMetadata `json:"cloud,omitempty"`
Telemetry string `json:"telemetry"`
}
type DashboardMetadataPayload ¶
type DashboardMetadataPayload struct {
Action string `json:"action"`
Metadata DashboardMetadata `json:"metadata"`
}
type DashboardServiceState ¶
type DashboardServiceState struct {
State ServiceState
Error string
Pid int
Port int
ListenType string
Listen []string
}
func GetDashboardServiceState ¶
func GetDashboardServiceState() (*DashboardServiceState, error)
type ErrorPayload ¶
type ExecutionPayload ¶
type ExecutionPayload struct {
Action string `json:"action"`
DashboardNode dashboardinterfaces.DashboardNodeRun `json:"dashboard_node"`
}
type ListenPort ¶
type ListenPort int
func (ListenPort) IsValid ¶
func (lp ListenPort) IsValid() error
IsValid is a validator for ListenType known values
type ListenType ¶
type ListenType string
const ( ListenTypeLocal ListenType = "local" ListenTypeNetwork ListenType = "network" )
func (ListenType) IsValid ¶
func (lt ListenType) IsValid() error
IsValid is a validator for ListenType known values
type ModAvailableDashboard ¶
type ModDashboardMetadata ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandleWorkspaceUpdate ¶
func (s *Server) HandleWorkspaceUpdate(event dashboardevents.DashboardEvent)
type ServiceState ¶
type ServiceState string
const ( ServiceStateRunning ServiceState = "running" ServiceStateError ServiceState = "running" )
Click to show internal directories.
Click to hide internal directories.