topology

package
v0.38.125 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentRun added in v0.38.114

func ComponentRun()

Fetches and updates the selected component for components

func Query

func Query(params TopologyParams) ([]pkg.System, error)

func Run

Types

type SystemContext

type SystemContext struct {
	*context.KubernetesContext
	SystemAPI    v1.SystemTemplate
	ComponentAPI v1.Component
	System       *pkg.System
	// 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 NewSystemContext

func NewSystemContext(client *kommons.Client, system v1.SystemTemplate) *SystemContext

func (*SystemContext) Clone

func (c *SystemContext) Clone() *SystemContext

func (*SystemContext) WithComponents

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

type TopologyParams

type TopologyParams struct {
	Id          string
	TopologyId  string
	ComponentId string
	Status      string
	Depth       int
}

nolint

func NewTopologyParams

func NewTopologyParams(values url.Values) TopologyParams

func (TopologyParams) GetComponentWhereClause

func (p TopologyParams) GetComponentWhereClause() string

func (TopologyParams) GetSystemWhereClause

func (p TopologyParams) GetSystemWhereClause() string

func (TopologyParams) String

func (p TopologyParams) String() string

type TopologyRunOptions

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

Jump to

Keyboard shortcuts

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