syscheck

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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