예제 #1
0
파일: extend.go 프로젝트: jhadvig/geard
func init() {
	config.AddRequiredDirectory(
		0750,
		filepath.Join(config.ContainerBasePath(), "env", "contents"),
		filepath.Join(config.ContainerBasePath(), "ports", "descriptions"),
		filepath.Join(config.ContainerBasePath(), "ports", "interfaces"),
	)
	config.AddRequiredDirectory(
		0755,
		filepath.Join(config.SystemdBasePath(), "container-active.target.wants"),
	)
}
예제 #2
0
func init() {
	config.AddRequiredDirectory(
		0755,
		config.ContainerBasePath(),
		filepath.Join(config.ContainerBasePath(), "home"),
		filepath.Join(config.ContainerBasePath(), "units"),
	)
	config.AddRequiredDirectory(
		0750,
		filepath.Join(config.ContainerBasePath(), "targets"),
		filepath.Join(config.ContainerBasePath(), "slices"),
	)
}
예제 #3
0
func init() {
	// Register the required configuration directories
	config.AddRequiredDirectory(
		0755,
		filepath.Join(config.ContainerBasePath(), "access", "git"),
	)
}
예제 #4
0
func init() {
	handler := &containerPermission{}
	AddPermissionHandler("", handler)
	AddPermissionHandler(ContainerPermissionType, handler)

	// Register the required configuration directories
	config.AddRequiredDirectory(
		0755,
		config.ContainerBasePath(),
		filepath.Join(config.ContainerBasePath(), "access", "containers", "ssh"),
		filepath.Join(config.ContainerBasePath(), "keys", "public"),
	)
}
예제 #5
0
파일: init.go 프로젝트: pombredanne/geard
func init() {
	// Bind mounted into the router
	config.AddRequiredDirectory(0755, filepath.Join(config.ContainerBasePath(), "router"))
}
예제 #6
0
파일: init.go 프로젝트: jhadvig/geard
func init() {
	// Bind mounted into the githost
	config.AddRequiredDirectory(0755, filepath.Join(config.ContainerBasePath(), "git"))
}