model

package
v0.0.0-...-2926f53 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppData

type AppData struct {
	Name string
}

type Config

type Config struct {
	App    AppData
	Groups map[string]Group
	Users  map[string]User
}

func (*Config) AddFile

func (data *Config) AddFile(filePath string, groupName *string) error

TODO: GroupName input as a []string

func (*Config) CreateGroup

func (data *Config) CreateGroup(name *string) error

func (*Config) CreateUser

func (data *Config) CreateUser(name, email *string) error

type Group

type Group struct {
	Files []string // IMPORTANT: In lowercase
	Users []string
}

type User

type User struct {
	Name string
}

Jump to

Keyboard shortcuts

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