model

package
v0.0.0-...-fabe767 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlainViewStyle

type PlainViewStyle struct {
	ViewStyle
}

type StageViewStyle

type StageViewStyle struct {
	ViewStyle
	Stages []*ViewStage
}

type TreeViewItem

type TreeViewItem struct {
	Matcher     resModel.ResourceMatcher
	Relations   []*resModel.RelationName
	Children    []*TreeViewItem
	ShowPattern string
}

type TreeViewStyle

type TreeViewStyle struct {
	ViewStyle
	Items []*TreeViewItem
}

type View

type View struct {
	Name      string
	Alias     string
	Scene     string
	Resources []*resModel.ResourceMatcher `json:",omitempty"`
	Relations []*resModel.RelationName    `json:",omitempty"`
	Styles    *ViewStyles                 `json:",omitempty"`
}

View Service view is made up with a set of resources, and is used for all observe operations.

type ViewSliceResourceSelector

type ViewSliceResourceSelector struct {
	TargetType   resModel.TypeName       // TargetType is the SchemaName of current Node(s), required
	RelationName []resModel.RelationName // RelationName combines with Type and additional Params type to be a relation.
	Matchers     []*labels.Matcher       // Matchers is the resource selector for filtering.
}

ViewSliceResourceSelector used for resource query or relation query purpose.

type ViewStage

type ViewStage struct {
	StageName promModel.LabelName // StageName is unique in the view.

	SourceType resModel.TypeName            // FromType SchemaName which is entrance of current stage, required.
	Current    []*ViewSliceResourceSelector // Current resource matcher wrapper for view use.
	Relations  []*resModel.RelationName     // Relations Searching with relations from current resources.
}

type ViewStyle

type ViewStyle struct {
	Enabled bool
}

type ViewStyleInf

type ViewStyleInf interface {
	Enabled() bool
}

type ViewStyles

type ViewStyles struct {
	PlainView PlainViewStyle
	TreeView  TreeViewStyle
	StageView StageViewStyle
}

ViewStyles defines the different show style for view

Jump to

Keyboard shortcuts

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