Documentation ¶
Index ¶
- Constants
- func ComponentCostRun()
- func ComponentRun()
- func ComponentStatusSummarySync()
- func NewTopologyParams(values url.Values) duty.TopologyOptions
- func Query(params duty.TopologyOptions) (*duty.TopologyResponse, error)
- func Run(opts TopologyRunOptions, s v1.Topology) []*pkg.Component
- func SyncComponentRelationships(parentComponentID uuid.UUID, relationships []*pkg.ComponentRelationship) error
- func SyncComponents(opts TopologyRunOptions, topology v1.Topology) error
- type ComponentContext
- func (c *ComponentContext) Clone() *ComponentContext
- func (c *ComponentContext) GetTemplater() ktemplate.StructTemplater
- func (c *ComponentContext) SetCurrentComponent(component *pkg.Component)
- func (c *ComponentContext) TemplateComponent(component *v1.ComponentSpec) error
- func (c *ComponentContext) TemplateConfig(config *v1.Config) error
- func (c *ComponentContext) TemplateProperty(property *v1.Property) error
- func (c *ComponentContext) TemplateStruct(data interface{}) error
- func (c *ComponentContext) WithComponents(components *pkg.Components, current *pkg.Component) *ComponentContext
- type TopologyRunOptions
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) (*duty.TopologyResponse, error)
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 // 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 ¶
Click to show internal directories.
Click to hide internal directories.