unattended_upgrades

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// Enabled is the flag that enables unattended upgrades.
	Enabled bool `json:"enabled" yaml:"enabled" xml:"enabled" toml:"enabled" mapstructure:"enabled"`
	// Whitelist is the list of packages that should be upgraded.
	Whitelist []string `json:"whitelist" yaml:"whitelist" xml:"whitelist" toml:"whitelist" mapstructure:"whitelist"`
	// Blacklist is the list of packages that should not be upgraded.
	Blacklist []string `json:"blacklist" yaml:"blacklist" xml:"blacklist" toml:"blacklist" mapstructure:"blacklist"`
	// DevRelease is the flag that enables upgrades to development releases.
	DevRelease string `json:"dev_release" yaml:"dev_release" xml:"dev_release" toml:"dev_release" mapstructure:"dev_release"`
	// FixInterrupted is the flag that enables fixing of interrupted upgrades.
	FixInterrupted bool `json:"fix_interrupted" yaml:"fix_interrupted" xml:"fix_interrupted" toml:"fix_interrupted" mapstructure:"fix_interrupted"`
	// MinimalSteps is the flag that enables minimal steps for upgrades.
	MinimalSteps bool `json:"minimal_steps" yaml:"minimal_steps" xml:"minimal_steps" toml:"minimal_steps" mapstructure:"minimal_steps"`
	// InstallOnShutdown is the flag that enables installation of upgrades on shutdown.
	InstallOnShutdown bool `` /* 141-byte string literal not displayed */
	// RemoveUnusedKernel is the flag that enables removal of unused kernel packages.
	RemoveUnusedKernel bool `` /* 146-byte string literal not displayed */
	// RemoveUnusedDependencies is the flag that enables removal of unused dependencies.
	RemoveUnusedDependencies bool `` /* 176-byte string literal not displayed */
	// RemoveUnusedAutoDepend is the flag that enables removal of unused automatically installed dependencies.
	RemoveUnusedAutoDepend bool `` /* 171-byte string literal not displayed */
	// AutomaticReboot is the flag that enables automatic reboot after upgrades.
	AutomaticReboot bool `` /* 126-byte string literal not displayed */
	// AutomaticRebootWithUsers is the flag that enables automatic reboot even if there are users logged in.
	AutomaticRebootWithUsers bool `` /* 181-byte string literal not displayed */
	// AutomaticRebootTime is the time of automatic reboot after upgrades.
	AutomaticRebootTime string `` /* 151-byte string literal not displayed */
}

Configuration is the structure that holds configuration for unattended upgrades.

func InitializeWithDefaults

func InitializeWithDefaults() *Configuration

InitializeWithDefaults initializes the configuration struct with default values.

func (*Configuration) GetAutomaticReboot

func (configuration *Configuration) GetAutomaticReboot() bool

GetAutomaticReboot returns the flag that enables automatic reboot after upgrades.

func (*Configuration) GetAutomaticRebootTime

func (configuration *Configuration) GetAutomaticRebootTime() string

GetAutomaticRebootTime returns the time of automatic reboot after upgrades.

func (*Configuration) GetAutomaticRebootWithUsers

func (configuration *Configuration) GetAutomaticRebootWithUsers() bool

GetAutomaticRebootWithUsers returns the flag that enables automatic reboot even if there are users logged in.

func (*Configuration) GetBlacklist

func (configuration *Configuration) GetBlacklist() []string

GetBlacklist returns the list of packages that should not be upgraded.

func (*Configuration) GetDevRelease

func (configuration *Configuration) GetDevRelease() string

GetDevRelease returns the flag that enables upgrades to development releases.

func (*Configuration) GetEnabled

func (configuration *Configuration) GetEnabled() bool

GetEnabled returns the flag that enables unattended upgrades.

func (*Configuration) GetFixInterrupted

func (configuration *Configuration) GetFixInterrupted() bool

GetFixInterrupted returns the flag that enables fixing of interrupted upgrades.

func (*Configuration) GetInstallOnShutdown

func (configuration *Configuration) GetInstallOnShutdown() bool

GetInstallOnShutdown returns the flag that enables installation of upgrades on shutdown.

func (*Configuration) GetMinimalSteps

func (configuration *Configuration) GetMinimalSteps() bool

GetMinimalSteps returns the flag that enables minimal steps for upgrades.

func (*Configuration) GetRemoveUnusedAutoDepend

func (configuration *Configuration) GetRemoveUnusedAutoDepend() bool

GetRemoveUnusedAutoDepend returns the flag that enables removal of unused automatically installed dependencies.

func (*Configuration) GetRemoveUnusedDependencies

func (configuration *Configuration) GetRemoveUnusedDependencies() bool

GetRemoveUnusedDependencies returns the flag that enables removal of unused dependencies.

func (*Configuration) GetRemoveUnusedKernel

func (configuration *Configuration) GetRemoveUnusedKernel() bool

GetRemoveUnusedKernel returns the flag that enables removal of unused kernel packages.

func (*Configuration) GetWhitelist

func (configuration *Configuration) GetWhitelist() []string

GetWhitelist returns the list of packages that should be upgraded.

func (*Configuration) IsAutoConfigured

func (configuration *Configuration) IsAutoConfigured() bool

IsAutoConfigured returns true if the configuration is autoconfigured.

func (*Configuration) SetBlacklist

func (configuration *Configuration) SetBlacklist(blacklist []string) *Configuration

SetBlacklist sets the list of packages that should not be upgraded.

func (*Configuration) SetWhitelist

func (configuration *Configuration) SetWhitelist(whitelist []string) *Configuration

SetWhitelist sets the list of packages that should be upgraded.

Jump to

Keyboard shortcuts

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