marketplace

package
v0.0.0-...-edc1246 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marketplace

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

Marketplace is a gateway to interact with Mattermost Plugin Marketplace.

func New

func New(addr string) *Marketplace

New creates a new Marketplace with given Marketplace address addr.

func (*Marketplace) ListPlugins

func (m *Marketplace) ListPlugins() (Plugins, error)

ListPlugins fetches all plugins from the Marketplace.

type NotFoundError

type NotFoundError struct {
	// ID of the plugin.
	ID string
}

NotFoundError error is returned when a plugin with id is not found.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type Plugins

type Plugins []*model.BaseMarketplacePlugin

Plugins is a list of Marketplace plugins.

func (*Plugins) GetPlugin

func (p *Plugins) GetPlugin(id string) (*model.BaseMarketplacePlugin, error)

GetPlugin gets a plugin by id.

Jump to

Keyboard shortcuts

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