plugin

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollectionPrefix = "dev"

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Type    string
	Name    string
	Aliases []string
	Repo    string
}

func (*Plugin) Get

func (p *Plugin) Get(ctx context.Context, db *firestore.Client) (*registry.Plugin, error)

func (*Plugin) GetAliases added in v1.10.0

func (p *Plugin) GetAliases() []string

func (*Plugin) GetFullName

func (p *Plugin) GetFullName() string

func (*Plugin) GetRelease

func (p *Plugin) GetRelease(ctx context.Context, db *firestore.Client, version string) (*registry.PluginRelease, error)

func (*Plugin) GetReleaseWithVersionConstraint

func (p *Plugin) GetReleaseWithVersionConstraint(ctx context.Context, db *firestore.Client, versionConstraint string) (*registry.PluginRelease, error)

func (*Plugin) GetVersions added in v1.11.0

func (p *Plugin) GetVersions(ctx context.Context, db *firestore.Client) ([]string, error)

func (*Plugin) Update

func (p *Plugin) Update(ctx context.Context, db *firestore.Client, ghClient *github.Client, version string) error

type Plugins

type Plugins []*Plugin

func (Plugins) Find

func (l Plugins) Find(name string) *Plugin

Jump to

Keyboard shortcuts

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