setup

package
v0.0.0-...-2e0ef96 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizedKeyAbsent

func AuthorizedKeyAbsent(userName string, authKeyIn *types.AuthorizedKey, all bool) error

func AuthorizedKeyPresent

func AuthorizedKeyPresent(userName string, authKeyIn *types.AuthorizedKey, exclusive bool) error

func DirAbsent

func DirAbsent(path string) error

func DirPresent

func DirPresent(path string, mode os.FileMode, uid, gid string) error

func FileAbsent

func FileAbsent(path string) error

func FilePresent

func FilePresent(path string, mode os.FileMode, uid, gid string) (*os.File, error)

func GroupAbsent

func GroupAbsent(name string) error

func GroupPresent

func GroupPresent(name string, groupOpts *GroupPresentOpts) error

func UserAbsent

func UserAbsent(name string, userOpts *UserAbsentOpts) error

func UserPresent

func UserPresent(name string, userOpts *UserPresentOpts) error

Types

type GroupPresentOpts

type GroupPresentOpts struct {
	Gid       string
	NonUnique bool
	Password  string
	System    bool
}

type UserAbsentOpts

type UserAbsentOpts struct {
	Force  bool
	Remove bool
}

type UserPresentOpts

type UserPresentOpts struct {
	Comment    string
	ExpireDate string
	Inactive   string
	Gid        string
	Groups     []string
	Password   string
	Shell      string
	Uid        string
}

Jump to

Keyboard shortcuts

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