extenders

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NamespaceExtenders = "extenders"
	CommandSet         = "set"
	CommandDelete      = "delete"
)

Variables

View Source
var (
	ErrorNotExist       = errors.New("not exist")
	ErrorInvalidVersion = errors.New("invalid version")
	ErrorInvalidCommand = errors.New("invalid command")
)

Functions

This section is empty.

Types

type Extender

type Extender struct {
	Id      string
	Group   string
	Project string
	Version string
	Render  interface{}
}

type ExtenderData

type ExtenderData struct {
	// contains filtered or unexported fields
}

func (*ExtenderData) All

func (ed *ExtenderData) All() []*Extender

func (*ExtenderData) Del

func (ed *ExtenderData) Del(id string)

func (*ExtenderData) Reset

func (ed *ExtenderData) Reset(extenders []*Extender)

func (*ExtenderData) Set

func (ed *ExtenderData) Set(extender *Extender)

type ExtenderSetting

type ExtenderSetting struct {
	// contains filtered or unexported fields
}

func NewInstallData

func NewInstallData() *ExtenderSetting

func (*ExtenderSetting) All

func (i *ExtenderSetting) All() map[string]string

func (*ExtenderSetting) Del

func (i *ExtenderSetting) Del(group, project string)

func (*ExtenderSetting) DelByExtenderID added in v0.3.3

func (i *ExtenderSetting) DelByExtenderID(extenderID string)

func (*ExtenderSetting) DelByID added in v0.3.3

func (i *ExtenderSetting) DelByID(id string)

func (*ExtenderSetting) Get

func (i *ExtenderSetting) Get(group, project string) (string, bool)

func (*ExtenderSetting) GetPluginByID added in v0.3.3

func (i *ExtenderSetting) GetPluginByID(id string) (*service.Plugin, bool)

func (*ExtenderSetting) GetPlugins

func (i *ExtenderSetting) GetPlugins() []*service.Plugin

func (*ExtenderSetting) GetPluginsByExtenderID added in v0.3.3

func (i *ExtenderSetting) GetPluginsByExtenderID(extenderID string) ([]*service.Plugin, bool)

func (*ExtenderSetting) Reset

func (i *ExtenderSetting) Reset(m map[string]string)

func (*ExtenderSetting) Set

func (i *ExtenderSetting) Set(group, project, version string)

func (*ExtenderSetting) SetPluginByID added in v0.3.3

func (i *ExtenderSetting) SetPluginByID(id string, plugin *service.Plugin)

func (*ExtenderSetting) SetPluginsByExtenderID added in v0.3.3

func (i *ExtenderSetting) SetPluginsByExtenderID(extenderID string, plugins []*service.Plugin)

type IExtenders

type IExtenders interface {
}

type ITypedExtenderData

type ITypedExtenderData interface {
	Reset([]*Extender)
	Set(extender *Extender)
	Del(id string)
	All() []*Extender
}

type ITypedExtenderSetting

type ITypedExtenderSetting interface {
	Set(group, project, version string)
	Del(group, project string)
	Get(group, project string) (version string, has bool)
	All() map[string]string
	Reset(map[string]string)
	ITypedPlugin
}

type ITypedPlugin added in v0.3.3

type ITypedPlugin interface {
	DelByExtenderID(extenderID string)
	DelByID(id string)
	GetPluginsByExtenderID(extenderID string) ([]*service.Plugin, bool)
	SetPluginsByExtenderID(extenderID string, plugins []*service.Plugin)
	GetPlugins() []*service.Plugin
	GetPluginByID(id string) (*service.Plugin, bool)
	SetPluginByID(id string, plugin *service.Plugin)
}

Jump to

Keyboard shortcuts

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