topology

package
v0.38.230 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDepth = 3

Variables

This section is empty.

Functions

func ComponentCostRun added in v0.38.199

func ComponentCostRun()

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 NewTopologyParams

func NewTopologyParams(values url.Values) duty.TopologyOptions

func Query

func Query(params duty.TopologyOptions) (models.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
	// contains filtered or unexported fields
}

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) GetTemplater added in v0.38.193

func (c *ComponentContext) GetTemplater() ktemplate.StructTemplater

func (*ComponentContext) SetCurrentComponent added in v0.38.193

func (c *ComponentContext) SetCurrentComponent(component *pkg.Component)

func (*ComponentContext) TemplateComponent added in v0.38.193

func (c *ComponentContext) TemplateComponent(component *v1.ComponentSpec) error

func (*ComponentContext) TemplateConfig added in v0.38.193

func (c *ComponentContext) TemplateConfig(config *v1.Config) error

func (*ComponentContext) TemplateProperty added in v0.38.193

func (c *ComponentContext) TemplateProperty(property *v1.Property) error

func (*ComponentContext) TemplateStruct added in v0.38.193

func (c *ComponentContext) TemplateStruct(data interface{}) error

func (*ComponentContext) WithComponents added in v0.38.135

func (c *ComponentContext) WithComponents(components *pkg.Components, current *pkg.Component) *ComponentContext

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