model

package
v0.0.0-...-fc9a958 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilParentDirectory = ParentDirectory{}
View Source
var NilProject = Project{}

Functions

func ConvertParentDirectoryToTablerSlice

func ConvertParentDirectoryToTablerSlice(dirs []*ParentDirectory) []core.Tabler

func ConvertProjectToTablerSlice

func ConvertProjectToTablerSlice(projects []*Project) []core.Tabler

Types

type ParentDirectory

type ParentDirectory struct {
	Id          uint64    `objectbox:"id"`
	Path        string    `objectbox:"unique"`
	LastUpdated time.Time `objectbox:"date"`
	Projects    []*Project
}

func NewParentDirectory

func NewParentDirectory(path string, directoryGetter util.DirectoryGetter) (ParentDirectory, error)

func (*ParentDirectory) LoadProjects

func (parentDir *ParentDirectory) LoadProjects() error

func (ParentDirectory) String

func (parentDir ParentDirectory) String() string

func (ParentDirectory) TableData

func (dir ParentDirectory) TableData() table.Row

func (ParentDirectory) TableHeader

func (ParentDirectory) TableHeader() table.Row

type ParentDirectoryConstructor

type ParentDirectoryConstructor func(string, util.DirectoryGetter) (ParentDirectory, error)

type Project

type Project struct {
	Id                 uint64
	Name               string
	Path               string    `objectbox:"unique"`
	LastUpdated        time.Time `objectbox:"date"`
	HaveVersionControl bool
}

func NewProject

func NewProject(path string, directoryGetter ioUtil.DirectoryGetter) (Project, error)

func (Project) FullInfo

func (project Project) FullInfo() string

func (Project) String

func (project Project) String() string

func (Project) TableData

func (project Project) TableData() table.Row

func (Project) TableHeader

func (Project) TableHeader() table.Row

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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