pb

package
v0.0.0-...-6c48755 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Color.ProtoReflect.Descriptor instead.

func (*Color) GetName

func (x *Color) GetName() string

func (*Color) GetRgb

func (x *Color) GetRgb() string

func (*Color) GetValue

func (m *Color) GetValue() isColor_Value

func (*Color) GetXterm

func (x *Color) GetXterm() int32

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) ProtoReflect

func (x *Color) ProtoReflect() protoreflect.Message

func (*Color) Reset

func (x *Color) Reset()

func (*Color) String

func (x *Color) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCurrentTheme

func (x *Config) GetCurrentTheme() string

func (*Config) GetMenu

func (x *Config) GetMenu() []*Resource

func (*Config) GetThemes

func (x *Config) GetThemes() []*Theme

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetGroup

func (x *Resource) GetGroup() string

func (*Resource) GetKind

func (x *Resource) GetKind() string

func (*Resource) GetNamespaced

func (x *Resource) GetNamespaced() bool

func (*Resource) GetTitle

func (x *Resource) GetTitle() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Style.ProtoReflect.Descriptor instead.

func (*Style) GetAttrs

func (x *Style) GetAttrs() []StyleAttribute

func (*Style) GetBg

func (x *Style) GetBg() string

func (*Style) GetFg

func (x *Style) GetFg() string

func (*Style) GetName

func (x *Style) GetName() string

func (*Style) ProtoMessage

func (*Style) ProtoMessage()

func (*Style) ProtoReflect

func (x *Style) ProtoReflect() protoreflect.Message

func (*Style) Reset

func (x *Style) Reset()

func (*Style) String

func (x *Style) String() string

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) Enum

func (x StyleAttribute) Enum() *StyleAttribute

func (StyleAttribute) EnumDescriptor deprecated

func (StyleAttribute) EnumDescriptor() ([]byte, []int)

Deprecated: Use StyleAttribute.Descriptor instead.

func (StyleAttribute) Number

func (StyleAttribute) String

func (x StyleAttribute) String() string

func (StyleAttribute) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Theme.ProtoReflect.Descriptor instead.

func (*Theme) GetColors

func (x *Theme) GetColors() []*Color

func (*Theme) GetName

func (x *Theme) GetName() string

func (*Theme) GetStyles

func (x *Theme) GetStyles() []*Style

func (*Theme) ProtoMessage

func (*Theme) ProtoMessage()

func (*Theme) ProtoReflect

func (x *Theme) ProtoReflect() protoreflect.Message

func (*Theme) Reset

func (x *Theme) Reset()

func (*Theme) String

func (x *Theme) String() string

Jump to

Keyboard shortcuts

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