actionmgr

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	pb.ActionServiceServer
	SearchActions(items []string, ops ...OpOption) (map[string]*diceyml.Job, map[string]*apistructs.ActionSpec, error)
	MakeActionTypeVersion(action *pipelineyml.Action) string
	MakeActionLocationsBySource(source apistructs.PipelineSource) []string
}

type MockActionMgr

type MockActionMgr struct{}

func (*MockActionMgr) MakeActionLocationsBySource

func (m *MockActionMgr) MakeActionLocationsBySource(source apistructs.PipelineSource) []string

func (*MockActionMgr) MakeActionTypeVersion

func (m *MockActionMgr) MakeActionTypeVersion(action *pipelineyml.Action) string

func (*MockActionMgr) SearchActions

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

type OpOption

type OpOption func(*SearchOption)

func SearchOpWithClusterInfo

func SearchOpWithClusterInfo(clusterInfo map[string]string) OpOption

func SearchOpWithRender

func SearchOpWithRender(placeholders map[string]string) OpOption

type SearchOption

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

Jump to

Keyboard shortcuts

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