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 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 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
Click to show internal directories.
Click to hide internal directories.