示例#1
0
文件: cmd.go 项目: jhadvig/geard
func (c *serializeContainerPermission) CreatePermission(cmd *cobra.Command, id string) (*jobs.KeyPermission, error) {
	return jobs.NewKeyPermission(ssh.ContainerPermissionType, id)
}
示例#2
0
文件: cmd.go 项目: roacobb/geard
func (c *permissionHandler) CreatePermission(cmd *cobra.Command, id string) (*sshjobs.KeyPermission, error) {
	return sshjobs.NewKeyPermission(git.RepositoryPermissionType, &git.RepositoryPermission{id, c.writeAccess})
}