cmd

package
v0.0.1-rc.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Logger is the package-level logger initialized in PersistentPreRunE.
	// It writes to the command's stderr stream so diagnostics don't pollute stdout.
	Logger *log.Logger
)
View Source
var Version string = "dev"

Functions

func Execute

func Execute()

Types

type DisplayMetricsResult

type DisplayMetricsResult struct {
	Metric     string
	Timestamps string
	Values     string
}

type GenericToolInput

type GenericToolInput struct {
	Flags map[string]any `json:"flags"`
	Args  []string       `json:"args"`
}

GenericToolInput represents the input for a generic nbctl command tool.

type GenericToolOutput

type GenericToolOutput struct {
	Output map[string]any `json:"output"`
	Error  string         `json:"error,omitempty"`
}

GenericToolOutput represents the output from a generic nbctl command tool.

type JSONSchema

type JSONSchema struct {
	Type        string                 `json:"type"`
	Properties  map[string]*JSONSchema `json:"properties,omitempty"`
	Items       *JSONSchema            `json:"items,omitempty"`
	Description string                 `json:"description,omitempty"`
	Default     any                    `json:"default,omitempty"`
}

JSONSchema represents a basic JSON schema.

type LogGroupOutput

type LogGroupOutput struct {
	Sample         string `json:"sample"`
	Namespace      string `json:"namespace"`
	Pod            string `json:"pod"`
	Count          string `json:"count"`
	LastOccurrence string `json:"last_occurrence"`
}

type MessageConfig

type MessageConfig struct {
	FollowupOptions []string `json:"followupOptions"`

	FollowupType string `json:"followupType"`

	Question string `json:"question"`
}

type MetricsQueryResponse

type MetricsQueryResponse struct {
	MetricsQuery struct {
		Results []MetricsResponse `json:"results"`
	} `json:"metrics_list"`
}

type MetricsResponse

type MetricsResponse struct {
	QueryKey string          `json:"query_key"`
	Payload  []MetricsResult `json:"payload"`
}

type MetricsResult

type MetricsResult struct {
	Metric     map[string]string `json:"metric"`
	Timestamps []float64         `json:"timestamps"`
	Values     []float64         `json:"values"`
}

type NubiToolInput

type NubiToolInput struct {
	Query string `json:"query" jsonschema:"The user's question or request in human-readable form."`
}

NubiToolInput represents the input for the Nubi tool.

type NubiToolOutput

type NubiToolOutput struct {
	Response map[string]any `json:"response" jsonschema:"The response from the Nubi agent."`
}

NubiToolOutput represents the output from the Nubi tool.

type SecurityImageRecommendation

type SecurityImageRecommendation struct {
	Severity       string          `json:"severity"`
	Recommendation json.RawMessage `json:"recommendation"`
	Image          string          `json:"image"`
	ID             string          `json:"id"`
	Namespace      string          `json:"namespace"`
	WorkloadName   string          `json:"workload_name"`
	PackageID      string          `json:"package_id"`
}

type SecurityImageResponse

type SecurityImageResponse struct {
	Recommendation struct {
		Rows []SecurityImageRecommendation `json:"rows"`
	} `json:"recommendation"`
	RecommendationAggregate struct {
		Rows []struct {
			Count int `json:"count"`
		} `json:"rows"`
	} `json:"recommendation_aggregate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL