deploymentutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = &User{Uid: 0, Gid: 0, Username: "root"}

Functions

func Exists

func Exists(path string) bool

func Install

func Install(path string, content []byte, perm os.FileMode, user *User)

func InstallDir

func InstallDir(path string, perm os.FileMode, user *User) string

func InstallIfNotExistsFromStdin

func InstallIfNotExistsFromStdin(path string, message string, perm os.FileMode, user *User)

func InstallIfNotExistsFromString

func InstallIfNotExistsFromString(path string, data string, perm os.FileMode, user *User)

func InstallSubdir

func InstallSubdir(parent, name string, perm os.FileMode, user *User) string

func Run

func Run(name string, args ...string)

func Templ

func Templ(templ string, data map[string]any) []byte

Types

type User

type User struct {
	Username string
	Uid      int
	Gid      int
}

func NeedUser

func NeedUser(username string) *User

Jump to

Keyboard shortcuts

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