Documentation ¶
Index ¶
- Variables
- func ConvertSyntaxFromJinjaToPongo(template string) string
- func Lookup(path string) string
- func VerifyService(name string, results *VerifyResults) bool
- type AptPackageManager
- func (p AptPackageManager) AddRepo(uri string, channel string, versionCodeName string, name string, gpgKey string, ...) Commands
- func (p AptPackageManager) CleanupCaches() Commands
- func (p AptPackageManager) GetInstalledVersion(pkg string) string
- func (p AptPackageManager) Install(pkg ...string) Commands
- func (p AptPackageManager) ListInstalled() string
- func (p AptPackageManager) Mark(pkg ...string) Commands
- func (p AptPackageManager) Uninstall(pkg ...string) Commands
- func (p AptPackageManager) Update() Commands
- type DnfPackageManager
- func (p DnfPackageManager) AddRepo(url string, channel string, versionCodeName string, name string, gpgKey string, ...) Commands
- func (p DnfPackageManager) CleanupCaches() Commands
- func (p DnfPackageManager) GetInstalledVersion(pkg string) string
- func (p DnfPackageManager) Install(pkg ...string) Commands
- func (p DnfPackageManager) Mark(pkg ...string) Commands
- func (p DnfPackageManager) Uninstall(pkg ...string) Commands
- func (p DnfPackageManager) Update() Commands
- type OS
- type OperatingSystemList
- type YumPackageManager
- func (p YumPackageManager) AddRepo(url string, channel string, versionCodeName string, name string, gpgKey string, ...) Commands
- func (p YumPackageManager) CleanupCaches() Commands
- func (p YumPackageManager) GetInstalledVersion(pkg string) string
- func (p YumPackageManager) Install(pkg ...string) Commands
- func (p YumPackageManager) Mark(pkg ...string) Commands
- func (p YumPackageManager) Uninstall(pkg ...string) Commands
- func (p YumPackageManager) Update() Commands
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ubuntu = ubuntu{} Debian = debian{} )
View Source
var ( Redhat = redhat{} Centos = centos{} Fedora = fedora{} RedhatEnterprise = rhel{} AmazonLinux = amazonLinux{} )
View Source
var BaseOperatingSystems = OperatingSystemList{ Debian, Redhat, Fedora, }
BaseOperatingSystems is the list of base distributions that are supported, which is currently only debian and redhat
View Source
var CommandsPhase AllPhases = command{}
View Source
var Containers Phase = containers{}
View Source
var Context Phase = context{}
View Source
var Environment Phase = environment{}
View Source
var Files Phase = filesPhase{}
View Source
var Packages AllPhases = packages{}
View Source
var Services Phase = services{}
View Source
var SupportedOperatingSystems = OperatingSystemList{ Debian, Redhat, Ubuntu, AmazonLinux, RedhatEnterprise, Centos, Fedora, }
SupportedOperatingSystems is a list of all supported OS's, used primarily for detecting runtime flags
View Source
var Sysctl Phase = sysctl{}
View Source
var TrustedCA Phase = trustedCA{}
Functions ¶
func VerifyService ¶
VerifyService checks that the service is enabled and running
Types ¶
type AptPackageManager ¶
type AptPackageManager struct { }
func (AptPackageManager) CleanupCaches ¶
func (p AptPackageManager) CleanupCaches() Commands
func (AptPackageManager) GetInstalledVersion ¶
func (p AptPackageManager) GetInstalledVersion(pkg string) string
func (AptPackageManager) Install ¶
func (p AptPackageManager) Install(pkg ...string) Commands
func (AptPackageManager) ListInstalled ¶
func (p AptPackageManager) ListInstalled() string
func (AptPackageManager) Mark ¶
func (p AptPackageManager) Mark(pkg ...string) Commands
func (AptPackageManager) Uninstall ¶
func (p AptPackageManager) Uninstall(pkg ...string) Commands
func (AptPackageManager) Update ¶
func (p AptPackageManager) Update() Commands
type DnfPackageManager ¶
type DnfPackageManager struct{}
func (DnfPackageManager) CleanupCaches ¶
func (p DnfPackageManager) CleanupCaches() Commands
func (DnfPackageManager) GetInstalledVersion ¶
func (p DnfPackageManager) GetInstalledVersion(pkg string) string
func (DnfPackageManager) Install ¶
func (p DnfPackageManager) Install(pkg ...string) Commands
func (DnfPackageManager) Mark ¶
func (p DnfPackageManager) Mark(pkg ...string) Commands
func (DnfPackageManager) Uninstall ¶
func (p DnfPackageManager) Uninstall(pkg ...string) Commands
func (DnfPackageManager) Update ¶
func (p DnfPackageManager) Update() Commands
type OS ¶
type OS interface { // GetVersionCodeName returns the distributions version codename e.g. bionic, xenial, squeeze GetVersionCodeName() string //GetPackageManager returns the packagemanager used by the OS GetPackageManager() PackageManager //GetTags returns all the tags to which this OS applies GetTags() []Flag //DetectAtRuntime will detect if it is compatible with the current running OS DetectAtRuntime() bool }
OS provides an abstraction over different operating systems
func GetOSForTag ¶
type OperatingSystemList ¶
type OperatingSystemList []OS
func (OperatingSystemList) Detect ¶
func (l OperatingSystemList) Detect() []OS
Detect returns a list of all compatible operating systems at runtime
type YumPackageManager ¶
type YumPackageManager struct{}
func (YumPackageManager) CleanupCaches ¶
func (p YumPackageManager) CleanupCaches() Commands
func (YumPackageManager) GetInstalledVersion ¶
func (p YumPackageManager) GetInstalledVersion(pkg string) string
func (YumPackageManager) Install ¶
func (p YumPackageManager) Install(pkg ...string) Commands
func (YumPackageManager) Mark ¶
func (p YumPackageManager) Mark(pkg ...string) Commands
func (YumPackageManager) Uninstall ¶
func (p YumPackageManager) Uninstall(pkg ...string) Commands
func (YumPackageManager) Update ¶
func (p YumPackageManager) Update() Commands
Click to show internal directories.
Click to hide internal directories.