Documentation ¶
Overview ¶
Package svnconfig generates config files for SVN server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { Repositories []Repository Groups []Group Users []User }
Generator generates configuration files for SVN server.
NB: Generator assumes that all fields and parameters are VALIDATED ELSEWHERE and does not validate nor escape any fields. Be careful if you want to generate configuration files from untrusted source.
func (*Generator) AuthUserFile ¶
AuthUserFile is an authentication configuration file for mod_authn_file.
See https://httpd.apache.org/docs/2.4/en/mod/mod_authn_file.html for more details.
func (*Generator) AuthzSVNAccessFile ¶
AuthzSVNAccessFile is an authorization configuration file for mod_authz_svn.
See https://svn.apache.org/repos/asf/subversion/trunk/subversion/mod_authz_svn/INSTALL for more details.
func (*Generator) BuildReposConfig ¶
func (g *Generator) BuildReposConfig() *ReposConfig
func (*Generator) ReposConfig ¶
type Permission ¶
Permission configurates permission to a specific repository.
type RepoEntry ¶
type RepoEntry struct {
Name string `json:"name,omitempty"`
}
RepoEntry is an entry for SVN repository.
type ReposConfig ¶
type ReposConfig struct {
Repositories []RepoEntry `json:"repositories"`
}
ReposConfig is a special configuration structure that is used to create SVN repositories.
type Repository ¶
type Repository struct { Name string Permissions []Permission }
Repository is a definition of a repository.