repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 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 FileRepository

type FileRepository interface {
	// Find returns *entity.Plugin for provided plugin file, return error if file is not a nori Plugin
	Find(file string) (*entity.File, error)
	// FindAll returns entity.Plugin structure for each plugin found in array of file paths
	FindAll(path ...string) ([]entity.File, error)
}

type PluginOptionRepository

type PluginOptionRepository interface {
	Upsert(po entity.PluginOption) error
	Delete(id meta.ID) error

	Find(id meta.ID) (entity.PluginOption, error)
	FindAll() ([]entity.PluginOption, error)
}

type PluginRepository

type PluginRepository interface {
	Create(file *entity.File) (*entity.Plugin, error)
	Delete(file *entity.File) error

	Find(id meta.ID) (*entity.Plugin, error)
	FindAll() []*entity.Plugin
	FindByIDs(ids []meta.ID) []*entity.Plugin
}

Jump to

Keyboard shortcuts

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