plugins

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfluencePage added in v1.1.0

type ConfluencePage struct {
	ID    string `json:"id"`
	Type  string `json:"type"`
	Title string `json:"title"`
}

type ConfluencePageContent added in v1.2.0

type ConfluencePageContent struct {
	Body struct {
		Storage struct {
			Value string `json:"value"`
		} `json:"storage"`
	} `json:"body"`
	History struct {
		PreviousVersion struct {
			Number int
		} `json:"previousVersion"`
	} `json:"history"`
	Version struct {
		Number int `json:"number"`
	} `json:"version"`
}

type ConfluencePageResponse added in v1.2.0

type ConfluencePageResponse struct {
	Results ConfluencePageResult `json:"page"`
}

type ConfluencePageResult added in v1.1.0

type ConfluencePageResult struct {
	Pages []ConfluencePage `json:"results"`
}

type ConfluencePlugin added in v1.1.0

type ConfluencePlugin struct {
	Plugin
	URL      string
	Token    string
	Username string
	Spaces   []string
	History  bool
}

func (*ConfluencePlugin) DefineCommandLineArgs added in v1.1.0

func (p *ConfluencePlugin) DefineCommandLineArgs(cmd *cobra.Command) error

func (*ConfluencePlugin) GetCredentials added in v1.2.1

func (p *ConfluencePlugin) GetCredentials() (string, string)

func (*ConfluencePlugin) GetItems added in v1.1.0

func (p *ConfluencePlugin) GetItems(items chan Item, errs chan error, wg *sync.WaitGroup)

func (*ConfluencePlugin) Initialize added in v1.1.0

func (p *ConfluencePlugin) Initialize(cmd *cobra.Command) error

func (*ConfluencePlugin) IsEnabled added in v1.1.0

func (p *ConfluencePlugin) IsEnabled() bool

type ConfluenceSpaceResponse added in v1.1.0

type ConfluenceSpaceResponse struct {
	Results []ConfluenceSpaceResult `json:"results"`
	Size    int                     `json:"size"`
}

type ConfluenceSpaceResult added in v1.1.0

type ConfluenceSpaceResult struct {
	ID    int               `json:"id"`
	Key   string            `json:"key"`
	Name  string            `json:"Name"`
	Links map[string]string `json:"_links"`
}

type DiscordPlugin added in v1.4.0

type DiscordPlugin struct {
	Enabled          bool
	Token            string
	Guilds           []string
	Channels         []string
	Count            int
	BackwardDuration time.Duration
	Session          *discordgo.Session
	// contains filtered or unexported fields
}

func (*DiscordPlugin) DefineCommandLineArgs added in v1.4.0

func (p *DiscordPlugin) DefineCommandLineArgs(cmd *cobra.Command) error

func (*DiscordPlugin) GetItems added in v1.4.0

func (p *DiscordPlugin) GetItems(itemsChan chan Item, errChan chan error, wg *sync.WaitGroup)

func (*DiscordPlugin) Initialize added in v1.4.0

func (p *DiscordPlugin) Initialize(cmd *cobra.Command) error

func (*DiscordPlugin) IsEnabled added in v1.4.0

func (p *DiscordPlugin) IsEnabled() bool

type IPlugin added in v1.1.0

type IPlugin interface {
	DefineCommandLineArgs(cmd *cobra.Command) error
	Initialize(cmd *cobra.Command) error
	GetItems(chan Item, chan error, *sync.WaitGroup)
	IsEnabled() bool
}

type Item added in v1.1.0

type Item struct {
	Content string
	Source  string
	ID      string
}

type Plugin

type Plugin struct {
	ID      string
	Enabled bool
	Limit   chan struct{}
}

type RepositoryPlugin added in v1.3.0

type RepositoryPlugin struct {
	Plugin
	Path string
}

func (*RepositoryPlugin) DefineCommandLineArgs added in v1.3.0

func (p *RepositoryPlugin) DefineCommandLineArgs(cmd *cobra.Command) error

func (*RepositoryPlugin) GetItems added in v1.3.0

func (p *RepositoryPlugin) GetItems(items chan Item, errs chan error, wg *sync.WaitGroup)

func (*RepositoryPlugin) Initialize added in v1.3.0

func (p *RepositoryPlugin) Initialize(cmd *cobra.Command) error

func (*RepositoryPlugin) IsEnabled added in v1.3.0

func (p *RepositoryPlugin) IsEnabled() bool

Jump to

Keyboard shortcuts

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