modules

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dryrun = false

Dryrun allows running instructions without system modification

Functions

func Absent

func Absent(in interface{}, out output.Output) error

Absent makes sure a file is absent

func AddUserToGroup added in v1.1.0

func AddUserToGroup(in interface{}, out output.Output) error

AddUserToGroup adds a user to a group

func Apt

func Apt(in interface{}, out output.Output) error

Apt installs packages from apt repositories

func AptAutoremovePurge

func AptAutoremovePurge(in interface{}, out output.Output) error

AptAutoremovePurge cleans unneeded packages from the system

func AptCleanCache

func AptCleanCache(in interface{}, out output.Output) error

AptCleanCache remove archives .deb files from cache

func AptRemove

func AptRemove(in interface{}, out output.Output) error

AptRemove removes deb packages from system

func AptSource

func AptSource(in interface{}, out output.Output) error

AptSource adds a source for APT

func AptUpgrade

func AptUpgrade(in interface{}, out output.Output) error

AptUpgrade upgrades all packages in the system

func Dconf

func Dconf(in interface{}, out output.Output) error

Dconf sets a parameter in the dconf database

func DebconfSet

func DebconfSet(in interface{}, out output.Output) error

DebconfSet sets a debconf variable

func Directory

func Directory(in interface{}, out output.Output) error

Directory creates directories

func DoNotMigrate

func DoNotMigrate(in interface{}, out output.Output) error

DoNotMigrate removes a file fro the previous home, without migrating it

func Download

func Download(in interface{}, out output.Output) error

Download downloads files from given URLs

func Dpkg

func Dpkg(in interface{}, out output.Output) error

Dpkg installs a .deb package

func DpkgDependencies

func DpkgDependencies(in interface{}, out output.Output) error

DpkgDependencies installs dependencies for a .deb package

func DpkgReconfigure

func DpkgReconfigure(in interface{}, out output.Output) error

DpkgReconfigure reconfigures a package interactively

func DpkgVersion

func DpkgVersion(in interface{}, out output.Output) error

DpkgVersion checks an installed deb package version

func EnableGnomeShellExtension

func EnableGnomeShellExtension(in interface{}, out output.Output) error

EnableGnomeShellExtension enables GNOME Shell extensions

func ExecutableFile

func ExecutableFile(in interface{}, out output.Output) error

ExecutableFile creates or replaces files with executable flag

func ExecutableRootFile

func ExecutableRootFile(in interface{}, out output.Output) error

ExecutableRootFile creates or replaces executable files as root

func ExtractTarxz

func ExtractTarxz(in interface{}, out output.Output) error

ExtractTarxz extracts a tar.xz archive

func ExtractZip

func ExtractZip(in interface{}, out output.Output) error

ExtractZip extracts a zip archive

func File

func File(in interface{}, out output.Output) error

File creates or replaces files

func Flatpak

func Flatpak(in interface{}, out output.Output) error

Flatpak installs flatpack packages

func FlatpakRemote

func FlatpakRemote(in interface{}, out output.Output) error

FlatpakRemote adds a flatpak remote repository

func FontCache

func FontCache(in interface{}, out output.Output) error

FontCache regenerates the font cache

func ForceMigrate

func ForceMigrate(in interface{}, out output.Output) error

ForceMigrate migrates a file or directory from the previous home, removing the destination if it exists

func ForceMove

func ForceMove(in interface{}, out output.Output) error

ForceMove moves files or directories, removing the destination if it exists

func GitCloneOrPull

func GitCloneOrPull(in interface{}, out output.Output) error

GitCloneOrPull clones a Git repository, with depth 1, or pulls latest commit if it already exists

func GitConfig

func GitConfig(in interface{}, out output.Output) error

GitConfig sets got configuration parameters

func GithubLatest

func GithubLatest(in interface{}, out output.Output) error

GithubLatest checks latest release of a GitHub repository

func GnomeShellRestart

func GnomeShellRestart(in interface{}, out output.Output) error

GnomeShellRestart restarts GNOME Shell

func GoEnv

func GoEnv(in interface{}, out output.Output) error

GoEnv sets go environment parameters

func GoPackage

func GoPackage(in interface{}, out output.Output) error

GoPackage install go packages

func GtkBookmarks

func GtkBookmarks(in interface{}, out output.Output) error

GtkBookmarks sets the Gtk bookmarks

func HTTPGet

func HTTPGet(in interface{}, out output.Output) error

HTTPGet sends a GET request

func HTTPPost

func HTTPPost(in interface{}, out output.Output) error

HTTPPost sends a POST request

