install

package
v0.10.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(userName string, homeDir string, shell string) error

CreateUser creates a system user with either `adduser` or `useradd` command

func EnsureService

func EnsureService(args []string) error

EnsureService installs the k0s service, per the given arguments, and the detected platform

func EnsureUser

func EnsureUser(name string, homeDir string) error

EnsureUser checks if a user exists, and creates it, if it doesn't TODO: we should also consider modifying the user, if the user exists, but with wrong settings

func GetSysInit added in v0.10.0

func GetSysInit() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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