Documentation
¶
Index ¶
- type CheckResult
- type Requirement
- type SystemChecker
- func (s *SystemChecker) CanInstallNixpacks() bool
- func (s *SystemChecker) CheckAll() *CheckResult
- func (s *SystemChecker) CheckDocker() (bool, string)
- func (s *SystemChecker) InstallNixpacks() error
- func (s *SystemChecker) PrintResults(result *CheckResult)
- func (s *SystemChecker) PromptNixpacksInstall() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Requirements []Requirement
AllRequired bool
AllOptional bool
}
CheckResult holds the results of system checks
type Requirement ¶
type Requirement struct {
Name string
Command string
Args []string
Required bool
Installed bool
Version string
InstallHint string
}
Requirement represents a system requirement
type SystemChecker ¶
type SystemChecker struct {
// contains filtered or unexported fields
}
SystemChecker checks system requirements
func NewSystemChecker ¶
func NewSystemChecker(verbose bool) *SystemChecker
NewSystemChecker creates a new system checker
func (*SystemChecker) CanInstallNixpacks ¶ added in v0.3.0
func (s *SystemChecker) CanInstallNixpacks() bool
CanInstallNixpacks returns true when Tako can install Nixpacks through a local package manager.
func (*SystemChecker) CheckAll ¶
func (s *SystemChecker) CheckAll() *CheckResult
CheckAll checks all system requirements
func (*SystemChecker) CheckDocker ¶
func (s *SystemChecker) CheckDocker() (bool, string)
CheckDocker specifically checks if Docker daemon is running
func (*SystemChecker) InstallNixpacks ¶
func (s *SystemChecker) InstallNixpacks() error
InstallNixpacks installs Nixpacks based on the operating system
func (*SystemChecker) PrintResults ¶
func (s *SystemChecker) PrintResults(result *CheckResult)
PrintResults prints the check results in a formatted way
func (*SystemChecker) PromptNixpacksInstall ¶
func (s *SystemChecker) PromptNixpacksInstall() bool
PromptNixpacksInstall asks the user if they want to install Nixpacks
Click to show internal directories.
Click to hide internal directories.