plugins

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 7 Imported by: 2

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 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
}

func (*ConfluencePlugin) DefineCommandLineArgs added in v1.1.0

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

func (*ConfluencePlugin) GetItems added in v1.1.0

func (p *ConfluencePlugin) GetItems() (*[]Item, error)

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 IPlugin added in v1.1.0

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

type Item added in v1.1.0

type Item struct {
	Content string
	Source  string
	ID      string
}

type PageResponse

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

type Plugin

type Plugin struct {
	ID      string
	Enabled bool
}

Jump to

Keyboard shortcuts

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