Documentation ¶
Index ¶
- func DisableAutoUpdates(ctx context.Context)
- func InstallWUAUpdates(ctx context.Context) error
- func RunAptGetUpgrade(ctx context.Context, opts ...AptGetUpgradeOption) error
- func RunGooGetUpdate(ctx context.Context, opts ...GooGetUpdateOption) error
- func RunYumUpdate(ctx context.Context, opts ...YumUpdateOption) error
- func RunZypperPatch(ctx context.Context, opts ...ZypperPatchOption) error
- func SystemRebootRequired(ctx context.Context) (bool, error)
- type AptGetUpgradeOption
- type Exclude
- type GooGetUpdateOption
- type YumUpdateOption
- type ZypperPatchOption
- func ZypperPatchCategories(categories []string) ZypperPatchOption
- func ZypperPatchSeverities(severities []string) ZypperPatchOption
- func ZypperUpdateDryrun(dryrun bool) ZypperPatchOption
- func ZypperUpdateWithExcludes(excludes []*Exclude) ZypperPatchOption
- func ZypperUpdateWithExclusivePatches(exclusivePatches []string) ZypperPatchOption
- func ZypperUpdateWithOptional(withOptional bool) ZypperPatchOption
- func ZypperUpdateWithUpdate(withUpdate bool) ZypperPatchOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableAutoUpdates ¶
DisableAutoUpdates disables system auto updates.
func InstallWUAUpdates ¶
InstallWUAUpdates is the linux stub for InstallWUAUpdates.
func RunAptGetUpgrade ¶
func RunAptGetUpgrade(ctx context.Context, opts ...AptGetUpgradeOption) error
RunAptGetUpgrade runs apt-get upgrade.
func RunGooGetUpdate ¶
func RunGooGetUpdate(ctx context.Context, opts ...GooGetUpdateOption) error
RunGooGetUpdate runs googet update.
func RunYumUpdate ¶
func RunYumUpdate(ctx context.Context, opts ...YumUpdateOption) error
RunYumUpdate runs yum update.
func RunZypperPatch ¶
func RunZypperPatch(ctx context.Context, opts ...ZypperPatchOption) error
RunZypperPatch runs zypper patch.
Types ¶
type AptGetUpgradeOption ¶
type AptGetUpgradeOption func(*aptGetUpgradeOpts)
AptGetUpgradeOption is an option for apt-get update.
func AptGetDryRun ¶
func AptGetDryRun(dryrun bool) AptGetUpgradeOption
AptGetDryRun performs a dry run.
func AptGetExcludes ¶
func AptGetExcludes(excludes []*Exclude) AptGetUpgradeOption
AptGetExcludes excludes these packages from upgrade.
func AptGetExclusivePackages ¶
func AptGetExclusivePackages(exclusivePackages []string) AptGetUpgradeOption
AptGetExclusivePackages includes only these packages in the upgrade.
func AptGetUpgradeType ¶
func AptGetUpgradeType(upgradeType packages.AptUpgradeType) AptGetUpgradeOption
AptGetUpgradeType returns a AptGetUpgradeOption that specifies upgrade type.
type Exclude ¶
type Exclude struct {
// contains filtered or unexported fields
}
Exclude represents package exclude entry by a user
func CreateRegexExclude ¶
CreateRegexExclude returns new Exclude struct that represents exclusion with regex
func CreateStringExclude ¶
CreateStringExclude returns new Exclude struct that represents exclusion with string
func (*Exclude) MatchesName ¶
MatchesName returns if a package with a certain name matches Exclude struct and should be excluded
type GooGetUpdateOption ¶
type GooGetUpdateOption func(*googetUpdateOpts)
GooGetUpdateOption is an option for apt-get update.
func GooGetDryRun ¶
func GooGetDryRun(dryrun bool) GooGetUpdateOption
GooGetDryRun performs a dry run.
func GooGetExcludes ¶
func GooGetExcludes(excludes []*Exclude) GooGetUpdateOption
GooGetExcludes excludes these packages from upgrade.
func GooGetExclusivePackages ¶
func GooGetExclusivePackages(exclusivePackages []string) GooGetUpdateOption
GooGetExclusivePackages includes only these packages in the upgrade.
type YumUpdateOption ¶
type YumUpdateOption func(*yumUpdateOpts)
YumUpdateOption is an option for yum update.
func YumExclusivePackages ¶
func YumExclusivePackages(exclusivePackages []string) YumUpdateOption
YumExclusivePackages includes only these packages in the upgrade.
func YumUpdateExcludes ¶
func YumUpdateExcludes(excludes []*Exclude) YumUpdateOption
YumUpdateExcludes returns a YumUpdateOption that specifies what packages to add to the --exclude flag.
func YumUpdateMinimal ¶
func YumUpdateMinimal(minimal bool) YumUpdateOption
YumUpdateMinimal returns a YumUpdateOption that specifies the update-minimal command should be used.
func YumUpdateSecurity ¶
func YumUpdateSecurity(security bool) YumUpdateOption
YumUpdateSecurity returns a YumUpdateOption that specifies the --security flag should be used.
type ZypperPatchOption ¶
type ZypperPatchOption func(*zypperPatchOpts)
ZypperPatchOption is an option for zypper patch.
func ZypperPatchCategories ¶
func ZypperPatchCategories(categories []string) ZypperPatchOption
ZypperPatchCategories returns a ZypperUpdateOption that specifies what categories to add to the --categories flag.
func ZypperPatchSeverities ¶
func ZypperPatchSeverities(severities []string) ZypperPatchOption
ZypperPatchSeverities returns a ZypperUpdateOption that specifies what categories to add to the --categories flag.
func ZypperUpdateDryrun ¶
func ZypperUpdateDryrun(dryrun bool) ZypperPatchOption
ZypperUpdateDryrun returns a ZypperUpdateOption that specifies the runner.
func ZypperUpdateWithExcludes ¶
func ZypperUpdateWithExcludes(excludes []*Exclude) ZypperPatchOption
ZypperUpdateWithExcludes returns a ZypperUpdateOption that specifies list of packages to be excluded from update
func ZypperUpdateWithExclusivePatches ¶
func ZypperUpdateWithExclusivePatches(exclusivePatches []string) ZypperPatchOption
ZypperUpdateWithExclusivePatches returns a ZypperUpdateOption that specifies list of exclusive packages to be updated
func ZypperUpdateWithOptional ¶
func ZypperUpdateWithOptional(withOptional bool) ZypperPatchOption
ZypperUpdateWithOptional returns a ZypperUpdateOption that specifies the --with-optional flag should be used.
func ZypperUpdateWithUpdate ¶
func ZypperUpdateWithUpdate(withUpdate bool) ZypperPatchOption
ZypperUpdateWithUpdate returns a ZypperUpdateOption that specifies the --with-update flag should be used.