config

package
v0.0.0-...-6a8b24c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server ServerConfig
	Orgs   []OrgConfig
	Users  []UserConfig
}

type ConfigInfo

type ConfigInfo struct {
	ConfigFile string
	Conf       Config
}

func (*ConfigInfo) LookupOrgById

func (ci *ConfigInfo) LookupOrgById(orgId string) (OrgConfig, error)

func (*ConfigInfo) LookupUserByKey

func (ci *ConfigInfo) LookupUserByKey(k string) (UserConfig, error)

func (*ConfigInfo) ReadFile

func (ci *ConfigInfo) ReadFile()

type OrgConfig

type OrgConfig struct {
	Id          string
	Description string
	Teams       []TeamConfig
}

type PubKeyConfig

type PubKeyConfig struct {
	Type string
	Val  string
}

type ServerConfig

type ServerConfig struct {
	DataRoot string
	User     string
	Group    string
}

type TeamConfig

type TeamConfig struct {
	Name  string
	Write bool
	Read  bool
}

type UserConfig

type UserConfig struct {
	Name    string
	SSHKeys []PubKeyConfig
	Orgs    []UserOrgConfig
}

type UserOrgConfig

type UserOrgConfig struct {
	Id    string
	Teams []string
}

Jump to

Keyboard shortcuts

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