Documentation ¶
Index ¶
- Variables
- func ListFiles(directory string) []string
- type GitBranch
- func (*GitBranch) Descriptor() ([]byte, []int)deprecated
- func (x *GitBranch) GetMerge() string
- func (x *GitBranch) GetName() string
- func (x *GitBranch) GetRemote() string
- func (*GitBranch) ProtoMessage()
- func (x *GitBranch) ProtoReflect() protoreflect.Message
- func (x *GitBranch) Reset()
- func (x *GitBranch) String() string
- type GitBranchIterator
- type GitConfig
- func (*GitConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GitConfig) GetBranches() map[string]*GitBranch
- func (x *GitConfig) GetCore() map[string]string
- func (x *GitConfig) GetHashes() map[string]string
- func (x *GitConfig) GetLocal() []*GitBranch
- func (x *GitConfig) GetRemotes() map[string]*GitRemote
- func (x *GitConfig) GetSubmodules() map[string]string
- func (x *GitConfig) GetVersions() map[string]string
- func (*GitConfig) ProtoMessage()
- func (x *GitConfig) ProtoReflect() protoreflect.Message
- func (x *GitConfig) Reset()
- func (x *GitConfig) String() string
- type GitConfigIterator
- type GitRemote
- type GitRemoteIterator
- type GitTag
- func (*GitTag) Descriptor() ([]byte, []int)deprecated
- func (tag *GitTag) GetAge() time.Duration
- func (x *GitTag) GetAuthordate() *timestamppb.Timestamp
- func (x *GitTag) GetCreatordate() *timestamppb.Timestamp
- func (x *GitTag) GetHash() string
- func (x *GitTag) GetRefname() string
- func (x *GitTag) GetSubject() string
- func (*GitTag) ProtoMessage()
- func (x *GitTag) ProtoReflect() protoreflect.Message
- func (x *GitTag) Reset()
- func (x *GitTag) String() string
- type GitTagAge
- type GitTagIterator
- type GitTagRefname
- type GitTags
- func (x *GitTags) All() *GitTagIterator
- func (x *GitTags) Append(y *GitTag)
- func (x *GitTags) AppendByHash(y *GitTag) bool
- func (x *GitTags) AppendByRefname(y *GitTag) bool
- func (x *GitTags) Delete(y *GitTag) bool
- func (x *GitTags) DeleteByHash(s string) bool
- func (x *GitTags) DeleteByRefname(s string) bool
- func (*GitTags) Descriptor() ([]byte, []int)deprecated
- func (x *GitTags) FindByHash(s string) *GitTag
- func (x *GitTags) FindByRefname(s string) *GitTag
- func (v *GitTags) FormatJSON() string
- func (v *GitTags) FormatTEXT() string
- func (all *GitTags) GetAge(name string) time.Time
- func (x *GitTags) GetGitTags() []*GitTag
- func (x *GitTags) GetUuid() string
- func (x *GitTags) GetVersion() string
- func (x *GitTags) Len() int
- func (v *GitTags) Marshal() ([]byte, error)
- func (v *GitTags) MarshalJSON() ([]byte, error)
- func (*GitTags) ProtoMessage()
- func (x *GitTags) ProtoReflect() protoreflect.Message
- func (x *GitTags) Reset()
- func (all *GitTags) SortByAge() *GitTagIterator
- func (x *GitTags) SortByRefname() *GitTagIterator
- func (x *GitTags) String() string
- func (v *GitTags) Unmarshal(data []byte) error
- func (v *GitTags) UnmarshalJSON(data []byte) error
- func (v *GitTags) UnmarshalTEXT(data []byte) error
- type GitTagsIterator
- type GitTimes
- func (*GitTimes) Descriptor() ([]byte, []int)deprecated
- func (x *GitTimes) GetLastDirty() *timestamppb.Timestamp
- func (x *GitTimes) GetLastGoDep() *timestamppb.Timestamp
- func (x *GitTimes) GetLastPull() *timestamppb.Timestamp
- func (x *GitTimes) GetLastUpdate() *timestamppb.Timestamp
- func (x *GitTimes) GetMtimeConfig() *timestamppb.Timestamp
- func (x *GitTimes) GetMtimeDir() *timestamppb.Timestamp
- func (x *GitTimes) GetMtimeFetch() *timestamppb.Timestamp
- func (x *GitTimes) GetMtimeHead() *timestamppb.Timestamp
- func (x *GitTimes) GetMtimeIndex() *timestamppb.Timestamp
- func (x *GitTimes) GetNewestCommit() *timestamppb.Timestamp
- func (*GitTimes) ProtoMessage()
- func (x *GitTimes) ProtoReflect() protoreflect.Message
- func (x *GitTimes) Reset()
- func (x *GitTimes) String() string
- type GitTimesIterator
- type GoDep
- func (*GoDep) Descriptor() ([]byte, []int)deprecated
- func (x *GoDep) GetCtime() *timestamppb.Timestamp
- func (x *GoDep) GetGoPath() string
- func (x *GoDep) GetGoVersion() string
- func (x *GoDep) GetHash() string
- func (x *GoDep) GetVersion() string
- func (*GoDep) ProtoMessage()
- func (x *GoDep) ProtoReflect() protoreflect.Message
- func (x *GoDep) Reset()
- func (x *GoDep) String() string
- type GoDepGoPath
- type GoDepHash
- type GoDepIterator
- type GoDeps
- func (x *GoDeps) All() *GoDepIterator
- func (x *GoDeps) Append(y *GoDep)
- func (x *GoDeps) AppendByGoPath(y *GoDep) bool
- func (x *GoDeps) AppendByHash(y *GoDep) bool
- func (x *GoDeps) Delete(y *GoDep) bool
- func (x *GoDeps) DeleteByGoPath(s string) bool
- func (x *GoDeps) DeleteByHash(s string) bool
- func (*GoDeps) Descriptor() ([]byte, []int)deprecated
- func (x *GoDeps) FindByGoPath(s string) *GoDep
- func (x *GoDeps) FindByHash(s string) *GoDep
- func (x *GoDeps) GetGoDeps() []*GoDep
- func (x *GoDeps) GetUuid() string
- func (x *GoDeps) GetVersion() string
- func (x *GoDeps) Len() int
- func (*GoDeps) ProtoMessage()
- func (x *GoDeps) ProtoReflect() protoreflect.Message
- func (x *GoDeps) Reset()
- func (x *GoDeps) SortByGoPath() *GoDepIterator
- func (x *GoDeps) SortByHash() *GoDepIterator
- func (x *GoDeps) String() string
- type GoDepsIterator
- type GoInfo
- func (*GoInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GoInfo) GetDesc() string
- func (x *GoInfo) GetGitIgnoresGoSum() bool
- func (x *GoInfo) GetGoBinary() bool
- func (x *GoInfo) GetGoDeps() *GoDeps
- func (x *GoInfo) GetGoLibrary() bool
- func (x *GoInfo) GetGoMod() []byte
- func (x *GoInfo) GetGoPath() string
- func (x *GoInfo) GetGoPlugin() bool
- func (x *GoInfo) GetGoPrimitive() bool
- func (x *GoInfo) GetGoProtobuf() bool
- func (x *GoInfo) GetGoSum() []byte
- func (x *GoInfo) GetPublished() *GoDeps
- func (*GoInfo) ProtoMessage()
- func (x *GoInfo) ProtoReflect() protoreflect.Message
- func (x *GoInfo) Reset()
- func (x *GoInfo) String() string
- type GoInfoIterator
- type Patch
- type Repo
- func (repo *Repo) AgeGoDep() time.Duration
- func (repo *Repo) AppendGoDep(newP *GoDep) bool
- func (repo *Repo) AutogenRestore(refname string) error
- func (repo *Repo) AutogenSave(files []string, refname string, del bool) error
- func (repo *Repo) BranchAge(branch string) time.Duration
- func (repo *Repo) BranchExists(bName string) bool
- func (repo *Repo) CheckBranches() bool
- func (repo *Repo) CheckDirty() bool
- func (repo *Repo) CheckoutDevel() bool
- func (repo *Repo) CheckoutMaster() bool
- func (repo *Repo) CheckoutUser() error
- func (repo *Repo) ConstructGitDiffLog(branch1, branch2 string) []string
- func (repo *Repo) DebianCurrentVersion() string
- func (repo *Repo) DebianReleaseVersion() string
- func (repo *Repo) DeleteGoDepByHash(hash string)
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (repo *Repo) DevelHash() string
- func (repo *Repo) DidRepoChange() bool
- func (repo *Repo) ExamineBranches() *GitTag
- func (repo *Repo) Exists(filename string) bool
- func (repo *Repo) FindGoDepByPath(gopath string) *GoDep
- func (v *Repo) FormatJSON() string
- func (v *Repo) FormatTEXT() string
- func (repo *Repo) GetBranches() []string
- func (x *Repo) GetCurrentBranchName() string
- func (x *Repo) GetCurrentBranchVersion() string
- func (x *Repo) GetCurrentTag() *GitTag
- func (repo *Repo) GetCurrentVersion() string
- func (x *Repo) GetDesc() string
- func (x *Repo) GetDevelBranchName() string
- func (x *Repo) GetDevelVersion() string
- func (x *Repo) GetDirty() bool
- func (x *Repo) GetDirtyList() []string
- func (x *Repo) GetFullPath() string
- func (x *Repo) GetGitConfig() *GitConfig
- func (x *Repo) GetGoDeps() *GoDeps
- func (x *Repo) GetGoInfo() *GoInfo
- func (repo *Repo) GetGoPath() string
- func (repo *Repo) GetGoPrimitive() bool
- func (x *Repo) GetLastTag() string
- func (repo *Repo) GetLastTagVersion() string
- func (x *Repo) GetMasterBranchName() string
- func (repo *Repo) GetMasterPatches() (int, []*Patch)
- func (x *Repo) GetMasterVersion() string
- func (repo *Repo) GetPatches(oldname string, newname string) (int, []*Patch)
- func (repo *Repo) GetProtoFiles() ([]string, error)
- func (x *Repo) GetReadOnly() bool
- func (repo *Repo) GetRepoType() string
- func (x *Repo) GetState() string
- func (x *Repo) GetStateChange() string
- func (x *Repo) GetTags() *GitTags
- func (x *Repo) GetTargetVersion() string
- func (x *Repo) GetTimes() *GitTimes
- func (x *Repo) GetURL() string
- func (x *Repo) GetUserBranchName() string
- func (repo *Repo) GetUserPatches() (int, []*Patch)
- func (x *Repo) GetUserVersion() string
- func (repo *Repo) GitChanged() bool
- func (repo *Repo) GitPull() (*cmd.Status, error)
- func (repo *Repo) GitPullAge() time.Duration
- func (repo *Repo) GitPullRealtime() cmd.Status
- func (repo *Repo) GoDepsLen() int
- func (repo *Repo) GoSumAge() (time.Duration, error)
- func (repo *Repo) IncrementTargetMinor()
- func (repo *Repo) IncrementTargetRevision() bool
- func (repo *Repo) IsBranch(findname string) bool
- func (repo *Repo) IsDevelBranch() bool
- func (repo *Repo) IsDirectory() bool
- func (repo *Repo) IsDirty() bool
- func (repo *Repo) IsGitDirectory() bool
- func (repo *Repo) IsLocalBranch(findname string) bool
- func (repo *Repo) IsMasterBranch() bool
- func (repo *Repo) IsOnlyLocalTag(taggy string) bool
- func (repo *Repo) IsProtobuf() (bool, []string, error)
- func (repo *Repo) IsUserBranch() bool
- func (repo *Repo) IsValidDir() bool
- func (repo *Repo) LastGitPull() (time.Time, error)
- func (repo *Repo) LocalTagExists(findname string) bool
- func (v *Repo) Marshal() ([]byte, error)
- func (v *Repo) MarshalJSON() ([]byte, error)
- func (rs *Repo) MergeDevelToMaster() (*cmd.Status, error)
- func (rs *Repo) MergeUserToDevel() (*cmd.Status, error)
- func (repo *Repo) Mtime(fname string) *time.Time
- func (repo *Repo) NewestAge() time.Duration
- func (repo *Repo) NewestAgeVerbose() time.Duration
- func (repo *Repo) NewestTag() *GitTag
- func (repo *Repo) NoteChange(s string)
- func (repo *Repo) ParseGoSum() bool
- func (*Repo) ProtoMessage()
- func (x *Repo) ProtoReflect() protoreflect.Message
- func (repo *Repo) ReadFile(fname string) ([]byte, error)
- func (repo *Repo) Reload() error
- func (repo *Repo) ReloadCheck() error
- func (repo *Repo) RepoIgnoresGoMod() error
- func (x *Repo) Reset()
- func (repo *Repo) RevertMasterToDevel() bool
- func (repo *Repo) Run(cmd []string) cmd.Status
- func (repo *Repo) RunAll(all [][]string) bool
- func (repo *Repo) RunEcho(cmd []string) cmd.Status
- func (repo *Repo) RunQuiet(cmd []string) cmd.Status
- func (repo *Repo) RunRealtime(cmd []string) cmd.Status
- func (repo *Repo) RunRealtimeVerbose(cmd []string) cmd.Status
- func (repo *Repo) RunStrict(cmd []string) error
- func (repo *Repo) RunStrictAll(all [][]string) (*cmd.Status, error)
- func (repo *Repo) RunStrictNew(cmd []string) (*cmd.Status, error)
- func (repo *Repo) RunVerbose(cmd []string) (*cmd.Status, error)
- func (repo *Repo) RunVerboseOnError(cmd []string) (*cmd.Status, error)
- func (repo *Repo) SetDevelBranchName(bname string)
- func (repo *Repo) SetGoPrimitive(b bool)
- func (repo *Repo) SetMasterBranchName(s string)
- func (repo *Repo) SetReadOnly(b bool)
- func (repo *Repo) SetTargetVersion(target string)
- func (repo *Repo) SetUserBranchName(bname string)
- func (repo *Repo) StrictRun(cmd []string) error
- func (x *Repo) String() string
- func (v *Repo) Unmarshal(data []byte) error
- func (v *Repo) UnmarshalJSON(data []byte) error
- func (v *Repo) UnmarshalTEXT(data []byte) error
- func (repo *Repo) ValidGoSum() error
- type RepoFullPath
- type RepoIterator
- type Repos
- func (x *Repos) All() *RepoIterator
- func (x *Repos) Append(y *Repo)
- func (x *Repos) AppendByFullPath(y *Repo) bool
- func (all *Repos) AppendByGoPath(newr *Repo) bool
- func (all *Repos) ConfigLoad() error
- func (all *Repos) ConfigSave() error
- func (x *Repos) Delete(y *Repo) bool
- func (x *Repos) DeleteByFullPath(s string) bool
- func (*Repos) Descriptor() ([]byte, []int)deprecated
- func (x *Repos) FindByFullPath(s string) *Repo
- func (v *Repos) FormatJSON() string
- func (v *Repos) FormatTEXT() string
- func (x *Repos) GetRepos() []*Repo
- func (x *Repos) GetUuid() string
- func (x *Repos) GetVersion() string
- func (x *Repos) Len() int
- func (all *Repos) MakePatchset(setdir string) bool
- func (v *Repos) Marshal() ([]byte, error)
- func (v *Repos) MarshalJSON() ([]byte, error)
- func (all *Repos) NewGoRepo(fullpath string, gopath string) (*Repo, error)
- func (*Repos) ProtoMessage()
- func (x *Repos) ProtoReflect() protoreflect.Message
- func (x *Repos) Reset()
- func (all *Repos) RillGitPull(part1 int, part2 int) map[*Repo]*cmd.Status
- func (x *Repos) SortByFullPath() *RepoIterator
- func (x *Repos) String() string
- func (v *Repos) Unmarshal(data []byte) error
- func (v *Repos) UnmarshalJSON(data []byte) error
- func (v *Repos) UnmarshalTEXT(data []byte) error
- type ReposIterator
Constants ¶
This section is empty.
Variables ¶
var ErrorGitPullOnDirty error = errors.New("cannot git pull on dirty repo")
var ErrorGitPullOnLocal error = errors.New("git pull on local only branch")
var ErrorMissingGitConfig error = errors.New("missing .git/config")
var File_gitTag_proto protoreflect.FileDescriptor
var File_goDep_proto protoreflect.FileDescriptor
var File_repo_proto protoreflect.FileDescriptor
var INFO *log.LogFlag
var NOW *log.LogFlag
var WARN *log.LogFlag
Functions ¶
Types ¶
type GitBranch ¶ added in v0.0.57
type GitBranch struct { Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` // the name of the remote repo Merge string `protobuf:"bytes,2,opt,name=merge,proto3" json:"merge,omitempty"` // the merge path from the config file Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // the branch name from the config file // contains filtered or unexported fields }
func (*GitBranch) Descriptor
deprecated
added in
v0.0.57
func (*GitBranch) ProtoMessage ¶ added in v0.0.57
func (*GitBranch) ProtoMessage()
func (*GitBranch) ProtoReflect ¶ added in v0.0.57
func (x *GitBranch) ProtoReflect() protoreflect.Message
type GitBranchIterator ¶ added in v0.0.57
type GitBranchIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitBranchIterator) Next ¶ added in v0.0.57
func (it *GitBranchIterator) Next() *GitBranch
Next() returns the next thing in the array
func (*GitBranchIterator) Scan ¶ added in v0.0.57
func (it *GitBranchIterator) Scan() bool
type GitConfig ¶ added in v0.0.57
type GitConfig struct { Core map[string]string `` // map[origin] = "https:/git.wit.org/gui/gadgets" /* 149-byte string literal not displayed */ Remotes map[string]*GitRemote `` // map[origin] = "https:/git.wit.org/gui/gadgets" /* 155-byte string literal not displayed */ Branches map[string]*GitBranch `` // map[guimaster] = origin guimaster /* 157-byte string literal not displayed */ Submodules map[string]string `` /* 161-byte string literal not displayed */ Hashes map[string]string `` /* 153-byte string literal not displayed */ Versions map[string]string `` /* 157-byte string literal not displayed */ Local []*GitBranch `protobuf:"bytes,7,rep,name=local,proto3" json:"local,omitempty"` // move this this and away from the map<> variables // contains filtered or unexported fields }
readGitConfig reads and parses the .git/config file
func (*GitConfig) Descriptor
deprecated
added in
v0.0.57
func (*GitConfig) GetBranches ¶ added in v0.0.57
func (*GitConfig) GetRemotes ¶ added in v0.0.57
func (*GitConfig) GetSubmodules ¶ added in v0.0.57
func (*GitConfig) GetVersions ¶ added in v0.0.57
func (*GitConfig) ProtoMessage ¶ added in v0.0.57
func (*GitConfig) ProtoMessage()
func (*GitConfig) ProtoReflect ¶ added in v0.0.57
func (x *GitConfig) ProtoReflect() protoreflect.Message
type GitConfigIterator ¶ added in v0.0.57
type GitConfigIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitConfigIterator) Next ¶ added in v0.0.57
func (it *GitConfigIterator) Next() *GitConfig
Next() returns the next thing in the array
func (*GitConfigIterator) Scan ¶ added in v0.0.57
func (it *GitConfigIterator) Scan() bool
type GitRemote ¶ added in v0.0.57
type GitRemote struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Fetch string `protobuf:"bytes,2,opt,name=fetch,proto3" json:"fetch,omitempty"` // contains filtered or unexported fields }
func (*GitRemote) Descriptor
deprecated
added in
v0.0.57
func (*GitRemote) ProtoMessage ¶ added in v0.0.57
func (*GitRemote) ProtoMessage()
func (*GitRemote) ProtoReflect ¶ added in v0.0.57
func (x *GitRemote) ProtoReflect() protoreflect.Message
type GitRemoteIterator ¶ added in v0.0.57
type GitRemoteIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitRemoteIterator) Next ¶ added in v0.0.57
func (it *GitRemoteIterator) Next() *GitRemote
Next() returns the next thing in the array
func (*GitRemoteIterator) Scan ¶ added in v0.0.57
func (it *GitRemoteIterator) Scan() bool
type GitTag ¶ added in v0.0.10
type GitTag struct { Refname string `protobuf:"bytes,1,opt,name=refname,proto3" json:"refname,omitempty"` // `autogenpb:unique` `autogenpb:sort` // tag name. treated as unique Creatordate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=creatordate,proto3" json:"creatordate,omitempty"` // git creatordate Authordate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=authordate,proto3" json:"authordate,omitempty"` // git author date Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` // `autogenpb:unique` // git hash Subject string `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"` // git tag subject // contains filtered or unexported fields }
func (*GitTag) Descriptor
deprecated
added in
v0.0.10
func (*GitTag) GetAuthordate ¶ added in v0.0.10
func (x *GitTag) GetAuthordate() *timestamppb.Timestamp
func (*GitTag) GetCreatordate ¶ added in v0.0.10
func (x *GitTag) GetCreatordate() *timestamppb.Timestamp
func (*GitTag) GetRefname ¶ added in v0.0.10
func (*GitTag) GetSubject ¶ added in v0.0.10
func (*GitTag) ProtoMessage ¶ added in v0.0.10
func (*GitTag) ProtoMessage()
func (*GitTag) ProtoReflect ¶ added in v0.0.10
func (x *GitTag) ProtoReflect() protoreflect.Message
type GitTagIterator ¶ added in v0.0.10
type GitTagIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitTagIterator) Next ¶ added in v0.0.10
func (it *GitTagIterator) Next() *GitTag
Next() returns the next thing in the array
func (*GitTagIterator) Scan ¶ added in v0.0.10
func (it *GitTagIterator) Scan() bool
type GitTagRefname ¶ added in v0.0.10
type GitTagRefname []*GitTag
sort struct by Refname
func (GitTagRefname) Len ¶ added in v0.0.10
func (a GitTagRefname) Len() int
func (GitTagRefname) Less ¶ added in v0.0.10
func (a GitTagRefname) Less(i, j int) bool
func (GitTagRefname) Swap ¶ added in v0.0.10
func (a GitTagRefname) Swap(i, j int)
type GitTags ¶ added in v0.0.10
type GitTags struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:ffdff813-0316-4372-9e82-4c1c7d202526` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.47` GitTags []*GitTag `protobuf:"bytes,3,rep,name=gitTags,proto3" json:"gitTags,omitempty"` // contains filtered or unexported fields }
func NewGitTags ¶ added in v0.0.54
func NewGitTags() *GitTags
func (*GitTags) All ¶ added in v0.0.10
func (x *GitTags) All() *GitTagIterator
func (*GitTags) Append ¶ added in v0.0.10
just a simple Append() shortcut (but still uses the mutex lock)
func (*GitTags) AppendByHash ¶ added in v0.0.50
func (*GitTags) AppendByRefname ¶ added in v0.0.50
func (*GitTags) DeleteByHash ¶ added in v0.0.10
func (*GitTags) DeleteByRefname ¶ added in v0.0.10
func (*GitTags) Descriptor
deprecated
added in
v0.0.10
func (*GitTags) FindByHash ¶ added in v0.0.10
lookup a GitTags by the Hash
func (*GitTags) FindByRefname ¶ added in v0.0.10
lookup a GitTags by the Refname
func (*GitTags) FormatJSON ¶ added in v0.0.12
human readable JSON
func (*GitTags) FormatTEXT ¶ added in v0.0.12
apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!
func (*GitTags) GetGitTags ¶ added in v0.0.10
func (*GitTags) GetVersion ¶ added in v0.0.10
func (*GitTags) MarshalJSON ¶ added in v0.0.12
marshal json
func (*GitTags) ProtoMessage ¶ added in v0.0.10
func (*GitTags) ProtoMessage()
func (*GitTags) ProtoReflect ¶ added in v0.0.10
func (x *GitTags) ProtoReflect() protoreflect.Message
func (*GitTags) SortByAge ¶ added in v0.0.19
func (all *GitTags) SortByAge() *GitTagIterator
func (*GitTags) SortByRefname ¶ added in v0.0.10
func (x *GitTags) SortByRefname() *GitTagIterator
func (*GitTags) UnmarshalJSON ¶ added in v0.0.12
unmarshal json
func (*GitTags) UnmarshalTEXT ¶ added in v0.0.12
unmarshalTEXT. This reads the .text config file back in after the user edits it
type GitTagsIterator ¶ added in v0.0.50
type GitTagsIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitTagsIterator) Next ¶ added in v0.0.50
func (it *GitTagsIterator) Next() *GitTags
Next() returns the next thing in the array
func (*GitTagsIterator) Scan ¶ added in v0.0.50
func (it *GitTagsIterator) Scan() bool
type GitTimes ¶ added in v0.0.34
type GitTimes struct { LastPull *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=lastPull,proto3" json:"lastPull,omitempty"` // last time a git pull was done LastUpdate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lastUpdate,proto3" json:"lastUpdate,omitempty"` // when was ReloadGit() last done LastDirty *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=lastDirty,proto3" json:"lastDirty,omitempty"` // last time CheckDirty() was run MtimeDir *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=mtimeDir,proto3" json:"mtimeDir,omitempty"` // mtime for ./git // maybe useful to track MtimeHead *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=mtimeHead,proto3" json:"mtimeHead,omitempty"` // mtime for ./git/HEAD // these two mtimes allow really fast checks to see if git has changed MtimeIndex *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=mtimeIndex,proto3" json:"mtimeIndex,omitempty"` // mtime for ./git/HEAD // probably always in sync with HEAD MtimeFetch *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=mtimeFetch,proto3" json:"mtimeFetch,omitempty"` // mtime for ./git/FETCH_HEAD // last time 'git fetch' or 'git pull' was run on current branch? LastGoDep *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=lastGoDep,proto3" json:"lastGoDep,omitempty"` // mtime for last go.sum scan NewestCommit *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=newestCommit,proto3" json:"newestCommit,omitempty"` // when the newest commit was MtimeConfig *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=mtimeConfig,proto3" json:"mtimeConfig,omitempty"` // mtime for the .git/config file // contains filtered or unexported fields }
should it be done this way?
func (*GitTimes) Descriptor
deprecated
added in
v0.0.34
func (*GitTimes) GetLastDirty ¶ added in v0.0.34
func (x *GitTimes) GetLastDirty() *timestamppb.Timestamp
func (*GitTimes) GetLastGoDep ¶ added in v0.0.34
func (x *GitTimes) GetLastGoDep() *timestamppb.Timestamp
func (*GitTimes) GetLastPull ¶ added in v0.0.34
func (x *GitTimes) GetLastPull() *timestamppb.Timestamp
func (*GitTimes) GetLastUpdate ¶ added in v0.0.34
func (x *GitTimes) GetLastUpdate() *timestamppb.Timestamp
func (*GitTimes) GetMtimeConfig ¶ added in v0.0.57
func (x *GitTimes) GetMtimeConfig() *timestamppb.Timestamp
func (*GitTimes) GetMtimeDir ¶ added in v0.0.34
func (x *GitTimes) GetMtimeDir() *timestamppb.Timestamp
func (*GitTimes) GetMtimeFetch ¶ added in v0.0.34
func (x *GitTimes) GetMtimeFetch() *timestamppb.Timestamp
func (*GitTimes) GetMtimeHead ¶ added in v0.0.34
func (x *GitTimes) GetMtimeHead() *timestamppb.Timestamp
func (*GitTimes) GetMtimeIndex ¶ added in v0.0.34
func (x *GitTimes) GetMtimeIndex() *timestamppb.Timestamp
func (*GitTimes) GetNewestCommit ¶ added in v0.0.41
func (x *GitTimes) GetNewestCommit() *timestamppb.Timestamp
func (*GitTimes) ProtoMessage ¶ added in v0.0.34
func (*GitTimes) ProtoMessage()
func (*GitTimes) ProtoReflect ¶ added in v0.0.34
func (x *GitTimes) ProtoReflect() protoreflect.Message
type GitTimesIterator ¶ added in v0.0.50
type GitTimesIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GitTimesIterator) Next ¶ added in v0.0.50
func (it *GitTimesIterator) Next() *GitTimes
Next() returns the next thing in the array
func (*GitTimesIterator) Scan ¶ added in v0.0.50
func (it *GitTimesIterator) Scan() bool
type GoDep ¶ added in v0.0.10
type GoDep struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // `autogenpb:unique` `autogenpb:sort` // md5sum/hash value from the go.sum file Ctime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"` // get the go date from 'go list' ? Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // v1.2.2 GoPath string `protobuf:"bytes,4,opt,name=goPath,proto3" json:"goPath,omitempty"` // `autogenpb:unique` `autogenpb:sort` // "go.wit.com/lib/foo" GoVersion string `protobuf:"bytes,5,opt,name=goVersion,proto3" json:"goVersion,omitempty"` // version of golang the developer used to make this package version // contains filtered or unexported fields }
func (*GoDep) Descriptor
deprecated
added in
v0.0.10
func (*GoDep) GetCtime ¶ added in v0.0.10
func (x *GoDep) GetCtime() *timestamppb.Timestamp
func (*GoDep) GetGoVersion ¶ added in v0.0.10
func (*GoDep) GetVersion ¶ added in v0.0.10
func (*GoDep) ProtoMessage ¶ added in v0.0.10
func (*GoDep) ProtoMessage()
func (*GoDep) ProtoReflect ¶ added in v0.0.10
func (x *GoDep) ProtoReflect() protoreflect.Message
type GoDepGoPath ¶ added in v0.0.10
type GoDepGoPath []*GoDep
sort struct by GoPath
func (GoDepGoPath) Len ¶ added in v0.0.10
func (a GoDepGoPath) Len() int
func (GoDepGoPath) Less ¶ added in v0.0.10
func (a GoDepGoPath) Less(i, j int) bool
func (GoDepGoPath) Swap ¶ added in v0.0.10
func (a GoDepGoPath) Swap(i, j int)
type GoDepIterator ¶ added in v0.0.10
type GoDepIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GoDepIterator) Next ¶ added in v0.0.10
func (it *GoDepIterator) Next() *GoDep
Next() returns the next thing in the array
func (*GoDepIterator) Scan ¶ added in v0.0.10
func (it *GoDepIterator) Scan() bool
type GoDeps ¶ added in v0.0.10
type GoDeps struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:7de62c09-b335-4d80-902d-08552c501b7c` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.51` GoDeps []*GoDep `protobuf:"bytes,3,rep,name=goDeps,proto3" json:"goDeps,omitempty"` // `autogenpb:unique` `autogenpb:sort` // contains filtered or unexported fields }
func (*GoDeps) All ¶ added in v0.0.10
func (x *GoDeps) All() *GoDepIterator
func (*GoDeps) Append ¶ added in v0.0.10
just a simple Append() shortcut (but still uses the mutex lock)
func (*GoDeps) AppendByGoPath ¶ added in v0.0.50
func (*GoDeps) AppendByHash ¶ added in v0.0.50
func (*GoDeps) DeleteByGoPath ¶ added in v0.0.10
func (*GoDeps) DeleteByHash ¶ added in v0.0.10
func (*GoDeps) Descriptor
deprecated
added in
v0.0.10
func (*GoDeps) FindByGoPath ¶ added in v0.0.10
lookup a GoDeps by the GoPath
func (*GoDeps) FindByHash ¶ added in v0.0.10
lookup a GoDeps by the Hash
func (*GoDeps) GetVersion ¶ added in v0.0.10
func (*GoDeps) ProtoMessage ¶ added in v0.0.10
func (*GoDeps) ProtoMessage()
func (*GoDeps) ProtoReflect ¶ added in v0.0.10
func (x *GoDeps) ProtoReflect() protoreflect.Message
func (*GoDeps) SortByGoPath ¶ added in v0.0.10
func (x *GoDeps) SortByGoPath() *GoDepIterator
func (*GoDeps) SortByHash ¶ added in v0.0.10
func (x *GoDeps) SortByHash() *GoDepIterator
type GoDepsIterator ¶ added in v0.0.50
type GoDepsIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GoDepsIterator) Next ¶ added in v0.0.50
func (it *GoDepsIterator) Next() *GoDeps
Next() returns the next thing in the array
func (*GoDepsIterator) Scan ¶ added in v0.0.50
func (it *GoDepsIterator) Scan() bool
type GoInfo ¶ added in v0.0.34
type GoInfo struct { GoPath string `protobuf:"bytes,1,opt,name=goPath,proto3" json:"goPath,omitempty"` // the logical path as used by golang: 'go.wit.com/apps/helloworld' Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` // what is this repo? GoLibrary bool `protobuf:"varint,3,opt,name=goLibrary,proto3" json:"goLibrary,omitempty"` // is this a golang library? GoBinary bool `protobuf:"varint,4,opt,name=goBinary,proto3" json:"goBinary,omitempty"` // is this a golang binary? GoPrimitive bool `protobuf:"varint,5,opt,name=goPrimitive,proto3" json:"goPrimitive,omitempty"` // if this is a golang primitive (only has go.mod) GoPlugin bool `protobuf:"varint,6,opt,name=goPlugin,proto3" json:"goPlugin,omitempty"` // is this a golang plugin? GoProtobuf bool `protobuf:"varint,7,opt,name=goProtobuf,proto3" json:"goProtobuf,omitempty"` // autogen go files from .proto GoDeps *GoDeps `protobuf:"bytes,8,opt,name=goDeps,proto3" json:"goDeps,omitempty"` // what is in the go.sum file Published *GoDeps `protobuf:"bytes,9,opt,name=published,proto3" json:"published,omitempty"` // the last published go.mod/go.sum GoMod []byte `protobuf:"bytes,10,opt,name=goMod,proto3" json:"goMod,omitempty"` // the last go.mod file GoSum []byte `protobuf:"bytes,11,opt,name=goSum,proto3" json:"goSum,omitempty"` // the last go.sum file GitIgnoresGoSum bool `protobuf:"varint,12,opt,name=gitIgnoresGoSum,proto3" json:"gitIgnoresGoSum,omitempty"` // does .gitignore ignore go.mod & go.sum? // contains filtered or unexported fields }
this is probably better. think about moving to this instead
func (*GoInfo) Descriptor
deprecated
added in
v0.0.34
func (*GoInfo) GetGitIgnoresGoSum ¶ added in v0.0.34
func (*GoInfo) GetGoBinary ¶ added in v0.0.34
func (*GoInfo) GetGoLibrary ¶ added in v0.0.34
func (*GoInfo) GetGoPlugin ¶ added in v0.0.34
func (*GoInfo) GetGoPrimitive ¶ added in v0.0.34
func (*GoInfo) GetGoProtobuf ¶ added in v0.0.34
func (*GoInfo) GetPublished ¶ added in v0.0.34
func (*GoInfo) ProtoMessage ¶ added in v0.0.34
func (*GoInfo) ProtoMessage()
func (*GoInfo) ProtoReflect ¶ added in v0.0.34
func (x *GoInfo) ProtoReflect() protoreflect.Message
type GoInfoIterator ¶ added in v0.0.50
type GoInfoIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*GoInfoIterator) Next ¶ added in v0.0.50
func (it *GoInfoIterator) Next() *GoInfo
Next() returns the next thing in the array
func (*GoInfoIterator) Scan ¶ added in v0.0.50
func (it *GoInfoIterator) Scan() bool
type Repo ¶ added in v0.0.10
type Repo struct { FullPath string `protobuf:"bytes,1,opt,name=fullPath,proto3" json:"fullPath,omitempty"` // `autogenpb:unique` `autogenpb:sort` // the actual path to the .git directory: '/home/devel/golang.org/x/tools' MasterBranchName string `protobuf:"bytes,3,opt,name=masterBranchName,proto3" json:"masterBranchName,omitempty"` // git 'main' or 'master' branch name DevelBranchName string `protobuf:"bytes,4,opt,name=develBranchName,proto3" json:"develBranchName,omitempty"` // whatever the git 'devel' branch name is UserBranchName string `protobuf:"bytes,5,opt,name=userBranchName,proto3" json:"userBranchName,omitempty"` // whatever your username branch is Dirty bool `protobuf:"varint,6,opt,name=dirty,proto3" json:"dirty,omitempty"` // if git says things have been changed URL string `protobuf:"bytes,7,opt,name=URL,proto3" json:"URL,omitempty"` // the URL Tags *GitTags `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"` // known tags Times *GitTimes `protobuf:"bytes,9,opt,name=times,proto3" json:"times,omitempty"` // store all the mtime values here. these are temporary GoInfo *GoInfo `protobuf:"bytes,10,opt,name=goInfo,proto3" json:"goInfo,omitempty"` // put all the go specifcs here GoDeps *GoDeps `protobuf:"bytes,11,opt,name=goDeps,proto3" json:"goDeps,omitempty"` // what is in the go.sum file CurrentBranchName string `protobuf:"bytes,12,opt,name=currentBranchName,proto3" json:"currentBranchName,omitempty"` // the branch currently checked out CurrentBranchVersion string `protobuf:"bytes,13,opt,name=currentBranchVersion,proto3" json:"currentBranchVersion,omitempty"` // the branch currently checked out LastTag string `protobuf:"bytes,14,opt,name=lastTag,proto3" json:"lastTag,omitempty"` // the oldest tag TargetVersion string `protobuf:"bytes,15,opt,name=targetVersion,proto3" json:"targetVersion,omitempty"` // useful during the package release process ReadOnly bool `protobuf:"varint,16,opt,name=readOnly,proto3" json:"readOnly,omitempty"` // tracks access to 'git push' Desc string `protobuf:"bytes,17,opt,name=desc,proto3" json:"desc,omitempty"` // what is this repo? StateChange string `protobuf:"bytes,18,opt,name=stateChange,proto3" json:"stateChange,omitempty"` // used for debugging tool logic MasterVersion string `protobuf:"bytes,19,opt,name=masterVersion,proto3" json:"masterVersion,omitempty"` // just store this for now DevelVersion string `protobuf:"bytes,20,opt,name=develVersion,proto3" json:"develVersion,omitempty"` // UserVersion string `protobuf:"bytes,21,opt,name=userVersion,proto3" json:"userVersion,omitempty"` // DirtyList []string `protobuf:"bytes,22,rep,name=dirtyList,proto3" json:"dirtyList,omitempty"` // store the list from git status --porcelain State string `protobuf:"bytes,23,opt,name=state,proto3" json:"state,omitempty"` // status or state. useful for building tooling CurrentTag *GitTag `protobuf:"bytes,24,opt,name=currentTag,proto3" json:"currentTag,omitempty"` // used to examine repo branches GitConfig *GitConfig `protobuf:"bytes,25,opt,name=gitConfig,proto3" json:"gitConfig,omitempty"` // protobuf of the current .git/config // contains filtered or unexported fields }
func (*Repo) AppendGoDep ¶ added in v0.0.10
enforces no duplicate package names
func (*Repo) AutogenRestore ¶ added in v0.0.28
restores files from git metadata (notes)
func (*Repo) AutogenSave ¶ added in v0.0.28
files : a list of files to save ["go.mod", "go.sum"] refname : could be "master" or "v0.1.5" or "a605119c2cc41" del : true means empty out existing notes, otherwise append
func (*Repo) BranchAge ¶ added in v0.0.62
not really accurate. temprorary until git Config() parsing is better
func (*Repo) BranchExists ¶ added in v0.0.20
func (*Repo) CheckBranches ¶ added in v0.0.45
actually, this is to attempt to verify absolutely everything is pushed upstream before doing a rm -rf ~/go/src TODO: revisit this code in the autotypist later
func (*Repo) CheckDirty ¶ added in v0.0.11
actually os.Exec('git')
func (*Repo) CheckoutDevel ¶ added in v0.0.20
func (*Repo) CheckoutMaster ¶ added in v0.0.20
func (*Repo) CheckoutUser ¶ added in v0.0.20
func (*Repo) ConstructGitDiffLog ¶ added in v0.0.55
only safe to run len() on STDOUT DO NOT TRY TO PARSE THIS EXCEPT HASH AS FIRST VALUE Intended to be human readable
func (*Repo) DebianCurrentVersion ¶ added in v0.0.11
func (*Repo) DebianReleaseVersion ¶ added in v0.0.11
func (*Repo) DeleteGoDepByHash ¶ added in v0.0.10
func (*Repo) Descriptor
deprecated
added in
v0.0.10
func (*Repo) DidRepoChange ¶ added in v0.0.34
func (*Repo) ExamineBranches ¶ added in v0.0.54
func (*Repo) FindGoDepByPath ¶ added in v0.0.10
find a dependancy by the go path
func (*Repo) FormatTEXT ¶ added in v0.0.10
apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!
func (*Repo) GetBranches ¶ added in v0.0.45
func (*Repo) GetCurrentBranchName ¶ added in v0.0.11
func (*Repo) GetCurrentBranchVersion ¶ added in v0.0.11
func (*Repo) GetCurrentTag ¶ added in v0.0.54
func (*Repo) GetCurrentVersion ¶ added in v0.0.33
this is used often. probably move everything to this returns things like v0.2.2 v0.22.39-1-g2141737 v0.23-dirty mystuff
func (*Repo) GetDevelBranchName ¶ added in v0.0.10
func (*Repo) GetDevelVersion ¶ added in v0.0.14
func (*Repo) GetDirtyList ¶ added in v0.0.45
func (*Repo) GetFullPath ¶ added in v0.0.10
func (*Repo) GetGitConfig ¶ added in v0.0.57
func (*Repo) GetGoPrimitive ¶ added in v0.0.10
func (*Repo) GetLastTag ¶ added in v0.0.10
func (*Repo) GetLastTagVersion ¶ added in v0.0.11
this should get the most recent tag
func (*Repo) GetMasterBranchName ¶ added in v0.0.10
func (*Repo) GetMasterPatches ¶ added in v0.0.20
func (*Repo) GetMasterVersion ¶ added in v0.0.14
func (*Repo) GetPatches ¶ added in v0.0.20
func (*Repo) GetProtoFiles ¶ added in v0.0.17
func (*Repo) GetReadOnly ¶ added in v0.0.20
func (*Repo) GetRepoType ¶ added in v0.0.34
TODO: this needs to be redone in a smarter way to identify which repos have things to build in them
func (*Repo) GetStateChange ¶ added in v0.0.34
func (*Repo) GetTargetVersion ¶ added in v0.0.19
func (*Repo) GetUserBranchName ¶ added in v0.0.10
func (*Repo) GetUserPatches ¶ added in v0.0.20
func (*Repo) GetUserVersion ¶ added in v0.0.14
func (*Repo) GitChanged ¶ added in v0.0.32
func (*Repo) GitPullAge ¶ added in v0.0.32
func (*Repo) GitPullRealtime ¶ added in v0.0.34
func (*Repo) IncrementTargetMinor ¶ added in v0.0.28
func (repo *Repo) IncrementTargetMinor()
changes the target minor. v0.1.3 becomes v0.2.0
func (*Repo) IncrementTargetRevision ¶ added in v0.0.28
changes the target revision. v0.1.3 becomes v0.1.4
func (*Repo) IsBranch ¶ added in v0.0.10
find a branch name will find "master" or "devel" will also find "v0.1.1" or will find "patches-from-foo" will return *any* match on any git branch because it doesn't matter much here yet eventually this will be worked out by forge in some future code that hasn't been made yet
func (*Repo) IsDevelBranch ¶ added in v0.0.45
func (*Repo) IsDirectory ¶ added in v0.0.12
func (*Repo) IsGitDirectory ¶ added in v0.0.28
func (*Repo) IsLocalBranch ¶ added in v0.0.28
todo: redo this and above. both are messed up. ignore for now until things are stable
func (*Repo) IsMasterBranch ¶ added in v0.0.43
func (*Repo) IsOnlyLocalTag ¶ added in v0.0.20
returns true if 'taggy' is _ONLY_ a local tag this means you can not do a git pull or git push on it
func (*Repo) IsProtobuf ¶ added in v0.0.10
This returns the list of autogenerated protobuf files it assumes any file *.pb.go is autogenerated
this are made from protoc / proto-gen-go these packages also use go.wit.com/apps/autogenpb
errors() if a .proto file does not have an autogenerated .pb.go file
func (*Repo) IsUserBranch ¶ added in v0.0.43
func (*Repo) IsValidDir ¶ added in v0.0.34
func (*Repo) LocalTagExists ¶ added in v0.0.26
this should just do is.Exists(".git/refs/heads/findname")
func (*Repo) MarshalJSON ¶ added in v0.0.10
marshal json
func (*Repo) MergeDevelToMaster ¶ added in v0.0.44
func (*Repo) MergeUserToDevel ¶ added in v0.0.44
func (*Repo) NewestAge ¶ added in v0.0.29
biased code that gives out newer tag dates even if the code hasn't been patched
func (*Repo) NewestAgeVerbose ¶ added in v0.0.52
func (*Repo) NoteChange ¶ added in v0.0.11
func (*Repo) ParseGoSum ¶ added in v0.0.18
reads and parses the go.sum file does not change anything
func (*Repo) ProtoMessage ¶ added in v0.0.10
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶ added in v0.0.10
func (x *Repo) ProtoReflect() protoreflect.Message
func (*Repo) ReloadCheck ¶ added in v0.0.59
does a fast check with os.Stat() if the mtimes changed, does a full repo.Reload()
func (*Repo) RepoIgnoresGoMod ¶ added in v0.0.30
is it a good idea to run go-mod-clean in this repo? for now, check if this repo should be ignored TODO: go.mod and go.sum should be moved to git tag metadata
func (*Repo) RevertMasterToDevel ¶ added in v0.0.34
reverts master to devel used in the unwind process of making GUI releases
func (*Repo) Run ¶ added in v0.0.10
execute something with the working directory set to the FullPath
func (*Repo) RunRealtimeVerbose ¶ added in v0.0.45
func (*Repo) RunStrictAll ¶ added in v0.0.44
func (*Repo) RunStrictNew ¶ added in v0.0.44
func (*Repo) RunVerbose ¶ added in v0.0.55
func (*Repo) RunVerboseOnError ¶ added in v0.0.55
func (*Repo) SetDevelBranchName ¶ added in v0.0.10
func (*Repo) SetGoPrimitive ¶ added in v0.0.34
func (*Repo) SetMasterBranchName ¶ added in v0.0.10
func (*Repo) SetReadOnly ¶ added in v0.0.20
func (*Repo) SetTargetVersion ¶ added in v0.0.19
func (*Repo) SetUserBranchName ¶ added in v0.0.10
func (*Repo) UnmarshalJSON ¶ added in v0.0.10
unmarshal json
func (*Repo) UnmarshalTEXT ¶ added in v0.0.10
unmarshalTEXT. This reads the .text config file back in after the user edits it
func (*Repo) ValidGoSum ¶ added in v0.0.28
checks to see if the go.sum and go.mod files exist also check for a match with the repo.pb GoPrimitive bool todo: check mtime
type RepoFullPath ¶ added in v0.0.33
type RepoFullPath []*Repo
sort struct by FullPath
func (RepoFullPath) Len ¶ added in v0.0.33
func (a RepoFullPath) Len() int
func (RepoFullPath) Less ¶ added in v0.0.33
func (a RepoFullPath) Less(i, j int) bool
func (RepoFullPath) Swap ¶ added in v0.0.33
func (a RepoFullPath) Swap(i, j int)
type RepoIterator ¶ added in v0.0.10
type RepoIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*RepoIterator) Next ¶ added in v0.0.10
func (it *RepoIterator) Next() *Repo
Next() returns the next thing in the array
func (*RepoIterator) Scan ¶ added in v0.0.10
func (it *RepoIterator) Scan() bool
type Repos ¶ added in v0.0.10
type Repos struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:8daaeba1-fb1f-4762-ae6e-95a55d352673` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v3` Repos []*Repo `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"` // `autogenpb:append` // generate AppendUnique() function for this // contains filtered or unexported fields }
func (*Repos) All ¶ added in v0.0.10
func (x *Repos) All() *RepoIterator
func (*Repos) Append ¶ added in v0.0.10
just a simple Append() shortcut (but still uses the mutex lock)
func (*Repos) AppendByFullPath ¶ added in v0.0.50
func (*Repos) AppendByGoPath ¶ added in v0.0.50
enforces GoPath is unique
func (*Repos) ConfigLoad ¶ added in v0.0.12
load the repos.pb file. I shouldn't really matter if this fails. the file should be autogenerated. This is used locally just for speed
func (*Repos) ConfigSave ¶ added in v0.0.12
write to ~/.config/forge/ unless ENV{FORGE_GOSRC} is set
func (*Repos) DeleteByFullPath ¶ added in v0.0.33
func (*Repos) Descriptor
deprecated
added in
v0.0.10
func (*Repos) FindByFullPath ¶ added in v0.0.33
lookup a Repos by the FullPath
func (*Repos) FormatTEXT ¶ added in v0.0.10
apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!
func (*Repos) GetVersion ¶ added in v0.0.10
func (*Repos) MakePatchset ¶ added in v0.0.20
func (*Repos) MarshalJSON ¶ added in v0.0.10
marshal json
func (*Repos) NewGoRepo ¶ added in v0.0.34
scans in a new git repo. If it detects the repo is a golang project, then it parses the go.mod/go.sum files TODO: try adding python, rails, perl, rust, other language things? I probably will never have time to try that, but I'd take patches for anyone that might see this note and feel so inclined. todo: use Repos.Lock() ?
func (*Repos) ProtoMessage ¶ added in v0.0.10
func (*Repos) ProtoMessage()
func (*Repos) ProtoReflect ¶ added in v0.0.10
func (x *Repos) ProtoReflect() protoreflect.Message
func (*Repos) RillGitPull ¶ added in v0.0.24
rill is awesome. long live rill attempt scan with rill
func (*Repos) SortByFullPath ¶ added in v0.0.33
func (x *Repos) SortByFullPath() *RepoIterator
func (*Repos) UnmarshalJSON ¶ added in v0.0.10
unmarshal json
func (*Repos) UnmarshalTEXT ¶ added in v0.0.10
unmarshalTEXT. This reads the .text config file back in after the user edits it
type ReposIterator ¶ added in v0.0.50
type ReposIterator struct { sync.RWMutex // this isn't getting used properly yet? // contains filtered or unexported fields }
func (*ReposIterator) Next ¶ added in v0.0.50
func (it *ReposIterator) Next() *Repos
Next() returns the next thing in the array
func (*ReposIterator) Scan ¶ added in v0.0.50
func (it *ReposIterator) Scan() bool
Source Files ¶
- age.go
- autogen.go
- checkout.go
- common.go
- config.go
- currentVersions.go
- gitTag.byAge.go
- gitTag.common.go
- gitTag.marshal.pb.go
- gitTag.pb.go
- gitTag.sort.pb.go
- goDep.helpers.go
- goDep.marshal.pb.go
- goDep.parseGoSum.go
- goDep.pb.go
- goDep.redoGoMod.go
- goDep.sort.pb.go
- isPrimitive.go
- log.go
- makePatches.go
- reload.go
- reloadBranches.go
- reloadCheckDirty.go
- reloadGitConfig.go
- reloadIsTracked.go
- reloadMtime.go
- reloadRepoState.go
- reloadRepoType.go
- reloadTags.go
- repo.marshal.pb.go
- repo.merge.go
- repo.new.go
- repo.pb.go
- repo.protofiles.go
- repo.sort.pb.go
- revert.go
- rill.go
- shell.go