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