svnconfig

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (g *Generator) AuthUserFile() (string, error)

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

func (g *Generator) AuthzSVNAccessFile() (string, error)

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

func (g *Generator) ReposConfig() (string, error)

type Group

type Group struct {
	Name  string
	Users []string
}

Group is a definitions of a group.

type Permission

type Permission struct {
	Group      string
	Permission string
}

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.

type User

type User struct {
	Name              string
	EncryptedPassword string
}

User is a definition of a user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL