config

package
v0.0.0-...-066fbf5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collaborator

type Collaborator struct {
	Username   string `yaml:"username"`
	Email      string `yaml:"email"`
	Permission string `yaml:"permission"`
}

type Config

type Config struct {
	Users        []User       `yaml:"users"`
	Repositories []Repository `yaml:"repositories"`
}

func ParseDir

func ParseDir(path string) (Config, error)

func ParseFile

func ParseFile(path string) (Config, error)

type Parser

type Parser struct {
	Config Config
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(reader io.Reader, path string) error

func (*Parser) ParseDir

func (p *Parser) ParseDir(path string) error

func (*Parser) ParseFile

func (p *Parser) ParseFile(path, basedir string) error

type Repository

type Repository struct {
	Collaborators []Collaborator `yaml:"collaborators"`
	Name          string         `yaml:"name"`
}

type User

type User struct {
	Username string `yaml:"username"`
	Email    string `yaml:"email"`
	Role     string `yaml:"role"`
}

Jump to

Keyboard shortcuts

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