Documentation ¶
Index ¶
- Constants
- type FakeJiriRoot
- func (fake FakeJiriRoot) AddHook(hook project.Hook) error
- func (fake FakeJiriRoot) AddImportOverride(name, remote, revision, manifest string) error
- func (fake FakeJiriRoot) AddPackage(pkg project.Package) error
- func (fake FakeJiriRoot) AddProject(project project.Project) error
- func (fake FakeJiriRoot) AddProjectOverride(name, remote, revision string) error
- func (fake FakeJiriRoot) CreateRemoteProject(name string) error
- func (fake FakeJiriRoot) DisableRemoteManifestPush() error
- func (fake FakeJiriRoot) EnableRemoteManifestPush() error
- func (fake FakeJiriRoot) ReadJiriManifest() (*project.Manifest, error)
- func (fake FakeJiriRoot) ReadRemoteManifest() (*project.Manifest, error)
- func (fake FakeJiriRoot) UpdateUniverse(gc bool) error
- func (fake FakeJiriRoot) WriteJiriManifest(manifest *project.Manifest) error
- func (fake FakeJiriRoot) WriteRemoteManifest(manifest *project.Manifest) error
Constants ¶
const ( ManifestFileName = "public" ManifestProjectPath = "manifest" )
const (
ManifestProjectName = "manifest"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeJiriRoot ¶
type FakeJiriRoot struct { X *jiri.X Projects map[string]string ProjectHashes map[string][]string // contains filtered or unexported fields }
FakeJiriRoot sets up a fake root under a tmp directory.
func NewFakeJiriRoot ¶
func NewFakeJiriRoot(t *testing.T) (*FakeJiriRoot, func())
NewFakeJiriRoot returns a new FakeJiriRoot and a cleanup closure. The closure must be run to cleanup temporary directories and restore the original environment; typically it is run as a defer function.
func (FakeJiriRoot) AddHook ¶
func (fake FakeJiriRoot) AddHook(hook project.Hook) error
AddHook adds the given hook to a remote manifest.
func (FakeJiriRoot) AddImportOverride ¶
func (fake FakeJiriRoot) AddImportOverride(name, remote, revision, manifest string) error
AddImportOverride adds a import override into .jiri_manifest of current FakeJiriRoot.
func (FakeJiriRoot) AddPackage ¶
func (fake FakeJiriRoot) AddPackage(pkg project.Package) error
AddPackage adds the given package to a remote manifest.
func (FakeJiriRoot) AddProject ¶
func (fake FakeJiriRoot) AddProject(project project.Project) error
AddProject adds the given project to a remote manifest.
func (FakeJiriRoot) AddProjectOverride ¶
func (fake FakeJiriRoot) AddProjectOverride(name, remote, revision string) error
AddProjectOverride adds a project override into .jiri_manifest of current FakeJiriRoot.
func (FakeJiriRoot) CreateRemoteProject ¶
func (fake FakeJiriRoot) CreateRemoteProject(name string) error
CreateRemoteProject creates a new remote project.
func (FakeJiriRoot) DisableRemoteManifestPush ¶
func (fake FakeJiriRoot) DisableRemoteManifestPush() error
DisableRemoteManifestPush disables pushes to the remote manifest repository.
func (FakeJiriRoot) EnableRemoteManifestPush ¶
func (fake FakeJiriRoot) EnableRemoteManifestPush() error
EnableRemoteManifestPush enables pushes to the remote manifest repository.
func (FakeJiriRoot) ReadJiriManifest ¶
func (fake FakeJiriRoot) ReadJiriManifest() (*project.Manifest, error)
ReadJiriManifest reads the .jiri_manifest manifest.
func (FakeJiriRoot) ReadRemoteManifest ¶
func (fake FakeJiriRoot) ReadRemoteManifest() (*project.Manifest, error)
ReadRemoteManifest read a manifest from the remote manifest project.
func (FakeJiriRoot) UpdateUniverse ¶
func (fake FakeJiriRoot) UpdateUniverse(gc bool) error
UpdateUniverse synchronizes the content of the Vanadium fake based on the content of the remote manifest.
func (FakeJiriRoot) WriteJiriManifest ¶
func (fake FakeJiriRoot) WriteJiriManifest(manifest *project.Manifest) error
WriteJiriManifest writes the given manifest to the .jiri_manifest file.
func (FakeJiriRoot) WriteRemoteManifest ¶
func (fake FakeJiriRoot) WriteRemoteManifest(manifest *project.Manifest) error
WriteRemoteManifest writes the given manifest to the remote manifest project.