Documentation ¶
Overview ¶
Provides API and CLI wrappers to create, delete, and export Git repositories on this system and provide SSH access to them.
Index ¶
- Constants
- type RepoIdentifier
- func (i RepoIdentifier) AuthKeysPathFor() string
- func (i RepoIdentifier) BaseHomePath() string
- func (i RepoIdentifier) GitAccessPathFor(name string, write bool) string
- func (i RepoIdentifier) HomePath() string
- func (i RepoIdentifier) LoginFor() string
- func (i RepoIdentifier) RepositoryPathFor() string
- func (i RepoIdentifier) SshAccessBasePath() string
- func (i RepoIdentifier) UnitNameFor() string
- func (i RepoIdentifier) UnitPathFor() string
- type RepositoryPermission
Constants ¶
View Source
const RepoIdentifierPrefix = "git-"
View Source
const RepositoryPermissionType = "repository"
View Source
const ResourceTypeRepository = "repo"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoIdentifier ¶
type RepoIdentifier containers.Identifier
func NewIdentifierFromUser ¶
func NewIdentifierFromUser(u *user.User) (RepoIdentifier, error)
func (RepoIdentifier) AuthKeysPathFor ¶
func (i RepoIdentifier) AuthKeysPathFor() string
func (RepoIdentifier) BaseHomePath ¶
func (i RepoIdentifier) BaseHomePath() string
func (RepoIdentifier) GitAccessPathFor ¶
func (i RepoIdentifier) GitAccessPathFor(name string, write bool) string
func (RepoIdentifier) HomePath ¶
func (i RepoIdentifier) HomePath() string
func (RepoIdentifier) LoginFor ¶
func (i RepoIdentifier) LoginFor() string
func (RepoIdentifier) RepositoryPathFor ¶
func (i RepoIdentifier) RepositoryPathFor() string
func (RepoIdentifier) SshAccessBasePath ¶
func (i RepoIdentifier) SshAccessBasePath() string
func (RepoIdentifier) UnitNameFor ¶
func (i RepoIdentifier) UnitNameFor() string
func (RepoIdentifier) UnitPathFor ¶
func (i RepoIdentifier) UnitPathFor() string
type RepositoryPermission ¶
Click to show internal directories.
Click to hide internal directories.