extmarketsvc

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeActionTypeVersion

func MakeActionTypeVersion(action *pipelineyml.Action) string

MakeActionTypeVersion return ext item. Example: git, git@1.0, git@1.1

Types

type ExtMarketSvc

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

func New

func New(bdl *bundle.Bundle) *ExtMarketSvc

func (*ExtMarketSvc) SearchActions

func (s *ExtMarketSvc) SearchActions(items []string, ops ...OpOption) (map[string]*diceyml.Job, map[string]*apistructs.ActionSpec, error)

each search item: ActionType 或 ActionType@version output: map[item]Image

type OpOption

type OpOption func(*SearchOption)

func SearchActionWithRender

func SearchActionWithRender(placeholders map[string]string) OpOption

type SearchOption

type SearchOption struct {
	NeedRender   bool
	Placeholders map[string]string
}

Jump to

Keyboard shortcuts

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