Documentation
¶
Index ¶
- Variables
- type Color
- func (*Color) Descriptor() ([]byte, []int)deprecated
- func (x *Color) GetName() string
- func (x *Color) GetRgb() string
- func (m *Color) GetValue() isColor_Value
- func (x *Color) GetXterm() int32
- func (*Color) ProtoMessage()
- func (x *Color) ProtoReflect() protoreflect.Message
- func (x *Color) Reset()
- func (x *Color) String() string
- type Color_Rgb
- type Color_Xterm
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetCurrentTheme() string
- func (x *Config) GetMenu() []*Resource
- func (x *Config) GetThemes() []*Theme
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetGroup() string
- func (x *Resource) GetKind() string
- func (x *Resource) GetNamespaced() bool
- func (x *Resource) GetTitle() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type Style
- func (*Style) Descriptor() ([]byte, []int)deprecated
- func (x *Style) GetAttrs() []StyleAttribute
- func (x *Style) GetBg() string
- func (x *Style) GetFg() string
- func (x *Style) GetName() string
- func (*Style) ProtoMessage()
- func (x *Style) ProtoReflect() protoreflect.Message
- func (x *Style) Reset()
- func (x *Style) String() string
- type StyleAttribute
- func (StyleAttribute) Descriptor() protoreflect.EnumDescriptor
- func (x StyleAttribute) Enum() *StyleAttribute
- func (StyleAttribute) EnumDescriptor() ([]byte, []int)deprecated
- func (x StyleAttribute) Number() protoreflect.EnumNumber
- func (x StyleAttribute) String() string
- func (StyleAttribute) Type() protoreflect.EnumType
- type Theme
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StyleAttribute_name = map[int32]string{ 0: "NONE", 1: "BOLD", 2: "BLINK", 3: "REVERSE", 4: "UNDERLINE", 5: "DIM", } StyleAttribute_value = map[string]int32{ "NONE": 0, "BOLD": 1, "BLINK": 2, "REVERSE": 3, "UNDERLINE": 4, "DIM": 5, } )
Enum value maps for StyleAttribute.
View Source
var File_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to Value: // *Color_Rgb // *Color_Xterm Value isColor_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
Color palette allows to reuse colors in theme
func (*Color) Descriptor
deprecated
func (*Color) ProtoMessage ¶
func (*Color) ProtoMessage()
func (*Color) ProtoReflect ¶
func (x *Color) ProtoReflect() protoreflect.Message
type Color_Rgb ¶
type Color_Rgb struct {
Rgb string `protobuf:"bytes,2,opt,name=rgb,proto3,oneof"`
}
type Color_Xterm ¶
type Color_Xterm struct {
Xterm int32 `protobuf:"varint,3,opt,name=xterm,proto3,oneof"`
}
type Config ¶
type Config struct { Menu []*Resource `protobuf:"bytes,1,rep,name=menu,proto3" json:"menu,omitempty"` CurrentTheme string `protobuf:"bytes,2,opt,name=currentTheme,proto3" json:"currentTheme,omitempty"` Themes []*Theme `protobuf:"bytes,3,rep,name=themes,proto3" json:"themes,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetCurrentTheme ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Resource ¶
type Resource struct { Namespaced bool `protobuf:"varint,1,opt,name=namespaced,proto3" json:"namespaced,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetNamespaced ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type Style ¶
type Style struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Bg string `protobuf:"bytes,2,opt,name=bg,proto3" json:"bg,omitempty"` Fg string `protobuf:"bytes,3,opt,name=fg,proto3" json:"fg,omitempty"` Attrs []StyleAttribute `protobuf:"varint,4,rep,packed,name=attrs,proto3,enum=AnatolyRugalev.kubecom.config.StyleAttribute" json:"attrs,omitempty"` // contains filtered or unexported fields }
func (*Style) Descriptor
deprecated
func (*Style) GetAttrs ¶
func (x *Style) GetAttrs() []StyleAttribute
func (*Style) ProtoMessage ¶
func (*Style) ProtoMessage()
func (*Style) ProtoReflect ¶
func (x *Style) ProtoReflect() protoreflect.Message
type StyleAttribute ¶
type StyleAttribute int32
const ( StyleAttribute_NONE StyleAttribute = 0 StyleAttribute_BOLD StyleAttribute = 1 StyleAttribute_BLINK StyleAttribute = 2 StyleAttribute_REVERSE StyleAttribute = 3 StyleAttribute_UNDERLINE StyleAttribute = 4 StyleAttribute_DIM StyleAttribute = 5 )
func (StyleAttribute) Descriptor ¶
func (StyleAttribute) Descriptor() protoreflect.EnumDescriptor
func (StyleAttribute) Enum ¶
func (x StyleAttribute) Enum() *StyleAttribute
func (StyleAttribute) EnumDescriptor
deprecated
func (StyleAttribute) EnumDescriptor() ([]byte, []int)
Deprecated: Use StyleAttribute.Descriptor instead.
func (StyleAttribute) Number ¶
func (x StyleAttribute) Number() protoreflect.EnumNumber
func (StyleAttribute) String ¶
func (x StyleAttribute) String() string
func (StyleAttribute) Type ¶
func (StyleAttribute) Type() protoreflect.EnumType
type Theme ¶
type Theme struct { // Theme unique name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Color palette Colors []*Color `protobuf:"bytes,2,rep,name=colors,proto3" json:"colors,omitempty"` // Components color bindings Styles []*Style `protobuf:"bytes,3,rep,name=styles,proto3" json:"styles,omitempty"` // contains filtered or unexported fields }
TODO: add Register method to theme manager TODO: register components with their styles into manager TODO: cycle through components and styles and edit themes through manager
func (*Theme) Descriptor
deprecated
func (*Theme) ProtoMessage ¶
func (*Theme) ProtoMessage()
func (*Theme) ProtoReflect ¶
func (x *Theme) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.