func InstallGnomeShellExtension

func InstallGnomeShellExtension(in interface{}, out output.Output) error

InstallGnomeShellExtension installs GNOME Shell extensions from extensions.gnome.org

func JSONBuild

func JSONBuild(in interface{}, out output.Output) error

JSONBuild builds a (simple) json structure from flat information

func JSONGet

func JSONGet(in interface{}, out output.Output) error

JSONGet returns a single value from a JSON object

func LocalGnomeShellExtensionVersion

func LocalGnomeShellExtensionVersion(in interface{}, out output.Output) error

LocalGnomeShellExtensionVersion checks a locally installed GNOME Shell extension version

func Migrate

func Migrate(in interface{}, out output.Output) error

Migrate migrates a file or directory from the previous home

func MigrationSource

func MigrationSource(in interface{}, out output.Output) error

MigrationSource sets the migration source path

func Move

func Move(in interface{}, out output.Output) error

Move moves files or directories, or does nothing if the source does not exist

func NetworkManagerImport

func NetworkManagerImport(in interface{}, out output.Output) error

NetworkManagerImport imports a configuration into network manager

func NetworkManagerWifi

func NetworkManagerWifi(in interface{}, out output.Output) error

NetworkManagerWifi sets the known wifi networks with WPA-PSK security

func PIP

func PIP(in interface{}, out output.Output) error

PIP installs Python packages using pip

func ParseWebPage

func ParseWebPage(in interface{}, out output.Output) error

ParseWebPage parses a web page...

func RegexpReplace

func RegexpReplace(in interface{}, out output.Output) error

RegexpReplace replaces

func Register

func Register(name string, instruction Instruction)

Register adds an instruction

func RestrictedFile

func RestrictedFile(in interface{}, out output.Output) error

RestrictedFile creates or replaces files only readable by the owner

func RestrictedRootFile

func RestrictedRootFile(in interface{}, out output.Output) error

RestrictedRootFile creates or replaces files only readable by root

func RootDirectory

func RootDirectory(in interface{}, out output.Output) error

RootDirectory creates directories as root

func RootFile

func RootFile(in interface{}, out output.Output) error

RootFile creates or replaces files as root

func Snap

func Snap(in interface{}, out output.Output) error

Snap installs Snap packages

func SnapClassic

func SnapClassic(in interface{}, out output.Output) error

SnapClassic installs Snap packages in classic mode

func SnapDangerous

func SnapDangerous(in interface{}, out output.Output) error

SnapDangerous installs Snap packages without verifying their signatures

func SnapEdge

func SnapEdge(in interface{}, out output.Output) error

SnapEdge installs Snap packages from the edge channel

func SnapRefresh

func SnapRefresh(in interface{}, out output.Output) error

SnapRefresh refreshes Snap packages

func SnapVersion

func SnapVersion(in interface{}, out output.Output) error

SnapVersion gets a Snap package version

func StopIfExist

func StopIfExist(in interface{}, out output.Output) error

StopIfExist stops the step if all given files exist

func StopIfOlder

func StopIfOlder(in interface{}, out output.Output) error

StopIfOlder compares versions and stops the step if older

func SudoPassword

func SudoPassword(in interface{}, out output.Output) error

SudoPassword sets the password for sudo

func Symlink(in interface{}, out output.Output) error

Symlink creates symbolic links

func SystemdDisable

func SystemdDisable(in interface{}, out output.Output) error

SystemdDisable disables a systemd service

func SystemdEnable

func SystemdEnable(in interface{}, out output.Output) error

SystemdEnable enables a systemd service

func UpdateAlternatives

func UpdateAlternatives(in interface{}, out output.Output) error

UpdateAlternatives changes default commands

func VscodeExtension

func VscodeExtension(in interface{}, out output.Output) error

VscodeExtension installs VS Code extensions

func VscodiumExtension

func VscodiumExtension(in interface{}, out output.Output) error

VscodiumExtension installs VS Codium extensions

func XdgAutostart

func XdgAutostart(in interface{}, out output.Output) error

XdgAutostart enables autostart for given applications

func XdgMimeDefault

func XdgMimeDefault(in interface{}, out output.Output) error

XdgMimeDefault sets default applications for mimetypes

func XdgUserDir

func XdgUserDir(in interface{}, out output.Output) error

XdgUserDir sets XDG user dirs

Types

type Instruction

type Instruction func(in interface{}, out output.Output) error

Instruction is an instruction. Returns true if succeeds, false if there has been an error

func Get

func Get(name string) Instruction

Get gets an instruction

Jump to

Keyboard shortcuts

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