Documentation
¶
Index ¶
- Constants
- func EnvTruthy(name string) bool
- type BridgeDoctorRequest
- type BuildRequest
- type BuildResult
- type CommandDefaults
- type CommandIO
- type DotfilesOptionValues
- type DotfilesOptions
- type DotfilesStatus
- type ExecRequest
- type ExitError
- type FlagValue
- type GlobalOptions
- type ReadConfigRequest
- type ReadConfigResult
- type ResolveDefaultsRequest
- type RunLifecycleRequest
- type RunLifecycleResult
- type Service
- func (s *Service) BridgeDoctor(ctx context.Context, req BridgeDoctorRequest) (bridge.Report, error)
- func (s *Service) Build(ctx context.Context, req BuildRequest) (BuildResult, error)
- func (s *Service) Exec(ctx context.Context, req ExecRequest) (int, error)
- func (s *Service) ReadConfig(ctx context.Context, req ReadConfigRequest) (ReadConfigResult, error)
- func (s *Service) RunLifecycle(ctx context.Context, req RunLifecycleRequest) (RunLifecycleResult, error)
- func (s *Service) Up(ctx context.Context, req UpRequest) (UpResult, error)
- type UpRequest
- type UpResult
Constants ¶
View Source
const ( TrustWorkspaceEnvVar = "HATCHCTL_TRUST_WORKSPACE" AllowHostLifecycleEnvVar = "HATCHCTL_ALLOW_HOST_LIFECYCLE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BridgeDoctorRequest ¶
type BridgeDoctorRequest struct {
Defaults CommandDefaults
Global GlobalOptions
IO CommandIO
}
type BuildRequest ¶
type BuildRequest struct {
Defaults CommandDefaults
Global GlobalOptions
IO CommandIO
}
type BuildResult ¶
type BuildResult = reconcile.BuildResult
type CommandDefaults ¶
type CommandDefaults struct {
Backend string
Workspace string
ConfigPath string
StateDir string
CacheDir string
FeatureTimeout time.Duration
LockfilePolicy string
BridgeEnabled bool
TrustWorkspace bool
SSHAgent bool
TrustedSigners []security.TrustedSigner
Dotfiles DotfilesOptions
}
func ResolveDefaults ¶
func ResolveDefaults(req ResolveDefaultsRequest) (CommandDefaults, error)
type DotfilesOptionValues ¶
type DotfilesOptions ¶
type DotfilesOptions = capability.Dotfiles
func DefaultDotfilesOptions ¶
func DefaultDotfilesOptions() DotfilesOptions
type DotfilesStatus ¶
type DotfilesStatus = reconcile.DotfilesStatus
type ExecRequest ¶
type ExecRequest struct {
Defaults CommandDefaults
Args []string
RemoteEnv map[string]string
Global GlobalOptions
IO CommandIO
}
type GlobalOptions ¶
type ReadConfigRequest ¶
type ReadConfigRequest struct {
Defaults CommandDefaults
Global GlobalOptions
IO CommandIO
}
type ReadConfigResult ¶
type ReadConfigResult = reconcile.ReadConfigResult
type ResolveDefaultsRequest ¶
type ResolveDefaultsRequest struct {
Backend FlagValue[string]
Workspace FlagValue[string]
ConfigPath FlagValue[string]
FeatureTimeout FlagValue[time.Duration]
LockfilePolicy FlagValue[string]
BridgeEnabled *FlagValue[bool]
TrustWorkspace *FlagValue[bool]
SSHAgent *FlagValue[bool]
Dotfiles DotfilesOptionValues
}
type RunLifecycleRequest ¶
type RunLifecycleRequest struct {
Defaults CommandDefaults
AllowHostLifecycle bool
Phase string
Global GlobalOptions
IO CommandIO
}
type RunLifecycleResult ¶
type RunLifecycleResult = reconcile.RunLifecycleResult
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func NewDefault() *Service
func NewWithExecutor ¶
func (*Service) BridgeDoctor ¶
func (*Service) Build ¶
func (s *Service) Build(ctx context.Context, req BuildRequest) (BuildResult, error)
func (*Service) ReadConfig ¶
func (s *Service) ReadConfig(ctx context.Context, req ReadConfigRequest) (ReadConfigResult, error)
func (*Service) RunLifecycle ¶
func (s *Service) RunLifecycle(ctx context.Context, req RunLifecycleRequest) (RunLifecycleResult, error)
type UpRequest ¶
type UpRequest struct {
Defaults CommandDefaults
AllowHostLifecycle bool
Recreate bool
Global GlobalOptions
IO CommandIO
}
Click to show internal directories.
Click to hide internal directories.