buildinfo

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

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