linuxos

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CreateLinuxUserScript = `` /* 709-byte string literal not displayed */

CreateLinuxUserScript is a generic script to create user and group across all distributions of Linux

Variables

This section is empty.

Functions

func NewBuildOS

func NewBuildOS() buildos.BuildOS

NewBuildOS creates linux specific commands

Types

type BuildOS

type BuildOS struct {
}

func (*BuildOS) ExecAndDeleteScriptCommand

func (*BuildOS) ExecAndDeleteScriptCommand(script string, args ...string) string

ExecAndDeleteScriptCommand returns the command to execute a given script and deletes the same

func (*BuildOS) GetCreateNewUserScript

func (*BuildOS) GetCreateNewUserScript() string

GetCreateNewUserScript returns a script to create a new user

func (*BuildOS) GetHomeDir

func (*BuildOS) GetHomeDir(buildUser string) string

GetHomeDir for the given user

func (*BuildOS) GetScriptName added in v0.1.1

func (*BuildOS) GetScriptName(basefile string) string

GetScriptName returns the name of the script to run in the operating system

func (*BuildOS) GetSuperUser

func (*BuildOS) GetSuperUser() string

GetSuperUser returns the superuser of linux operating system

func (*BuildOS) GetUserDetails added in v0.2.4

func (*BuildOS) GetUserDetails(user string) string

GetUserDetails represents a command to get the details of a given user

func (*BuildOS) RestoreTarFile added in v0.1.5

func (*BuildOS) RestoreTarFile(tarFile string, directory string) string

RestoreTarFile restores a tar file to a given directory

func (*BuildOS) SourceEnvFile

func (*BuildOS) SourceEnvFile(envFile string) string

SourceEnvFile sources a given environment file onto the current shell

Jump to

Keyboard shortcuts

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