providers

package
v0.0.0-...-d0b32f8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	Untar(content []byte) ([]byte, error)
}

Archiver can extract files from an archive.

type ListOpts

type ListOpts struct {
	TypeFilter string
}

ListOpts defines options for listing plugins.

type Runner

type Runner interface {
	Run(ctx context.Context, name string, args []string) error
}

Runner runs a plugin.

type Storer

type Storer interface {
	Init() error
	Create(ctx context.Context, plugin *models.Plugin) error
	Get(ctx context.Context, name string) (*models.Plugin, error)
	Delete(ctx context.Context, name string) error
	List(ctx context.Context, opts ListOpts) ([]*models.Plugin, error)
}

Storer can store information about the plugins that were created.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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