actions

package
v0.0.0-...-678a821 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	actions.BaseInfo
	// contains filtered or unexported fields
}

func (*Group) Actions

func (g *Group) Actions() []actions.Action

func (*Group) AddAction

func (g *Group) AddAction(name, description string, svgIcon []byte, runFunc interface{})

func (*Group) AddManualTrigger

func (g *Group) AddManualTrigger(name, description string, svgIcon []byte, runFunc interface{})

type Provider

type Provider struct {
	actions.BaseInfo

	Requirements map[string]actions.Requirement

	OAuth2Endpoint oauth2.Endpoint
	// contains filtered or unexported fields
}

func (*Provider) AddGroup

func (p *Provider) AddGroup(name, description string, svgIcon []byte) actions.Group

func (*Provider) AddRequirement

func (p *Provider) AddRequirement(req actions.Requirement)

func (*Provider) Groups

func (p *Provider) Groups() []actions.Group

type ProviderRegistry

type ProviderRegistry struct {
	// contains filtered or unexported fields
}
var GlobalRegistry *ProviderRegistry

func NewRegistry

func NewRegistry() *ProviderRegistry

func (*ProviderRegistry) AddProvider

func (r *ProviderRegistry) AddProvider(name, description string, svgIcon []byte) actions.Provider

func (*ProviderRegistry) GetAction

func (r *ProviderRegistry) GetAction(provider, group, action string) (actions.Action, error)

func (*ProviderRegistry) LoadProviderConfigs

func (p *ProviderRegistry) LoadProviderConfigs() error

func (*ProviderRegistry) Provider

func (r *ProviderRegistry) Provider(name string) *Provider

func (*ProviderRegistry) Providers

func (r *ProviderRegistry) Providers() []actions.Provider

Directories

Path Synopsis
builtin

Jump to

Keyboard shortcuts

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