Documentation ¶ Index ¶ type BuildInfo func Read() (*BuildInfo, error) func (buildInfo *BuildInfo) Write() error type FileMap type Repos type ReposList func (reposList *ReposList) FindByReposPath(reposPath pathutil.ReposPath) *Repos func (reposList *ReposList) RemoveByReposPath(reposPath pathutil.ReposPath) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type BuildInfo ¶ type BuildInfo struct { Repos ReposList `json:"repos"` Version int64 `json:"version"` Strategy string `json:"strategy"` } func Read ¶ func Read() (*BuildInfo, error) func (*BuildInfo) Write ¶ func (buildInfo *BuildInfo) Write() error type FileMap ¶ type FileMap map[string]string key: filepath, value: version type Repos ¶ type Repos struct { Type lockjson.ReposType `json:"type"` Path pathutil.ReposPath `json:"path"` Version string `json:"version"` Files FileMap `json:"files,omitempty"` DirtyWorktree bool `json:"dirty_worktree,omitempty"` } type ReposList ¶ type ReposList []Repos func (*ReposList) FindByReposPath ¶ func (reposList *ReposList) FindByReposPath(reposPath pathutil.ReposPath) *Repos func (*ReposList) RemoveByReposPath ¶ func (reposList *ReposList) RemoveByReposPath(reposPath pathutil.ReposPath) Source Files ¶ View all Source files buildinfo.go Click to show internal directories. Click to hide internal directories.