manager

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutodetectProject added in v0.1.9

func AutodetectProject(name string) (*project.Project, error)

AutodetectProject validates project name (if provided) and tries to autodetect the project by comparing the current directory with the project sources and local mounts. If not successful or ambiguous, it returns an error.

func AutodetectSource added in v0.1.9

func AutodetectSource(project *project.Project, sourceNameSel string, purpose AutodetectSourceType) ([]string, []string, error)

func Destroy

func Destroy(ctx context.Context, project *project.Project) error

func GetLocalMountCandidates added in v0.1.10

func GetLocalMountCandidates(project *project.Project, filter string) []string

func GetLocalMounts added in v0.1.10

func GetLocalMounts(project *project.Project, filter string) []string

func Init

func Init(name, url string, branch string) error

func ListProjects

func ListProjects(filter string) []string

Types

type AutodetectSourceType added in v0.1.10

type AutodetectSourceType int
const (
	AutodetectSourceForMount AutodetectSourceType = iota
	AutodetectSourceForUmount
)

Jump to

Keyboard shortcuts

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