repo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotGitData

type DotGitData struct {
	// contains filtered or unexported fields
}

DotGitData holds basic information about a local .git file

func NewDotGitDataFromPath

func NewDotGitDataFromPath(path string) (*DotGitData, error)

NewDotGitDataFromPath wants the incoming path to hold dotGit E.g.

~/gopath/src/sigs.k8s.io/kustomize
~/gopath/src/github.com/monopole/gorepomod

func (*DotGitData) AbsPath

func (dg *DotGitData) AbsPath() string

func (*DotGitData) NewRepoFactory

func (dg *DotGitData) NewRepoFactory(
	exclusions []string) (*ManagerFactory, error)

It's a factory factory.

func (*DotGitData) RepoPath

func (dg *DotGitData) RepoPath() string

func (*DotGitData) SrcPath

func (dg *DotGitData) SrcPath() string

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages a git repo. All data already loaded and validated, it's ready to go.

func (*Manager) AbsPath

func (mgr *Manager) AbsPath() string

func (*Manager) Debug added in v0.0.5

func (mgr *Manager) Debug(_ misc.LaModule, doIt bool) error

func (*Manager) FindModule

func (mgr *Manager) FindModule(
	target misc.ModuleShortName) misc.LaModule

func (*Manager) List

func (mgr *Manager) List() error

func (*Manager) Pin

func (mgr *Manager) Pin(
	doIt bool, target misc.LaModule, newV semver.SemVer) error

func (*Manager) Release

func (mgr *Manager) Release(
	target misc.LaModule, bump semver.SvBump, doIt bool) error

Release supports a gitlab flow style release process.

* All development happens in the branch named "master". * Each minor release gets its own branch. *

func (*Manager) RepoPath

func (mgr *Manager) RepoPath() string

func (*Manager) Tidy

func (mgr *Manager) Tidy(doIt bool) error

func (*Manager) UnPin

func (mgr *Manager) UnPin(doIt bool, target misc.LaModule) error

func (*Manager) UnRelease

func (mgr *Manager) UnRelease(target misc.LaModule, doIt bool) error

type ManagerFactory

type ManagerFactory struct {
	// contains filtered or unexported fields
}

ManagerFactory is a collection of clean data needed to build clean, fully wired up instances of Manager.

func (*ManagerFactory) NewRepoManager

func (mf *ManagerFactory) NewRepoManager() *Manager

Jump to

Keyboard shortcuts

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