本文整理匯總了Golang中github.com/openshift/geard/utils.IsolateContentPathWithPerm函數的典型用法代碼示例。如果您正苦於以下問題:Golang IsolateContentPathWithPerm函數的具體用法?Golang IsolateContentPathWithPerm怎麽用?Golang IsolateContentPathWithPerm使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了IsolateContentPathWithPerm函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: GitAccessPathFor
func (i RepoIdentifier) GitAccessPathFor(name string, write bool) string {
var access string
if write {
access = ".write"
} else {
access = ".read"
}
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "access", "git"), string(i), name+access, 0775)
}
示例2: BaseHomePath
func (i Identifier) BaseHomePath() string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "home"), string(i), "", 0775)
}
示例3: SocketUnitPathFor
func (i Identifier) SocketUnitPathFor() string {
base := utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "units"), string(i), "", 0775)
return filepath.Join(filepath.Dir(base), i.SocketUnitNameFor())
}
示例4: VersionedUnitPathFor
func (i Identifier) VersionedUnitPathFor(suffix string) string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "units"), string(i), suffix, 0775)
}
示例5: RunPathFor
func (i Identifier) RunPathFor() string {
return utils.IsolateContentPathWithPerm(config.ContainerRunPath(), string(i), "/", 0775)
}
示例6: publicKeyPathFor
func publicKeyPathFor(f utils.Fingerprint) string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "keys", "public"), f.ToShortName(), "", 0775)
}
示例7: SshAccessPathFor
func SshAccessPathFor(i containers.Identifier, name string) string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "access", "containers", "ssh"), string(i), name, 0775)
}
示例8: SshAccessBasePath
func (i RepoIdentifier) SshAccessBasePath() string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), "access", "git"), string(i), "", 0775)
}
示例9: HomePath
func (i RepoIdentifier) HomePath() string {
return utils.IsolateContentPathWithPerm(filepath.Join(config.ContainerBasePath(), fmt.Sprintf("%shome", RepoIdentifierPrefix)), string(i), "home", 0775)
}