Documentation
¶
Index ¶
- type ComputeAdapter
- func (a *ComputeAdapter) Create(ctx context.Context, envName string, branch string) (*domain.ComputeResources, error)
- func (a *ComputeAdapter) Destroy(ctx context.Context, envName string) error
- func (a *ComputeAdapter) DetectBranch(ctx context.Context, worktreePath string) (string, error)
- func (a *ComputeAdapter) IsRunning(ctx context.Context, envName string) (bool, error)
- func (a *ComputeAdapter) Start(ctx context.Context, envName string, ports domain.PortMap) error
- func (a *ComputeAdapter) Stop(ctx context.Context, envName string) error
- type LocalComputeAccess
- func (l *LocalComputeAccess) Exec(ctx context.Context, command string, env []string) (string, error)
- func (l *LocalComputeAccess) ReadFile(_ context.Context, relPath string) ([]byte, error)
- func (l *LocalComputeAccess) Root() string
- func (l *LocalComputeAccess) WriteFile(_ context.Context, relPath string, data []byte, mode os.FileMode) error
- type NetworkingAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeAdapter ¶
type ComputeAdapter struct {
// contains filtered or unexported fields
}
ComputeAdapter implements domain.ComputePort for local development. It manages git worktrees and per-environment docker compose infrastructure.
func NewComputeAdapter ¶
func NewComputeAdapter(config *domain.ProjectConfig, composeFile string) *ComputeAdapter
NewComputeAdapter creates a new local compute adapter.
func (*ComputeAdapter) Create ¶
func (a *ComputeAdapter) Create(ctx context.Context, envName string, branch string) (*domain.ComputeResources, error)
func (*ComputeAdapter) Destroy ¶
func (a *ComputeAdapter) Destroy(ctx context.Context, envName string) error
func (*ComputeAdapter) DetectBranch ¶ added in v0.0.4
type LocalComputeAccess ¶ added in v0.0.4
type LocalComputeAccess struct {
// contains filtered or unexported fields
}
LocalComputeAccess implements domain.ComputeAccess for local filesystem operations.
func NewLocalComputeAccess ¶ added in v0.0.4
func NewLocalComputeAccess(root string) *LocalComputeAccess
NewLocalComputeAccess creates a ComputeAccess backed by a local filesystem path.
func (*LocalComputeAccess) Root ¶ added in v0.0.4
func (l *LocalComputeAccess) Root() string
type NetworkingAdapter ¶
type NetworkingAdapter struct {
// contains filtered or unexported fields
}
NetworkingAdapter implements domain.NetworkingPort for local development. It uses deterministic FNV-1a port block allocation from the domain layer.
func NewNetworkingAdapter ¶
func NewNetworkingAdapter(config *domain.ProjectConfig) *NetworkingAdapter
NewNetworkingAdapter creates a new local networking adapter.
func (*NetworkingAdapter) AllocatePorts ¶
func (a *NetworkingAdapter) AllocatePorts(envName string) (domain.PortMap, error)
func (*NetworkingAdapter) GetServiceURL ¶
func (a *NetworkingAdapter) GetServiceURL(envName string, service string) (string, error)
Click to show internal directories.
Click to hide internal directories.