manager

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutodetectSourceType added in v0.1.10

type AutodetectSourceType int
const (
	AutodetectSourceForMount AutodetectSourceType = iota
	AutodetectSourceForUmount
)

type Manager added in v0.1.22

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

func New added in v0.1.22

func New() *Manager

New creates a Manager with default implementations.

func (*Manager) AutodetectProject added in v0.1.22

func (m *Manager) AutodetectProject(ctx context.Context, 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 (*Manager) AutodetectSource added in v0.1.22

func (m *Manager) AutodetectSource(ctx context.Context, proj *project.Project, sourceNameSel string, purpose AutodetectSourceType) (*SourceDetectionResult, error)

AutodetectSource detects sources and affected services based on current directory or explicit selection.

func (*Manager) Destroy added in v0.1.22

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

func (*Manager) GetLocalMountCandidates added in v0.1.22

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

func (*Manager) GetLocalMounts added in v0.1.22

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

func (*Manager) Init added in v0.1.22

func (m *Manager) Init(ctx context.Context, name, url, branch string) error

func (*Manager) List added in v0.1.22

func (m *Manager) List(filter string) ([]string, error)

func (*Manager) Load added in v0.1.22

func (m *Manager) Load(ctx context.Context, name string, profiles []string) (*project.Project, error)

type SourceDetectionResult added in v0.1.22

type SourceDetectionResult struct {
	Sources          []string // Detected source paths (e.g., "./sources/backend")
	AffectedServices []string // Services that use these sources
	LocalPath        string   // Path to mount from (empty if using cwd)
}

SourceDetectionResult contains the result of source autodetection.

Jump to

Keyboard shortcuts

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