pathchmod

package
v0.1.1-pre Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyChmod added in v0.1.2

func ApplyChmod(
	isRecursive bool,
	isSkipOnNonExist bool,
	changeFileMode os.FileMode,
	location string,
) (*chmodhelper.RwxWrapper, *errorwrapper.Wrapper)

func ApplyChmodOnFiles added in v0.1.2

func ApplyChmodOnFiles(
	isRecursive,
	isSkipOnNonExist,
	isContinueOnError bool,
	changeFileMode os.FileMode,
	locations ...string,
) (*chmodins.RwxInstruction, *errorwrapper.Wrapper)

func ApplyChmodOnFilesUsingCondition added in v0.1.2

func ApplyChmodOnFilesUsingCondition(
	condition *chmodins.Condition,
	changeFileMode os.FileMode,
	locations ...string,
) (*chmodins.RwxInstruction, *errorwrapper.Wrapper)

func ChangeOwnership

func ChangeOwnership(path, user, group string) *errorwrapper.Wrapper

func ChmodApply added in v0.1.2

func ChmodApply(
	isRecursive bool,
	isSkipOnError bool,
	wrapper *chmodhelper.RwxWrapper,
	paths ...string,
) *errorwrapper.Wrapper

ChmodApply Format : chmod -R 777 /var/lib/powerdns

func ChmodChangeExecuteRevert added in v0.1.2

func ChmodChangeExecuteRevert(
	isRecursive,
	isSkipOnNonExist bool,
	changeFileMode os.FileMode,
	location string,
	executor func(location string) *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func ChmodChangeExecuteRevertUsingRwxWrapper added in v0.1.2

func ChmodChangeExecuteRevertUsingRwxWrapper(
	isRecursive,
	isSkipOnNonExist bool,
	changeFileModeRwxWrapper *chmodhelper.RwxWrapper,
	location string,
	executor func(location string) *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func ExistingChmodRwxWrapper added in v0.1.2

func ExistingChmodRwxWrapper(
	location string,
) (*chmodhelper.RwxWrapper, *errorwrapper.Wrapper)

Types

This section is empty.

Jump to

Keyboard shortcuts

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