Documentation ¶
Index ¶
- Constants
- func ComponentRun()
- func ComponentStatusSummarySync()
- func Query(params TopologyParams) (pkg.Components, error)
- func Run(opts TopologyRunOptions, s v1.SystemTemplate) []*pkg.Component
- func SyncComponentRelationships(parentComponentID uuid.UUID, relationships []*pkg.ComponentRelationship) error
- type ComponentContext
- type TopologyParams
- type TopologyRunOptions
Constants ¶
View Source
const DefaultDepth = 1
Variables ¶
This section is empty.
Functions ¶
func ComponentRun ¶ added in v0.38.114
func ComponentRun()
Fetches and updates the selected component for components
func ComponentStatusSummarySync ¶ added in v0.38.146
func ComponentStatusSummarySync()
func Query ¶
func Query(params TopologyParams) (pkg.Components, error)
func Run ¶
func Run(opts TopologyRunOptions, s v1.SystemTemplate) []*pkg.Component
func SyncComponentRelationships ¶ added in v0.38.181
func SyncComponentRelationships(parentComponentID uuid.UUID, relationships []*pkg.ComponentRelationship) error
Types ¶
type ComponentContext ¶ added in v0.38.135
type ComponentContext struct { *context.KubernetesContext SystemTemplate v1.SystemTemplate ComponentAPI v1.Component // Components keep track of the components that properties can apply to, // properties can return a map of component names to properties to facilitate // queries that are more efficient to perform for all components rather than a component at a time Components *pkg.Components // Properties can either be looked up on an individual component, or act as a summary across all components CurrentComponent *pkg.Component }
func NewComponentContext ¶ added in v0.38.135
func NewComponentContext(client *kommons.Client, system v1.SystemTemplate) *ComponentContext
func (*ComponentContext) Clone ¶ added in v0.38.135
func (c *ComponentContext) Clone() *ComponentContext
func (*ComponentContext) WithComponents ¶ added in v0.38.135
func (c *ComponentContext) WithComponents(components *pkg.Components, current *pkg.Component) *ComponentContext
type TopologyParams ¶
type TopologyParams struct { ID string `query:"id"` TopologyID string `query:"topologyId"` ComponentID string `query:"componentId"` Owner string `query:"owner"` Labels string `query:"labels"` Status []string `query:"status"` Types []string `query:"types"` Depth int `query:"depth"` Flatten bool `query:"flatten"` IncludeConfig bool `query:"includeConfig"` IncludeHealth bool `query:"includeHealth"` }
func NewTopologyParams ¶
func NewTopologyParams(values url.Values) TopologyParams
func (TopologyParams) GetComponentRelationWhereClause ¶ added in v0.38.140
func (p TopologyParams) GetComponentRelationWhereClause() string
func (TopologyParams) GetComponentWhereClause ¶
func (p TopologyParams) GetComponentWhereClause() string
func (TopologyParams) String ¶
func (p TopologyParams) String() string
Click to show internal directories.
Click to hide internal directories.