Documentation
¶
Index ¶
- Constants
- func FormatLabels(labels map[string]string) string
- func FormatList(values []string) string
- func ParseSelector(values []string) (map[string]string, error)
- func RedactSecretRefs(value string) string
- func RenderGraphHTML(result GraphResult) ([]byte, error)
- type GraphEdge
- type GraphNode
- type GraphResult
- type ShowRequest
- type ShowResult
- type TargetView
Constants ¶
View Source
const ( APIVersion = "torque.dev/ops/inventory/v1alpha1" ShowKind = "InventoryShow" )
View Source
const GraphKind = "InventoryGraph"
Variables ¶
This section is empty.
Functions ¶
func FormatLabels ¶
func FormatList ¶
func RedactSecretRefs ¶
func RenderGraphHTML ¶
func RenderGraphHTML(result GraphResult) ([]byte, error)
Types ¶
type GraphResult ¶
type GraphResult struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
GraphName string `json:"graphName"`
Summary targetgraph.Summary `json:"summary"`
Selection targetgraph.SelectionResult `json:"selection"`
SelectedTargetIDs []string `json:"selectedTargetIds"`
Nodes []GraphNode `json:"nodes"`
Edges []GraphEdge `json:"edges"`
}
func Graph ¶
func Graph(graph *targetgraph.TargetGraph, request ShowRequest) (GraphResult, error)
func (GraphResult) JSON ¶
func (r GraphResult) JSON() ([]byte, error)
type ShowResult ¶
type ShowResult struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
GraphName string `json:"graphName"`
Summary targetgraph.Summary `json:"summary"`
Selection targetgraph.SelectionResult `json:"selection"`
Targets []TargetView `json:"targets"`
}
func Show ¶
func Show(graph *targetgraph.TargetGraph, request ShowRequest) (ShowResult, error)
func (ShowResult) JSON ¶
func (r ShowResult) JSON() ([]byte, error)
type TargetView ¶
type TargetView struct {
ID string `json:"id"`
Type string `json:"type"`
TransportRef string `json:"transportRef,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Groups []string `json:"groups,omitempty"`
FactsTTL string `json:"factsTtl,omitempty"`
FactsDiscovery string `json:"factsDiscovery,omitempty"`
PrivilegeProfile string `json:"privilegeProfile,omitempty"`
LockScope string `json:"lockScope,omitempty"`
AllowedCapabilities []string `json:"allowedCapabilities,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.