mgr

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectChefBerkshelf

func DetectChefBerkshelf(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectGeneric

func DetectGeneric(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectGolangDep

func DetectGolangDep(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectGolangGlide

func DetectGolangGlide(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectGolangMod

func DetectGolangMod(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectNodeNpm

func DetectNodeNpm(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectNodeYarn

func DetectNodeYarn(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectPythonPip

func DetectPythonPip(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

func DetectRubyBundler

func DetectRubyBundler(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) bool

Types

type Interface

type Interface interface {
	Init(pipelineData *pipeline.Data, myconfig config.Interface, client *http.Client) error

	// Validate that required executables are available for the following build/test/package/etc steps
	MgrValidateTools() error

	// Commit any local changes and create a git tag. Nothing should be pushed to remote repository yet.
	// Make sure you remove any unnecessary files from the repo before making the commit
	// CAN NOT override
	// REQUIRES pipelineData.GitLocalPath
	// REQUIRES NextMetadata
	// USES mgr_keep_lock_file
	MgrPackageStep(nextMetadata interface{}) error
}

Create mock using: mockgen -source=pkg/mgr/interface.go -destination=pkg/mgr/mock/mock_mgr.go

func Create

func Create(mgrType string, pipelineData *pipeline.Data, config config.Interface, client *http.Client) (Interface, error)

func Detect

func Detect(packageType string, pipelineData *pipeline.Data, config config.Interface, client *http.Client) (Interface, error)

Directories

Path Synopsis
Package mock_mgr is a generated GoMock package.
Package mock_mgr is a generated GoMock package.

Jump to

Keyboard shortcuts

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