topology

package
v0.38.188 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 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

type TopologyRunOptions

type TopologyRunOptions struct {
	*kommons.Client
	Depth     int
	Namespace string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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