testwrappers

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgName = "PathHelper"
)

Variables

View Source
var (
	TempDir          = os.TempDir()
	TempPkgDir       = TempDir + "/" + PkgName
	RootPath1        = TempPkgDir + "/path-root1"
	RootPath2        = TempPkgDir + "/path-root2"
	RootPath3        = TempPkgDir + "/path-root3"
	RootPath4        = TempPkgDir + "/path-root4"
	RootPath5        = TempPkgDir + "/path-root5"
	FilesCollection1 = []string{
		"file1.txt",
		"file2.txt",
		"file3.txt",
		"file4.txt",
		"file5.txt",
	}
	Locations = []string{
		"file1.txt",
		"file2.txt",
		"file3.txt",
		"file4.txt",
		"file5.txt",
	}

	DefaultRwxOwnerGroupOther = &chmodins.RwxOwnerGroupOther{
		Owner: "rwx",
		Group: "r-x",
		Other: "r-x",
	}

	DefaultBaseUserNameGroupName = &pathinsfmt.BaseUserNameGroupName{
		UserGroupName: pathinsfmt.UserGroupName{
			BaseGroupName: pathinsfmt.BaseGroupName{GroupName: "root"},
			UserName:      "a",
		},
	}
	DefaultUserNameGroupName = &DefaultBaseUserNameGroupName.UserGroupName
	DefaultWorkingPaths      = GetSetupPaths()
	AllPathsString           = strings.Join(DefaultWorkingPaths, constants.CommaSpace)
)
View Source
var PathsCreateInstructionsUnix = []*pathinsfmt.PathsCreatorCollection{
	{
		PathsCreatorItems: []pathinsfmt.PathsCreator{
			{
				BasePathsCreator: pathinsfmt.BasePathsCreator{
					RootDir:     RootPath1,
					Files:       FilesCollection1,
					IsNormalize: true,
				},
				ApplyRwx:       DefaultRwxOwnerGroupOther,
				ApplyUserGroup: DefaultUserNameGroupName,
			},
			{
				BasePathsCreator: pathinsfmt.BasePathsCreator{
					RootDir:     RootPath2,
					Files:       FilesCollection1,
					IsNormalize: true,
				},
				ApplyRwx:       DefaultRwxOwnerGroupOther,
				ApplyUserGroup: DefaultUserNameGroupName,
			},
			{
				BasePathsCreator: pathinsfmt.BasePathsCreator{
					RootDir:     RootPath3,
					Files:       FilesCollection1,
					IsNormalize: true,
				},
				ApplyRwx:       DefaultRwxOwnerGroupOther,
				ApplyUserGroup: DefaultUserNameGroupName,
			},
		},
		IsIgnoreOnExist:         false,
		IsDeleteAllBeforeCreate: true,
	},
}

Functions

func GetSetupPaths

func GetSetupPaths() []string

func SetupDefaultPathsUnix

func SetupDefaultPathsUnix() []string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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