Documentation
¶
Index ¶
- type AutodetectSourceType
- type Manager
- func (m *Manager) AutodetectProject(ctx context.Context, name string) (*project.Project, error)
- func (m *Manager) AutodetectSource(ctx context.Context, proj *project.Project, sourceNameSel string, ...) (*SourceDetectionResult, error)
- func (m *Manager) Destroy(ctx context.Context, proj *project.Project) error
- func (m *Manager) GetLocalMountCandidates(proj *project.Project, filter string) []string
- func (m *Manager) GetLocalMounts(proj *project.Project, filter string) []string
- func (m *Manager) Init(ctx context.Context, name, url, branch string) error
- func (m *Manager) List(filter string) ([]string, error)
- func (m *Manager) Load(ctx context.Context, name string, profiles []string) (*project.Project, error)
- type SourceDetectionResult
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 (*Manager) AutodetectProject ¶ added in v0.1.22
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) GetLocalMountCandidates ¶ added in v0.1.22
func (*Manager) GetLocalMounts ¶ added in v0.1.22
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.
Click to show internal directories.
Click to hide internal directories.