resolver

package
v1.0.1-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

func Resolve

func Resolve(
	ctx context.Context,
	pluginStore store.PluginStore,
	templateStore store.TemplateStore,
	spaceID int64,
) func(name, kind, typ, version string) (*v1yaml.Config, error)

Resolve returns a resolve function which resolves plugins and templates. It searches for plugins globally and for templates in the same space and substitutes them in the pipeline yaml.

Types

type LookupFunc

type LookupFunc func(name, kind, typ, version string, id int64) (*v1yaml.Config, error)

Lookup returns a resource by name, kind and type. It also sends in the execution ID.

type Manager

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

func NewManager

func NewManager(
	config *types.Config,
	pluginStore store.PluginStore,
	templateStore store.TemplateStore,
	executionStore store.ExecutionStore,
	repoStore store.RepoStore,
) *Manager

func ProvideResolver

func ProvideResolver(
	config *types.Config,
	pluginStore store.PluginStore,
	templateStore store.TemplateStore,
	executionStore store.ExecutionStore,
	repoStore store.RepoStore,
) *Manager

ProvideResolver provides a resolver which can resolve templates and plugins.

func (*Manager) GetLookupFn

func (m *Manager) GetLookupFn() LookupFunc

GetLookupFn returns a lookup function for plugins and templates which can be used in the resolver passed to the drone runner.

func (*Manager) Populate

func (m *Manager) Populate(ctx context.Context) error

Populate fetches plugins information from an external source or a local zip and populates in the DB.

Jump to

Keyboard shortcuts

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