Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideResolver, )
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.