topology

package
v1.0.59 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 24 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 Run

func Run(opts TopologyRunOptions, t v1.Topology) []*pkg.Component

func SyncComponentRelationships added in v0.38.181

func SyncComponentRelationships(parentComponentID uuid.UUID, relationships []*pkg.ComponentRelationship) error

func SyncComponents added in v0.38.257

func SyncComponents(opts TopologyRunOptions, topology v1.Topology) error

Types

type ComponentContext added in v0.38.135

type ComponentContext struct {
	*context.KubernetesContext
	Topology     v1.Topology
	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

	JobHistory *models.JobHistory
	// contains filtered or unexported fields
}

func NewComponentContext added in v0.38.135

func NewComponentContext(client *kommons.Client, kubernetes kubernetes.Interface, system v1.Topology) *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
	Kubernetes kubernetes.Interface
	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