Documentation
¶
Index ¶
- Variables
- func CompareVers(atok *Vers, btok *Vers) int
- func FindPatchIdFromGitAm(gitam []byte) (string, string, error)
- func FindPatchIdFromGitAmBroken(gitAmData []byte) string
- func IsGoTagPublished(oldtag string, newtag string) bool
- func IsGoTagVersionGreater(oldtag string, newtag string) bool
- func ListFiles(directory string) []string
- func NewerVersion(newver string, curver string) (bool, error)
- func ParseGitURL(rawURL string) (*url.URL, error)
- type GitBranch
- func (*GitBranch) Descriptor() ([]byte, []int)deprecated
- func (x *GitBranch) GetMerge() string
- func (x *GitBranch) GetName() string
- func (x *GitBranch) GetRemote() string
- func (x *GitBranch) GetStat() *Stat
- func (*GitBranch) ProtoMessage()
- func (x *GitBranch) ProtoReflect() protoreflect.Message
- func (x *GitBranch) Reset()
- func (x *GitBranch) String() string
- type GitBranchScanner
- type GitConfig
- func (*GitConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GitConfig) GetBranches() []*GitBranch
- func (x *GitConfig) GetCore() map[string]string
- func (x *GitConfig) GetRemotes() []*GitRemote
- func (x *GitConfig) GetSubmodules() map[string]string
- func (*GitConfig) ProtoMessage()
- func (x *GitConfig) ProtoReflect() protoreflect.Message
- func (x *GitConfig) Reset()
- func (x *GitConfig) String() string
- type GitConfigScanner
- type GitConfigs
- func (x *GitConfigs) All() *GitConfigScanner
- func (x *GitConfigs) Append(y *GitConfig)
- func (x *GitConfigs) Clone(y *GitConfig) *GitConfig
- func (x *GitConfigs) Delete(y *GitConfig) bool
- func (*GitConfigs) Descriptor() ([]byte, []int)deprecated
- func (v *GitConfigs) FormatJSON() string
- func (v *GitConfigs) FormatTEXT() string
- func (x *GitConfigs) GetGitConfigs() []*GitConfig
- func (x *GitConfigs) GetUuid() string
- func (x *GitConfigs) GetVersion() string
- func (x *GitConfigs) IterAll() iter.Seq[*GitConfig]
- func (x *GitConfigs) Len() int
- func (v *GitConfigs) Marshal() ([]byte, error)
- func (v *GitConfigs) MarshalJSON() ([]byte, error)
- func (*GitConfigs) ProtoMessage()
- func (x *GitConfigs) ProtoReflect() protoreflect.Message
- func (x *GitConfigs) Reset()
- func (x *GitConfigs) String() string
- func (v *GitConfigs) Unmarshal(data []byte) error
- func (v *GitConfigs) UnmarshalJSON(data []byte) error
- func (v *GitConfigs) UnmarshalTEXT(data []byte) error
- type GitConfigsScanner
- type GitRef
- func (*GitRef) Descriptor() ([]byte, []int)deprecated
- func (x *GitRef) GetName() string
- func (x *GitRef) GetRemote() string
- func (x *GitRef) GetSubject() string
- func (x *GitRef) GetType() GitRef_RefType
- func (*GitRef) ProtoMessage()
- func (x *GitRef) ProtoReflect() protoreflect.Message
- func (x *GitRef) Reset()
- func (x *GitRef) String() string
- type GitRefScanner
- type GitRef_RefType
- func (GitRef_RefType) Descriptor() protoreflect.EnumDescriptor
- func (x GitRef_RefType) Enum() *GitRef_RefType
- func (GitRef_RefType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GitRef_RefType) Number() protoreflect.EnumNumber
- func (x GitRef_RefType) String() string
- func (GitRef_RefType) Type() protoreflect.EnumType
- type GitRemote
- func (*GitRemote) Descriptor() ([]byte, []int)deprecated
- func (x *GitRemote) GetFetch() string
- func (x *GitRemote) GetName() string
- func (x *GitRemote) GetUrl() string
- func (*GitRemote) ProtoMessage()
- func (x *GitRemote) ProtoReflect() protoreflect.Message
- func (x *GitRemote) Reset()
- func (x *GitRemote) String() string
- type GitRemoteScanner
- 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 GitTimesScanner
- 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 GoDepScanner
- type GoDeps
- func (x *GoDeps) All() *GoDepScanner
- func (x *GoDeps) Append(y *GoDep)
- func (x *GoDeps) AppendByGoPath(y *GoDep) bool
- func (x *GoDeps) AppendByHash(y *GoDep) bool
- func (x *GoDeps) Clone(y *GoDep) *GoDep
- func (x *GoDeps) CloneByGoPath(y *GoDep) bool
- func (x *GoDeps) CloneByHash(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) InsertByGoPath(y string) *GoDep
- func (x *GoDeps) InsertByHash(y string) *GoDep
- func (x *GoDeps) IterAll() iter.Seq[*GoDep]
- func (x *GoDeps) IterByGoPath() iter.Seq[*GoDep]
- func (x *GoDeps) IterByHash() iter.Seq[*GoDep]
- func (x *GoDeps) Len() int
- func (*GoDeps) ProtoMessage()
- func (x *GoDeps) ProtoReflect() protoreflect.Message
- func (x *GoDeps) Reset()
- func (x *GoDeps) SortByGoPath() *GoDepScanner
- func (x *GoDeps) SortByHash() *GoDepScanner
- func (pb *GoDeps) SortGoPath()
- func (pb *GoDeps) SortHash()
- func (x *GoDeps) String() string
- type GoDepsScanner
- 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 GoInfoScanner
- type LinesScanner
- type Repo
- func (repo *Repo) ActualDevelHash() string
- func (repo *Repo) ActualGetDevelHash() string
- func (repo *Repo) ActualGetMasterHash() (string, string)
- func (repo *Repo) ActualGetUserHash() string
- 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() string
- func (repo *Repo) CheckDirty() bool
- func (repo *Repo) CheckDirtyVerbose() (string, error)
- func (repo *Repo) CheckoutDevel() bool
- func (repo *Repo) CheckoutDevelError() error
- func (r *Repo) CheckoutForce() error
- func (repo *Repo) CheckoutMaster() bool
- func (repo *Repo) CheckoutMasterError() error
- func (repo *Repo) CheckoutUser() error
- func (r *Repo) CompareHashes(keepHash string, deleteHash string) ([]string, []string, []string, []string, error)
- func (repo *Repo) ConstructGitDiffLog(branch1, branch2 string) []string
- func (repo *Repo) CountDiffObjects(branch1, branch2 string) (int, error)
- func (repo *Repo) CountDiffObjectsNEWNEW(branch1, branch2 string) ([]string, []string, error)
- func (repo *Repo) CountDiffObjectsVerbose(branch1, branch2 string) ([]string, error)
- func (repo *Repo) DebianCurrentVersion(buildnum int) string
- func (repo *Repo) DebianReleaseVersion() string
- func (repo *Repo) DeleteGoDepByHash(hash string)
- func (repo *Repo) DeleteLocalBranch(branch string) ([]string, error)
- func (repo *Repo) DeleteLocalDevelBranch() error
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (repo *Repo) DidRepoChange() error
- func (repo *Repo) DidRepoChangeDir() error
- func (repo *Repo) ExamineBranches() *Stat
- func (repo *Repo) Exists(filename string) bool
- func (repo *Repo) ExistsUserBranchRemote() bool
- func (repo *Repo) FindGoDepByPath(gopath string) *GoDep
- func (repo *Repo) FindLastTag() string
- func (repo *Repo) FindPatchIdByHash(hash string) (string, error)
- func (repo *Repo) FindPatchIdFromGitAm(gitam []byte) (string, string, error)
- func (v *Repo) FormatJSON() string
- func (v *Repo) FormatTEXT() string
- func (repo *Repo) GetBranchDifferences(to string, from string) []string
- func (repo *Repo) GetBranches() []string
- func (x *Repo) GetConfig() *GitConfig
- func (x *Repo) GetCurrentBranchName() string
- func (x *Repo) GetCurrentBranchVersion() string
- func (repo *Repo) GetCurrentVersion() string
- func (x *Repo) GetDesc() string
- func (x *Repo) GetDevelBranchName() string
- func (x *Repo) GetDevelStat() *Stat
- func (x *Repo) GetDevelVersion() string
- func (x *Repo) GetDirty() bool
- func (x *Repo) GetDirtyList() []string
- func (x *Repo) GetFullPath() string
- func (x *Repo) GetGoInfo() *GoInfo
- func (repo *Repo) GetGoPath() string
- func (repo *Repo) GetGoPrimitive() bool
- func (repo *Repo) GetHashName(h string) (string, error)
- func (x *Repo) GetLastTag() string
- func (repo *Repo) GetLastTagVersion() string
- func (repo *Repo) GetLocalBranches() []string
- func (r *Repo) GetLocalDevelRef() *Stat
- func (repo *Repo) GetLocalHash(brname string) string
- func (r *Repo) GetLocalMasterRef() *Stat
- func (r *Repo) GetLocalUserRef() *Stat
- func (x *Repo) GetMasterBranchName() string
- func (x *Repo) GetMasterStat() *Stat
- func (x *Repo) GetMasterVersion() string
- func (x *Repo) GetNamespace() string
- func (repo *Repo) GetProtoFiles() ([]string, error)
- func (x *Repo) GetReadOnly() bool
- func (repo *Repo) GetRemoteBranches() []string
- func (repo *Repo) GetRemoteHash(brname string) string
- func (repo *Repo) GetRemoteTag(brname string) *Stat
- func (repo *Repo) GetRepoType() string
- func (repo *Repo) GetSmartVersion() string
- func (x *Repo) GetState() string
- func (x *Repo) GetStateChange() string
- func (repo *Repo) GetTagHash(t string) string
- func (x *Repo) GetTags() *Stats
- func (x *Repo) GetTargetVersion() string
- func (x *Repo) GetTimes() *GitTimes
- func (x *Repo) GetURL() string
- func (x *Repo) GetUserBranchName() string
- func (x *Repo) GetUserStat() *Stat
- func (x *Repo) GetUserVersion() string
- func (x *Repo) GetUuid() string
- func (repo *Repo) GitChanged() bool
- func (repo *Repo) GitCommit() error
- func (repo *Repo) GitDeleteOthers() ([]string, error)
- func (repo *Repo) GitPull() (*cmd.Status, error)
- func (repo *Repo) GitPullAge() time.Duration
- func (repo *Repo) GoDepsLen() int
- func (repo *Repo) GoSumAge() (time.Duration, error)
- func (repo *Repo) GoSumFromPkgDir() (*GoDeps, error)
- func (repo *Repo) GoSumFromRepo() (*GoDeps, error)
- func (repo *Repo) HasChanged() error
- func (repo *Repo) IfRefExists(refname string) *Stat
- func (repo *Repo) IncrementTargetMinor()
- func (repo *Repo) IncrementTargetRevision()
- func (r *Repo) IsBinary() bool
- func (repo *Repo) IsBranch(findname string) bool
- func (repo *Repo) IsBranchLocal(findname string) *Stat
- func (repo *Repo) IsBranchRemote(brname string) bool
- func (repo *Repo) IsDevelBranch() bool
- func (repo *Repo) IsDevelRemote() bool
- func (repo *Repo) IsDirectory() bool
- func (repo *Repo) IsDirty() bool
- func (repo *Repo) IsGitDirectory() bool
- func (r *Repo) IsGoPlugin() bool
- func (repo *Repo) IsLocalBranch(findname string) bool
- func (repo *Repo) IsLocalBranchVerbose(findname string) bool
- func (repo *Repo) IsMasterBranch() bool
- func (repo *Repo) IsProtobuf() bool
- func (repo *Repo) IsRemoteBranch(findname string) bool
- func (repo *Repo) IsUserBranch() bool
- func (repo *Repo) IsValidDir() bool
- func (repo *Repo) LastGitPull() (time.Time, error)
- func (r *Repo) LoadRefs() (*Stats, error)
- func (r *Repo) LoadRemote(remoteName string) (*Stats, error)
- func (r *Repo) LoadRemoteRefs(remoteName string) (*Stats, error)
- func (r *Repo) LoadStats(remote string) (*Stats, error)
- func (repo *Repo) MakeLocalDevelBranch() (*cmd.Status, error)
- func (r *Repo) MakeRemote(remoteName string) (*Stats, error)
- func (r *Repo) MakeRemoteRefs(remoteName string) (*Stats, error)
- func (v *Repo) Marshal() ([]byte, error)
- func (v *Repo) MarshalJSON() ([]byte, error)
- func (r *Repo) MergeToDevel() (*cmd.Status, error)
- func (r *Repo) MergeToMaster() (*cmd.Status, error)
- func (repo *Repo) Mtime(fname string) *time.Time
- func (r *Repo) NewCompareRef(t *Stat) *RepoTag
- func (r *Repo) NewCompareTag(refname string) *RepoTag
- func (repo *Repo) NewestAge() time.Duration
- func (repo *Repo) NewestAgeVerbose() time.Duration
- func (repo *Repo) NewestTag() *Stat
- func (repo *Repo) NewestTime() time.Time
- 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) ReloadCheck() error
- func (repo *Repo) ReloadForce() 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) RunPipe(cmd1 []string, cmd2 []string) cmd.Status
- func (repo *Repo) RunQuiet(cmd []string) (*cmd.Status, error)
- func (repo *Repo) RunRealtime(cmd []string) cmd.Status
- func (repo *Repo) RunRealtimeVerbose(cmd []string) cmd.Status
- func (repo *Repo) RunStrict(cmd []string) (*cmd.Status, error)
- func (repo *Repo) RunStrictAll(all [][]string) (*cmd.Status, error)
- func (repo *Repo) RunVerbose(cmd []string) error
- func (repo *Repo) RunVerboseOnError(cmd []string) (*cmd.Status, error)
- func (repo *Repo) RunVerboseWithError(cmd []string) (*cmd.Status, error)
- func (repo *Repo) SafeDelete(deleteHash string, keepHash string) error
- func (repo *Repo) ScanProtobuf() (bool, []string, 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) SmartSetState(newstate string) bool
- func (r *Repo) Stats() *Stats
- 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 (r *Repo) UpdateRefs(stats *Stats) error
- func (r *Repo) UpdateRemote(remoteName string) error
- func (r *Repo) UpdateRemoteRefs(remoteName string) error
- func (repo *Repo) ValidGoSum() error
- func (repo *Repo) ValidateUTF8() error
- func (repo *Repo) VerifyRemoteAndLocalBranches(bname string) bool
- type RepoFunc
- type RepoScanner
- type RepoTag
- type Repos
- func (pb *Repos) ActualSort()
- func (x *Repos) All() *RepoScanner
- func (x *Repos) Append(y *Repo)
- func (x *Repos) AppendByFullPath(y *Repo) bool
- func (x *Repos) AppendByNamespace(y *Repo) bool
- func (x *Repos) AppendByUserVersion(y *Repo) bool
- func (x *Repos) AppendByUuid(y *Repo) bool
- func (pb *Repos) CacheLoad() error
- func (all *Repos) CheckPorcelain() (string, error)
- func (x *Repos) Clone(y *Repo) *Repo
- func (x *Repos) CloneByFullPath(y *Repo) bool
- func (x *Repos) CloneByNamespace(y *Repo) bool
- func (x *Repos) CloneByUserVersion(y *Repo) bool
- func (x *Repos) CloneByUuid(y *Repo) bool
- func (all *Repos) ConfigLoad(cfgname string) error
- func (all *Repos) ConfigSave(fname string) error
- func (x *Repos) Delete(y *Repo) bool
- func (x *Repos) DeleteByFullPath(s string) bool
- func (x *Repos) DeleteByNamespace(s string) bool
- func (x *Repos) DeleteByUserVersion(s string) bool
- func (x *Repos) DeleteByUuid(s string) bool
- func (*Repos) Descriptor() ([]byte, []int)deprecated
- func (x *Repos) FindByFullPath(s string) *Repo
- func (x *Repos) FindByNamespace(s string) *Repo
- func (x *Repos) FindByUserVersion(s string) *Repo
- func (x *Repos) FindByUuid(s string) *Repo
- func (v *Repos) FormatJSON() string
- func (v *Repos) FormatTEXT() string
- func (x *Repos) GetFilename() string
- func (x *Repos) GetFullScan() *timestamppb.Timestamp
- func (x *Repos) GetHasFullScan() bool
- func (x *Repos) GetRepos() []*Repo
- func (x *Repos) GetUuid() string
- func (x *Repos) GetVersion() string
- func (p *Repos) HttpPost(baseURL string, route string) (*Repos, *httppb.HttpRequest, error)
- func (x *Repos) InsertByFullPath(y string) *Repo
- func (x *Repos) InsertByNamespace(y string) *Repo
- func (x *Repos) InsertByUserVersion(y string) *Repo
- func (x *Repos) InsertByUuid(y string) *Repo
- func (x *Repos) IterAll() iter.Seq[*Repo]
- func (x *Repos) IterByFullPath() iter.Seq[*Repo]
- func (x *Repos) IterByNamespace() iter.Seq[*Repo]
- func (x *Repos) IterByUserVersion() iter.Seq[*Repo]
- func (x *Repos) IterByUuid() iter.Seq[*Repo]
- func (x *Repos) Len() int
- func (pb *Repos) Load() error
- func (pb *Repos) MakeDefaultTB() *ReposTable
- func (pb *Repos) MakeForgedTable() *ReposTable
- func (pb *Repos) MakeGowebdTable(name string) *ReposTable
- func (pb *Repos) MakePublishNewTB() *ReposTable
- func (pb *Repos) MakePublishTable() *ReposTable
- func (v *Repos) Marshal() ([]byte, error)
- func (v *Repos) MarshalJSON() ([]byte, error)
- func (all *Repos) NewGoRepo(fullpath string, gopath string) (*Repo, error)
- func (all *Repos) NewRepo(fullpath string, namespace string) (*Repo, error)
- func (x *Repos) NewTable(title string) *ReposTable
- func (pb *Repos) PrintDefaultTB() string
- func (pb *Repos) PrintForgedTable() string
- func (pb *Repos) PrintGowebdTable() string
- func (pb *Repos) PrintMissingTable()
- func (pb *Repos) PrintPublishNewTB() string
- func (pb *Repos) PrintPublishTable() string
- 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 (pb *Repos) Save() error
- func (pb *Repos) SaveSafe() error
- func (pb *Repos) SaveValidate(fname string) error
- func (pb *Repos) SaveVerbose() error
- func (all *Repos) ScanAllMtimesVerbose() (string, error)
- func (r *Repos) SendPB(w http.ResponseWriter) error
- func (p *Repos) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
- func (all *Repos) SmartSave() error
- func (x *Repos) SortActual() *Repos
- func (x *Repos) SortByAge() *RepoScanner
- func (x *Repos) SortByFullPath() *RepoScanner
- func (x *Repos) SortByNamespace() *RepoScanner
- func (x *Repos) SortByUserVersion() *RepoScanner
- func (x *Repos) SortByUuid() *RepoScanner
- func (pb *Repos) SortFullPath()
- func (pb *Repos) SortNamespace()
- func (pb *Repos) SortUserVersion()
- func (pb *Repos) SortUuid()
- func (x *Repos) String() string
- func (r *Repos) SubmitReposPB(url string) (*Repos, error)
- func (v *Repos) Unmarshal(data []byte) error
- func (v *Repos) UnmarshalJSON(data []byte) error
- func (v *Repos) UnmarshalTEXT(data []byte) error
- type ReposScanner
- type ReposTable
- func (t *ReposTable) AddButtonFunc(title string, f func(*Repo) string) *RepoFunc
- func (t *ReposTable) AddCurrentBranchName() *RepoFunc
- func (t *ReposTable) AddCurrentBranchVersion() *RepoFunc
- func (t *ReposTable) AddDesc() *RepoFunc
- func (t *ReposTable) AddDevelBranchName() *RepoFunc
- func (t *ReposTable) AddDevelVersion() *RepoFunc
- func (t *ReposTable) AddFullPath() *RepoFunc
- func (t *ReposTable) AddIntFunc(title string, f func(*Repo) int) *RepoFunc
- func (t *ReposTable) AddLastTag() *RepoFunc
- func (t *ReposTable) AddMasterBranchName() *RepoFunc
- func (t *ReposTable) AddMasterVersion() *RepoFunc
- func (t *ReposTable) AddNamespace() *RepoFunc
- func (t *ReposTable) AddState() *RepoFunc
- func (t *ReposTable) AddStateChange() *RepoFunc
- func (t *ReposTable) AddStringFunc(title string, f func(*Repo) string) *RepoFunc
- func (t *ReposTable) AddTargetVersion() *RepoFunc
- func (t *ReposTable) AddTimeFunc(title string, f func(*Repo) time.Time) *RepoFunc
- func (t *ReposTable) AddURL() *RepoFunc
- func (t *ReposTable) AddUserBranchName() *RepoFunc
- func (t *ReposTable) AddUserVersion() *RepoFunc
- func (t *ReposTable) AddUuid() *RepoFunc
- func (mt *ReposTable) Custom(f func(*Repo))
- func (mt *ReposTable) Delete()
- func (mt *ReposTable) GetUuid() string
- func (mt *ReposTable) MakeTable()
- func (mt *ReposTable) NewUuid()
- func (t *ReposTable) PrintTable()
- func (mt *ReposTable) SetParent(p *gui.Node)
- func (mt *ReposTable) ShowTable()
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)deprecated
- func (tag *Stat) GetAge() time.Duration
- func (x *Stat) GetAuthorTime() *timestamppb.Timestamp
- func (x *Stat) GetCommitTime() *timestamppb.Timestamp
- func (x *Stat) GetHash() string
- func (x *Stat) GetName() string
- func (x *Stat) GetPatchId() string
- func (x *Stat) GetRefs() []*GitRef
- func (x *Stat) GetRemote() string
- func (x *Stat) GetSanitizedSubject() string
- func (x *Stat) GetSubject() string
- func (x *Stat) GetTagHash() string
- func (x *Stat) GetTags() string
- func (x *Stat) GetTreeHash() string
- func (x *Stat) GetType() GitRef_RefType
- func (*Stat) ProtoMessage()
- func (x *Stat) ProtoReflect() protoreflect.Message
- func (x *Stat) Reset()
- func (x *Stat) String() string
- type StatAge
- type StatFunc
- type StatScanner
- type Stats
- func (x *Stats) All() *StatScanner
- func (x *Stats) Append(y *Stat)
- func (x *Stats) AppendByName(y *Stat) bool
- func (x *Stats) AppendByTagHash(y *Stat) bool
- func (x *Stats) Clone(y *Stat) *Stat
- func (x *Stats) CloneByName(y *Stat) bool
- func (x *Stats) CloneByTagHash(y *Stat) bool
- func (x *Stats) Delete(y *Stat) bool
- func (x *Stats) DeleteByName(s string) bool
- func (x *Stats) DeleteByTagHash(s string) bool
- func (*Stats) Descriptor() ([]byte, []int)deprecated
- func (x *Stats) FindByName(s string) *Stat
- func (x *Stats) FindByTagHash(s string) *Stat
- func (v *Stats) FormatJSON() string
- func (v *Stats) FormatTEXT() string
- func (all *Stats) GetAge(name string) time.Time
- func (x *Stats) GetFilename() string
- func (x *Stats) GetHead() string
- func (x *Stats) GetMtime() *timestamppb.Timestamp
- func (x *Stats) GetName() string
- func (x *Stats) GetStats() []*Stat
- func (x *Stats) GetUuid() string
- func (x *Stats) GetVersion() string
- func (p *Stats) HttpPost(baseURL string, route string) (*Stats, *httppb.HttpRequest, error)
- func (x *Stats) InsertByName(y string) *Stat
- func (x *Stats) InsertByTagHash(y string) *Stat
- func (x *Stats) IterAll() iter.Seq[*Stat]
- func (x *Stats) IterByHash() iter.Seq[*Stat]
- func (x *Stats) IterByName() iter.Seq[*Stat]
- func (x *Stats) IterByPatchId() iter.Seq[*Stat]
- func (x *Stats) IterBySanitizedSubject() iter.Seq[*Stat]
- func (x *Stats) IterByTagHash() iter.Seq[*Stat]
- func (x *Stats) IterByTreeHash() iter.Seq[*Stat]
- func (x *Stats) Len() int
- func (pb *Stats) Load() error
- func (pb *Stats) MakeTable(name string) *StatsTable
- func (v *Stats) Marshal() ([]byte, error)
- func (v *Stats) MarshalJSON() ([]byte, error)
- func (x *Stats) NewTable(title string) *StatsTable
- func (pb *Stats) PrintTable() string
- func (pb *Stats) PrintTableLimit(limit int) string
- func (*Stats) ProtoMessage()
- func (x *Stats) ProtoReflect() protoreflect.Message
- func (x *Stats) Reset()
- func (pb *Stats) Save() error
- func (x *Stats) SaveByHash() error
- func (pb *Stats) SaveVerbose() error
- func (p *Stats) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
- func (all *Stats) SortByAge() *StatScanner
- func (x *Stats) SortByHash() *StatScanner
- func (x *Stats) SortByName() *StatScanner
- func (x *Stats) SortByPatchId() *StatScanner
- func (x *Stats) SortBySanitizedSubject() *StatScanner
- func (x *Stats) SortByTagHash() *StatScanner
- func (x *Stats) SortByTreeHash() *StatScanner
- func (pb *Stats) SortCtime()
- func (pb *Stats) SortHash()
- func (pb *Stats) SortName()
- func (pb *Stats) SortPatchId()
- func (pb *Stats) SortSanitizedSubject()
- func (pb *Stats) SortTagHash()
- func (pb *Stats) SortTreeHash()
- func (pb *Stats) SortVersion() bool
- func (x *Stats) String() string
- func (v *Stats) Unmarshal(data []byte) error
- func (v *Stats) UnmarshalJSON(data []byte) error
- func (v *Stats) UnmarshalTEXT(data []byte) error
- type StatsScanner
- type StatsTable
- func (t *StatsTable) AddButtonFunc(title string, f func(*Stat) string) *StatFunc
- func (t *StatsTable) AddHash() *StatFunc
- func (t *StatsTable) AddIntFunc(title string, f func(*Stat) int) *StatFunc
- func (t *StatsTable) AddName() *StatFunc
- func (t *StatsTable) AddPatchId() *StatFunc
- func (t *StatsTable) AddRemote() *StatFunc
- func (t *StatsTable) AddSanitizedSubject() *StatFunc
- func (t *StatsTable) AddStringFunc(title string, f func(*Stat) string) *StatFunc
- func (t *StatsTable) AddSubject() *StatFunc
- func (t *StatsTable) AddTagHash() *StatFunc
- func (t *StatsTable) AddTags() *StatFunc
- func (t *StatsTable) AddTimeFunc(title string, f func(*Stat) time.Time) *StatFunc
- func (t *StatsTable) AddTreeHash() *StatFunc
- func (mt *StatsTable) Custom(f func(*Stat))
- func (mt *StatsTable) Delete()
- func (mt *StatsTable) GetUuid() string
- func (mt *StatsTable) MakeTable()
- func (mt *StatsTable) NewUuid()
- func (t *StatsTable) PrintTable()
- func (t *StatsTable) PrintTableLimit(limit int)
- func (mt *StatsTable) SetParent(p *gui.Node)
- func (mt *StatsTable) ShowTable()
- type Vers
Constants ¶
This section is empty.
Variables ¶
var ( GitRef_RefType_name = map[int32]string{ 0: "UNKNOWN", 1: "LOCAL", 2: "REMOTE", 3: "TAG", } GitRef_RefType_value = map[string]int32{ "UNKNOWN": 0, "LOCAL": 1, "REMOTE": 2, "TAG": 3, } )
Enum value maps for GitRef_RefType.
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_gitConfig_proto protoreflect.FileDescriptor
var File_goDep_proto protoreflect.FileDescriptor
var File_repo_proto protoreflect.FileDescriptor
var File_stat_proto protoreflect.FileDescriptor
var INFO *log.LogFlag
var NOW *log.LogFlag
var WARN *log.LogFlag
Functions ¶
func CompareVers ¶ added in v0.0.180
func FindPatchIdFromGitAm ¶ added in v0.0.152
func FindPatchIdFromGitAmBroken ¶ added in v0.0.152
computes the stable git patch-id from the output of git-am doesn't work. it needs to add the SHA-1 parts together cat WTF.2.diff | git patch-id --stable go.wit.com/apps/utils/forged git show 5b277e7686974d2195586d5f5b82838ee9ddb036 |git patch-id --stable bf86be06af03b1a89ee155b214358362ec76f7b6 5b277e7686974d2195586d5f5b82838ee9ddb036 73d73e12dcd727721253140ea68441dd0b824f8c 0000000000000000000000000000000000000000 515792a0c4965b69f6b9e7f89e2f896148b03c97 0000000000000000000000000000000000000000 1dd8b4a7d7d42a78fd1ff84dcc2ac87bc7318ee6 0000000000000000000000000000000000000000 8478bad3e1f97818a68a014a8f30f1b2951b026b 0000000000000000000000000000000000000000
func IsGoTagPublished ¶ added in v0.0.66
returns true for "v0.2.4" and false for "v0.2.43-asdfj" actually returns false for anything not perfectly versioned
func IsGoTagVersionGreater ¶ added in v0.0.66
returns true if old="v0.2.4" and new="v0.3.3" returns true if equal todo: make all of this smarter someday
func ListFiles ¶ added in v0.0.45
goes in one directory so it gets remote branch names old code. todo: modernize it
func NewerVersion ¶ added in v0.0.180
compares newver(0.25.101-1+b10) curver(0.25.101-5+b1) returns true only if it's newer. returns false if equal used for .deb mirrors
Types ¶
type GitBranch ¶ added in v0.0.57
type GitBranch struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the branch name from the config file
Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` // the name of the remote repo
Merge string `protobuf:"bytes,3,opt,name=merge,proto3" json:"merge,omitempty"` // the merge path from the config file
Stat *Stat `protobuf:"bytes,4,opt,name=stat,proto3" json:"stat,omitempty"` // a git stat proto msg
// 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 GitBranchScanner ¶ added in v0.0.98
func (*GitBranchScanner) Next ¶ added in v0.0.98
func (it *GitBranchScanner) Next() *GitBranch
Next() returns the next thing in the array
func (*GitBranchScanner) Scan ¶ added in v0.0.98
func (it *GitBranchScanner) 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 */
Submodules map[string]string `` /* 161-byte string literal not displayed */
Branches []*GitBranch `protobuf:"bytes,3,rep,name=branches,proto3" json:"branches,omitempty"` // move this away from the map<> variables
Remotes []*GitRemote `protobuf:"bytes,4,rep,name=remotes,proto3" json:"remotes,omitempty"` // move this away from the map<> variables
// contains filtered or unexported fields
}
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) ProtoMessage ¶ added in v0.0.57
func (*GitConfig) ProtoMessage()
func (*GitConfig) ProtoReflect ¶ added in v0.0.57
func (x *GitConfig) ProtoReflect() protoreflect.Message
type GitConfigScanner ¶ added in v0.0.98
func (*GitConfigScanner) Next ¶ added in v0.0.98
func (it *GitConfigScanner) Next() *GitConfig
Next() returns the next thing in the array
func (*GitConfigScanner) Scan ¶ added in v0.0.98
func (it *GitConfigScanner) Scan() bool
type GitConfigs ¶ added in v0.0.179
type GitConfigs struct {
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:e70b71ec-0326-4485-8460-4a3c4d7b6919`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
GitConfigs []*GitConfig `protobuf:"bytes,3,rep,name=GitConfigs,proto3" json:"GitConfigs,omitempty"` // THIS MUST BE GitConfig and then GitConfigs
// contains filtered or unexported fields
}
func NewGitConfigs ¶ added in v0.0.179
func NewGitConfigs() *GitConfigs
func (*GitConfigs) All ¶ added in v0.0.179
func (x *GitConfigs) All() *GitConfigScanner
func (*GitConfigs) Append ¶ added in v0.0.179
func (x *GitConfigs) Append(y *GitConfig)
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*GitConfigs) Clone ¶ added in v0.0.179
func (x *GitConfigs) Clone(y *GitConfig) *GitConfig
a Clone() shortcut (with a mutex). notsure if it really works
func (*GitConfigs) Delete ¶ added in v0.0.179
func (x *GitConfigs) Delete(y *GitConfig) bool
func (*GitConfigs) Descriptor
deprecated
added in
v0.0.179
func (*GitConfigs) Descriptor() ([]byte, []int)
Deprecated: Use GitConfigs.ProtoReflect.Descriptor instead.
func (*GitConfigs) FormatJSON ¶ added in v0.0.179
func (v *GitConfigs) FormatJSON() string
human readable JSON
func (*GitConfigs) FormatTEXT ¶ added in v0.0.179
func (v *GitConfigs) FormatTEXT() string
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 (*GitConfigs) GetGitConfigs ¶ added in v0.0.179
func (x *GitConfigs) GetGitConfigs() []*GitConfig
func (*GitConfigs) GetUuid ¶ added in v0.0.179
func (x *GitConfigs) GetUuid() string
func (*GitConfigs) GetVersion ¶ added in v0.0.179
func (x *GitConfigs) GetVersion() string
func (*GitConfigs) IterAll ¶ added in v0.0.179
func (x *GitConfigs) IterAll() iter.Seq[*GitConfig]
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*GitConfigs) Len ¶ added in v0.0.179
func (x *GitConfigs) Len() int
func (*GitConfigs) Marshal ¶ added in v0.0.179
func (v *GitConfigs) Marshal() ([]byte, error)
marshal to wire. This is called winning.
func (*GitConfigs) MarshalJSON ¶ added in v0.0.179
func (v *GitConfigs) MarshalJSON() ([]byte, error)
marshal json
func (*GitConfigs) ProtoMessage ¶ added in v0.0.179
func (*GitConfigs) ProtoMessage()
func (*GitConfigs) ProtoReflect ¶ added in v0.0.179
func (x *GitConfigs) ProtoReflect() protoreflect.Message
func (*GitConfigs) Reset ¶ added in v0.0.179
func (x *GitConfigs) Reset()
func (*GitConfigs) String ¶ added in v0.0.179
func (x *GitConfigs) String() string
func (*GitConfigs) Unmarshal ¶ added in v0.0.179
func (v *GitConfigs) Unmarshal(data []byte) error
unmarshal from wire. You have won.
func (*GitConfigs) UnmarshalJSON ¶ added in v0.0.179
func (v *GitConfigs) UnmarshalJSON(data []byte) error
unmarshal json
func (*GitConfigs) UnmarshalTEXT ¶ added in v0.0.179
func (v *GitConfigs) UnmarshalTEXT(data []byte) error
unmarshalTEXT. This reads the .text config file back in after the user edits it
type GitConfigsScanner ¶ added in v0.0.179
func (*GitConfigsScanner) Next ¶ added in v0.0.179
func (it *GitConfigsScanner) Next() *GitConfigs
Next() returns the next thing in the array
func (*GitConfigsScanner) Scan ¶ added in v0.0.179
func (it *GitConfigsScanner) Scan() bool
type GitRef ¶ added in v0.0.180
type GitRef struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //
Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"` // blank unless REMOTE
Type GitRef_RefType `protobuf:"varint,3,opt,name=type,proto3,enum=gitpb.GitRef_RefType" json:"type,omitempty"` // is set by git as the master branch
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` // git tag subject
// contains filtered or unexported fields
}
func (*GitRef) Descriptor
deprecated
added in
v0.0.180
func (*GitRef) GetSubject ¶ added in v0.0.180
func (*GitRef) GetType ¶ added in v0.0.180
func (x *GitRef) GetType() GitRef_RefType
func (*GitRef) ProtoMessage ¶ added in v0.0.180
func (*GitRef) ProtoMessage()
func (*GitRef) ProtoReflect ¶ added in v0.0.180
func (x *GitRef) ProtoReflect() protoreflect.Message
type GitRefScanner ¶ added in v0.0.180
func (*GitRefScanner) Next ¶ added in v0.0.180
func (it *GitRefScanner) Next() *GitRef
Next() returns the next thing in the array
func (*GitRefScanner) Scan ¶ added in v0.0.180
func (it *GitRefScanner) Scan() bool
type GitRef_RefType ¶ added in v0.0.180
type GitRef_RefType int32
const ( GitRef_UNKNOWN GitRef_RefType = 0 GitRef_LOCAL GitRef_RefType = 1 GitRef_REMOTE GitRef_RefType = 2 GitRef_TAG GitRef_RefType = 3 )
func (GitRef_RefType) Descriptor ¶ added in v0.0.180
func (GitRef_RefType) Descriptor() protoreflect.EnumDescriptor
func (GitRef_RefType) Enum ¶ added in v0.0.180
func (x GitRef_RefType) Enum() *GitRef_RefType
func (GitRef_RefType) EnumDescriptor
deprecated
added in
v0.0.180
func (GitRef_RefType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GitRef_RefType.Descriptor instead.
func (GitRef_RefType) Number ¶ added in v0.0.180
func (x GitRef_RefType) Number() protoreflect.EnumNumber
func (GitRef_RefType) String ¶ added in v0.0.180
func (x GitRef_RefType) String() string
func (GitRef_RefType) Type ¶ added in v0.0.180
func (GitRef_RefType) Type() protoreflect.EnumType
type GitRemote ¶ added in v0.0.57
type GitRemote struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the branch name from the config file
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Fetch string `protobuf:"bytes,3,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 GitRemoteScanner ¶ added in v0.0.98
func (*GitRemoteScanner) Next ¶ added in v0.0.98
func (it *GitRemoteScanner) Next() *GitRemote
Next() returns the next thing in the array
func (*GitRemoteScanner) Scan ¶ added in v0.0.98
func (it *GitRemoteScanner) 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
}
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 GitTimesScanner ¶ added in v0.0.98
func (*GitTimesScanner) Next ¶ added in v0.0.98
func (it *GitTimesScanner) Next() *GitTimes
Next() returns the next thing in the array
func (*GitTimesScanner) Scan ¶ added in v0.0.98
func (it *GitTimesScanner) 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 GoDepScanner ¶ added in v0.0.98
func (*GoDepScanner) Next ¶ added in v0.0.98
func (it *GoDepScanner) Next() *GoDep
Next() returns the next thing in the array
func (*GoDepScanner) Scan ¶ added in v0.0.98
func (it *GoDepScanner) 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 GoSumParseDir ¶ added in v0.0.72
attempt to parse go.* files in a directory
func (*GoDeps) All ¶ added in v0.0.10
func (x *GoDeps) All() *GoDepScanner
func (*GoDeps) Append ¶ added in v0.0.10
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*GoDeps) AppendByGoPath ¶ added in v0.0.50
func (*GoDeps) AppendByHash ¶ added in v0.0.50
func (*GoDeps) Clone ¶ added in v0.0.159
a Clone() shortcut (with a mutex). notsure if it really works
func (*GoDeps) CloneByGoPath ¶ added in v0.0.159
func (*GoDeps) CloneByHash ¶ added in v0.0.159
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) InsertByGoPath ¶ added in v0.0.96
returns a GoDep if GoPath matches, otherwise create
func (*GoDeps) InsertByHash ¶ added in v0.0.96
returns a GoDep if Hash matches, otherwise create
func (*GoDeps) IterAll ¶ added in v0.0.96
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*GoDeps) IterByGoPath ¶ added in v0.0.96
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*GoDeps) IterByHash ¶ added in v0.0.96
'for x := range' syntax using the awesome golang 1.24 'iter'
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() *GoDepScanner
func (*GoDeps) SortByHash ¶ added in v0.0.10
func (x *GoDeps) SortByHash() *GoDepScanner
func (*GoDeps) SortGoPath ¶ added in v0.0.155
func (pb *GoDeps) SortGoPath()
type GoDepsScanner ¶ added in v0.0.98
func (*GoDepsScanner) Next ¶ added in v0.0.98
func (it *GoDepsScanner) Next() *GoDeps
Next() returns the next thing in the array
func (*GoDepsScanner) Scan ¶ added in v0.0.98
func (it *GoDepsScanner) 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 GoInfoScanner ¶ added in v0.0.98
func (*GoInfoScanner) Next ¶ added in v0.0.98
func (it *GoInfoScanner) Next() *GoInfo
Next() returns the next thing in the array
func (*GoInfoScanner) Scan ¶ added in v0.0.98
func (it *GoInfoScanner) Scan() bool
type LinesScanner ¶ added in v0.0.152
LinesScanner provides an iterator over a slice of strings, allowing for sequential access and the ability to un-scan (step back).
func NewLinesScanner ¶ added in v0.0.152
func NewLinesScanner(things []string) *LinesScanner
newLinesScanner initializes a new LinesScanner iterator with a slice of strings.
func (*LinesScanner) Err ¶ added in v0.0.152
func (it *LinesScanner) Err() error
func (*LinesScanner) Next ¶ added in v0.0.152
func (it *LinesScanner) Next() string
Next returns the current line from the scanner with leading and trailing whitespace removed.
func (*LinesScanner) NextRaw ¶ added in v0.0.152
func (it *LinesScanner) NextRaw() string
NextRaw returns the current line from the scanner without any modification.
func (*LinesScanner) Scan ¶ added in v0.0.152
func (it *LinesScanner) Scan() bool
Scan advances the iterator to the next line. It returns false if there are no more lines.
func (*LinesScanner) Text ¶ added in v0.0.152
func (it *LinesScanner) Text() string
alias as some scanners use Text()
func (*LinesScanner) UnScan ¶ added in v0.0.152
func (it *LinesScanner) UnScan() bool
UnScan moves the iterator back one line. It returns false if the iterator is already at the beginning.
type Repo ¶ added in v0.0.10
type Repo struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:unique` `autogenpb:sort`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // `autogenpb:unique` `autogenpb:sort`
FullPath string `protobuf:"bytes,3,opt,name=fullPath,proto3" json:"fullPath,omitempty"` // `autogenpb:unique` `autogenpb:sort` // the OS path to the .git directory: '/home/devel/golang.org/x/tools'
MasterBranchName string `protobuf:"bytes,4,opt,name=masterBranchName,proto3" json:"masterBranchName,omitempty"` // git 'main' or 'master' branch name
DevelBranchName string `protobuf:"bytes,5,opt,name=develBranchName,proto3" json:"develBranchName,omitempty"` // whatever the git 'devel' branch name is
UserBranchName string `protobuf:"bytes,6,opt,name=userBranchName,proto3" json:"userBranchName,omitempty"` // whatever your username branch is
Dirty bool `protobuf:"varint,7,opt,name=dirty,proto3" json:"dirty,omitempty"` // if git says things have been changed
URL string `protobuf:"bytes,8,opt,name=URL,proto3" json:"URL,omitempty"` // the URL
Times *GitTimes `protobuf:"bytes,9,opt,name=times,proto3" json:"times,omitempty"` // store all the mtime values here. these are temporary
CurrentBranchName string `protobuf:"bytes,10,opt,name=currentBranchName,proto3" json:"currentBranchName,omitempty"` // the branch currently checked out
CurrentBranchVersion string `protobuf:"bytes,11,opt,name=currentBranchVersion,proto3" json:"currentBranchVersion,omitempty"` // the branch currently checked out
LastTag string `protobuf:"bytes,12,opt,name=lastTag,proto3" json:"lastTag,omitempty"` // the oldest tag
TargetVersion string `protobuf:"bytes,13,opt,name=targetVersion,proto3" json:"targetVersion,omitempty"` // useful during the package release process
ReadOnly bool `protobuf:"varint,14,opt,name=readOnly,proto3" json:"readOnly,omitempty"` // tracks access to 'git push'
Desc string `protobuf:"bytes,15,opt,name=desc,proto3" json:"desc,omitempty"` // what is this repo?
StateChange string `protobuf:"bytes,16,opt,name=stateChange,proto3" json:"stateChange,omitempty"` // used for debugging tool logic
MasterVersion string `protobuf:"bytes,17,opt,name=masterVersion,proto3" json:"masterVersion,omitempty"` // just store this for now
DevelVersion string `protobuf:"bytes,18,opt,name=develVersion,proto3" json:"develVersion,omitempty"` //
UserVersion string `protobuf:"bytes,19,opt,name=userVersion,proto3" json:"userVersion,omitempty"` // `autogenpb:unique` `autogenpb:sort`
DirtyList []string `protobuf:"bytes,20,rep,name=dirtyList,proto3" json:"dirtyList,omitempty"` // store the list from git status --porcelain
State string `protobuf:"bytes,21,opt,name=state,proto3" json:"state,omitempty"` // status or state. useful for building tooling
Config *GitConfig `protobuf:"bytes,22,opt,name=config,proto3" json:"config,omitempty"` // protobuf of the current .git/config
GoInfo *GoInfo `protobuf:"bytes,23,opt,name=goInfo,proto3" json:"goInfo,omitempty"` // put all the go specifcs here
MasterStat *Stat `protobuf:"bytes,26,opt,name=masterStat,proto3" json:"masterStat,omitempty"` // just store this for now
DevelStat *Stat `protobuf:"bytes,27,opt,name=develStat,proto3" json:"develStat,omitempty"` // just store this for now
UserStat *Stat `protobuf:"bytes,28,opt,name=userStat,proto3" json:"userStat,omitempty"` // just store this for now
Tags *Stats `protobuf:"bytes,29,opt,name=tags,proto3" json:"tags,omitempty"` // just store this for now
// contains filtered or unexported fields
}
func (*Repo) ActualDevelHash ¶ added in v0.0.119
func (*Repo) ActualGetDevelHash ¶ added in v0.0.132
func (*Repo) ActualGetMasterHash ¶ added in v0.0.146
func (*Repo) ActualGetUserHash ¶ added in v0.0.132
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
returns true if the repo is dirty runs os.Exec('git') every time
func (*Repo) CheckDirtyVerbose ¶ added in v0.0.159
returns true if the repo is dirty runs os.Exec('git') every time
func (*Repo) CheckoutDevelError ¶ added in v0.0.142
func (*Repo) CheckoutForce ¶ added in v0.0.159
if you manage to leave yourself on a branch that has been deleted, git porcelain will report the repo as having changes (aka 'dirty') then this code won't let you switch branches this bypasses those checks and moves you to a working branch. 1st 'devel', then 'master'
func (*Repo) CheckoutMaster ¶ added in v0.0.20
deprecate this
func (*Repo) CheckoutMasterError ¶ added in v0.0.142
func (*Repo) CheckoutUser ¶ added in v0.0.20
func (*Repo) CompareHashes ¶ added in v0.0.163
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) CountDiffObjects ¶ added in v0.0.67
count all objects only in branch1
func (*Repo) CountDiffObjectsNEWNEW ¶ added in v0.0.151
count all objects only in branch1
func (*Repo) CountDiffObjectsVerbose ¶ added in v0.0.151
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) DeleteLocalBranch ¶ added in v0.0.151
deletes the devel local branch if it is a subset of the remote devel branch
func (*Repo) DeleteLocalDevelBranch ¶ added in v0.0.79
deletes the devel local branch if it is a subset of the remote devel branch
func (*Repo) Descriptor
deprecated
added in
v0.0.10
func (*Repo) DidRepoChange ¶ added in v0.0.34
func (*Repo) DidRepoChangeDir ¶ added in v0.0.145
also checks .git which seems to change *a lot* this might work immediately after git checkout
func (*Repo) ExamineBranches ¶ added in v0.0.54
func (*Repo) ExistsUserBranchRemote ¶ added in v0.0.65
returns true if 'git pull' will work
func (*Repo) FindGoDepByPath ¶ added in v0.0.10
find a dependancy by the go path
func (*Repo) FindLastTag ¶ added in v0.0.80
finds the newest tag. used for deciding if master needs to be published
func (*Repo) FindPatchIdByHash ¶ added in v0.0.152
forged patch: "working on ping pong" The --stable flag is an important detail. When you use it, git patch-id outputs two hashes: <stable_patch_id> <unstable_patch_id>
func (*Repo) FindPatchIdFromGitAm ¶ added in v0.0.152
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) GetBranchDifferences ¶ added in v0.0.115
lookup a hash from a tag with 'git rev-list'
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) 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) GetDevelStat ¶ added in v0.0.180
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) GetGoPrimitive ¶ added in v0.0.10
func (*Repo) GetHashName ¶ added in v0.0.66
git describe --tags e548b0fb6d0d14cdfb693850d592419f247dc2b1 v0.22.61-15-gbab84d7
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) GetLocalBranches ¶ added in v0.0.66
func (*Repo) GetLocalDevelRef ¶ added in v0.0.151
func (*Repo) GetLocalHash ¶ added in v0.0.83
func (*Repo) GetLocalMasterRef ¶ added in v0.0.151
func (*Repo) GetLocalUserRef ¶ added in v0.0.151
func (*Repo) GetMasterBranchName ¶ added in v0.0.10
func (*Repo) GetMasterStat ¶ added in v0.0.180
func (*Repo) GetMasterVersion ¶ added in v0.0.14
func (*Repo) GetNamespace ¶ added in v0.0.101
func (*Repo) GetProtoFiles ¶ added in v0.0.17
func (*Repo) GetReadOnly ¶ added in v0.0.20
func (*Repo) GetRemoteBranches ¶ added in v0.0.66
func (*Repo) GetRemoteHash ¶ added in v0.0.83
func (*Repo) GetRemoteTag ¶ added in v0.0.140
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) GetSmartVersion ¶ added in v0.0.174
for comparison with the file versions in /var/lib/apt/lists/
func (*Repo) GetStateChange ¶ added in v0.0.34
func (*Repo) GetTagHash ¶ added in v0.0.67
lookup a hash from a tag with 'git rev-list'
func (*Repo) GetTargetVersion ¶ added in v0.0.19
func (*Repo) GetUserBranchName ¶ added in v0.0.10
func (*Repo) GetUserStat ¶ added in v0.0.180
func (*Repo) GetUserVersion ¶ added in v0.0.14
func (*Repo) GitChanged ¶ added in v0.0.32
func (*Repo) GitDeleteOthers ¶ added in v0.0.155
returns the list of files that can be deleted show untracked files git ls-files --others git ls-files --others --exclude-standard git ls-files --others --ignored --exclude-standard
func (*Repo) GitPullAge ¶ added in v0.0.32
func (*Repo) GoSumFromPkgDir ¶ added in v0.0.72
func (*Repo) GoSumFromRepo ¶ added in v0.0.72
func (*Repo) HasChanged ¶ added in v0.0.126
returns true based on os.Stat() only checks seems to kinda work ok. goal is to avoid os.Exec() here for speed this might be the 1 place where libgit2 would be a good idea
func (*Repo) IfRefExists ¶ added in v0.0.150
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
func (repo *Repo) IncrementTargetRevision()
changes the target revision. v0.1.3 becomes v0.1.4
func (*Repo) IsBranch ¶ added in v0.0.10
find a branch namm 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) IsBranchLocal ¶ added in v0.0.151
func (*Repo) IsBranchRemote ¶ added in v0.0.65
this is the correct way. uses 'git show-ref'
func (*Repo) IsDevelBranch ¶ added in v0.0.45
func (*Repo) IsDevelRemote ¶ added in v0.0.72
this is the correct way. uses 'git show-ref'
func (*Repo) IsDirectory ¶ added in v0.0.12
func (*Repo) IsGitDirectory ¶ added in v0.0.28
func (*Repo) IsGoPlugin ¶ added in v0.0.77
does this repo build a binary?
func (*Repo) IsLocalBranch ¶ added in v0.0.28
func (*Repo) IsLocalBranchVerbose ¶ added in v0.0.159
func (*Repo) IsMasterBranch ¶ added in v0.0.43
func (*Repo) IsProtobuf ¶ added in v0.0.10
func (*Repo) IsRemoteBranch ¶ added in v0.0.150
func (*Repo) IsUserBranch ¶ added in v0.0.43
func (*Repo) IsValidDir ¶ added in v0.0.34
func (*Repo) LoadRefs ¶ added in v0.0.180
returns err if anything changes or anything is wrong (todo: should these be different?)
func (*Repo) LoadRemote ¶ added in v0.0.180
loads what is on disk already. that is all
func (*Repo) LoadRemoteRefs ¶ added in v0.0.180
returns err if anything changes or anything is wrong (todo: should these be different?)
func (*Repo) MakeLocalDevelBranch ¶ added in v0.0.105
makes a local branch based off of the master branch (unless a remote devel branch exists. then it uses that)
func (*Repo) MakeRemote ¶ added in v0.0.180
makes a new file. File must be empty at start
func (*Repo) MakeRemoteRefs ¶ added in v0.0.180
returns err if anything changes or anything is wrong (todo: should these be different?)
func (*Repo) MarshalJSON ¶ added in v0.0.10
marshal json
func (*Repo) NewCompareRef ¶ added in v0.0.151
func (*Repo) NewCompareTag ¶ added in v0.0.151
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) NewestTime ¶ added in v0.0.83
func (*Repo) NoteChange ¶ added in v0.0.11
func (*Repo) ParseGoSum ¶ added in v0.0.18
reads and parses the go.sum file into a protobuf struct this function isn't supposed to change anything, just parse the existing files
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.ReloadForce()
func (*Repo) ReloadForce ¶ added in v0.0.126
TODO: clean this up more, but it is working now more or less
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) RunVerbose ¶ added in v0.0.55
func (*Repo) RunVerboseOnError ¶ added in v0.0.55
func (*Repo) RunVerboseWithError ¶ added in v0.0.154
func (*Repo) SafeDelete ¶ added in v0.0.163
It's safe to remove a tag if the deleteHash is completely contained in the keepHash This determines the git PatchId's for each hash and finds out if they are there brute force so it can be slow, but it worth it because it works (todo: detect rare duplicate patchId's)
func (*Repo) ScanProtobuf ¶ added in v0.0.153
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) 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) SmartSetState ¶ added in v0.0.159
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) UpdateRefs ¶ added in v0.0.180
parses "git show-ref" into a protobuf returns err if anything changes or anything is wrong (todo: should these be different?) todo: purge old ones
func (*Repo) UpdateRemote ¶ added in v0.0.180
looks for new hashes. Run this after 'git fetch'
func (*Repo) UpdateRemoteRefs ¶ added in v0.0.180
returns err if anything changes or anything is wrong (todo: should these be different?)
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
func (*Repo) ValidateUTF8 ¶ added in v0.0.110
todo: move this to Marshal() functions automatically in autogenpb?
func (*Repo) VerifyRemoteAndLocalBranches ¶ added in v0.0.123
used in "normal" mode check
type RepoFunc ¶ added in v0.0.144
type RepoScanner ¶ added in v0.0.98
func (*RepoScanner) Next ¶ added in v0.0.98
func (it *RepoScanner) Next() *Repo
Next() returns the next thing in the array
func (*RepoScanner) Scan ¶ added in v0.0.98
func (it *RepoScanner) Scan() bool
type RepoTag ¶ added in v0.0.151
type RepoTag struct {
// contains filtered or unexported fields
}
func (*RepoTag) CompareBranch ¶ added in v0.0.151
func (*RepoTag) GetRefname ¶ added in v0.0.151
func (*RepoTag) GreaterThan ¶ added in v0.0.151
if t1 is user branch, and t2 is devel branch, true if 0
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:v0.1.0 go.wit.com/protobuf/gitpb`
Repos []*Repo `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"` // `autogenpb:append` // generate AppendUnique() function for this
HasFullScan bool `protobuf:"varint,4,opt,name=hasFullScan,proto3" json:"hasFullScan,omitempty"` // a full repo scan has been saved to disk
FullScan *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=fullScan,proto3" json:"fullScan,omitempty"` // mtime of the last full scan saved to disk
Filename string `protobuf:"bytes,6,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
// contains filtered or unexported fields
}
func (*Repos) ActualSort ¶ added in v0.0.155
func (pb *Repos) ActualSort()
func (*Repos) All ¶ added in v0.0.10
func (x *Repos) All() *RepoScanner
func (*Repos) Append ¶ added in v0.0.10
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*Repos) AppendByFullPath ¶ added in v0.0.50
func (*Repos) AppendByNamespace ¶ added in v0.0.103
func (*Repos) AppendByUserVersion ¶ added in v0.0.173
func (*Repos) AppendByUuid ¶ added in v0.0.180
func (*Repos) CheckPorcelain ¶ added in v0.0.159
func (*Repos) Clone ¶ added in v0.0.159
a Clone() shortcut (with a mutex). notsure if it really works
func (*Repos) CloneByFullPath ¶ added in v0.0.159
func (*Repos) CloneByNamespace ¶ added in v0.0.159
func (*Repos) CloneByUserVersion ¶ added in v0.0.173
func (*Repos) CloneByUuid ¶ added in v0.0.180
func (*Repos) ConfigLoad ¶ added in v0.0.12
load the repos.pb file.
func (*Repos) ConfigSave ¶ added in v0.0.12
write the repos.pb file
func (*Repos) DeleteByFullPath ¶ added in v0.0.33
func (*Repos) DeleteByNamespace ¶ added in v0.0.103
func (*Repos) DeleteByUserVersion ¶ added in v0.0.173
func (*Repos) DeleteByUuid ¶ added in v0.0.180
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) FindByNamespace ¶ added in v0.0.103
lookup a Repos by the Namespace
func (*Repos) FindByUserVersion ¶ added in v0.0.173
lookup a Repos by the UserVersion
func (*Repos) FindByUuid ¶ added in v0.0.180
lookup a Repos by the Uuid
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) GetFilename ¶ added in v0.0.152
func (*Repos) GetFullScan ¶ added in v0.0.68
func (x *Repos) GetFullScan() *timestamppb.Timestamp
func (*Repos) GetHasFullScan ¶ added in v0.0.68
func (*Repos) GetVersion ¶ added in v0.0.10
func (*Repos) HttpPost ¶ added in v0.0.119
Marshal protobuf, then http POST, then Unmarshal() to protobuf again
func (*Repos) InsertByFullPath ¶ added in v0.0.96
returns a Repo if FullPath matches, otherwise create
func (*Repos) InsertByNamespace ¶ added in v0.0.103
returns a Repo if Namespace matches, otherwise create
func (*Repos) InsertByUserVersion ¶ added in v0.0.173
returns a Repo if UserVersion matches, otherwise create
func (*Repos) InsertByUuid ¶ added in v0.0.180
returns a Repo if Uuid matches, otherwise create
func (*Repos) IterAll ¶ added in v0.0.96
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Repos) IterByFullPath ¶ added in v0.0.96
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Repos) IterByNamespace ¶ added in v0.0.101
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Repos) IterByUserVersion ¶ added in v0.0.173
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Repos) IterByUuid ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Repos) MakeDefaultTB ¶ added in v0.0.159
func (pb *Repos) MakeDefaultTB() *ReposTable
func (*Repos) MakeForgedTable ¶ added in v0.0.170
func (pb *Repos) MakeForgedTable() *ReposTable
func (*Repos) MakeGowebdTable ¶ added in v0.0.167
func (pb *Repos) MakeGowebdTable(name string) *ReposTable
func (*Repos) MakePublishNewTB ¶ added in v0.0.176
func (pb *Repos) MakePublishNewTB() *ReposTable
func (*Repos) MakePublishTable ¶ added in v0.0.171
func (pb *Repos) MakePublishTable() *ReposTable
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) NewTable ¶ added in v0.0.81
func (x *Repos) NewTable(title string) *ReposTable
func (*Repos) PrintDefaultTB ¶ added in v0.0.159
func (*Repos) PrintForgedTable ¶ added in v0.0.170
func (*Repos) PrintGowebdTable ¶ added in v0.0.167
func (*Repos) PrintMissingTable ¶ added in v0.0.152
func (pb *Repos) PrintMissingTable()
rm this is junk
func (*Repos) PrintPublishNewTB ¶ added in v0.0.176
func (*Repos) PrintPublishTable ¶ added in v0.0.171
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) SaveValidate ¶ added in v0.0.152
bypass name check "repos.pb"
func (*Repos) SaveVerbose ¶ added in v0.0.166
func (*Repos) ScanAllMtimesVerbose ¶ added in v0.0.159
func (*Repos) SendReply ¶ added in v0.0.119
func (p *Repos) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
func (*Repos) SortActual ¶ added in v0.0.176
func (*Repos) SortByAge ¶ added in v0.0.173
func (x *Repos) SortByAge() *RepoScanner
func (*Repos) SortByFullPath ¶ added in v0.0.33
func (x *Repos) SortByFullPath() *RepoScanner
func (*Repos) SortByNamespace ¶ added in v0.0.101
func (x *Repos) SortByNamespace() *RepoScanner
func (*Repos) SortByUserVersion ¶ added in v0.0.173
func (x *Repos) SortByUserVersion() *RepoScanner
func (*Repos) SortByUuid ¶ added in v0.0.180
func (x *Repos) SortByUuid() *RepoScanner
func (*Repos) SortFullPath ¶ added in v0.0.155
func (pb *Repos) SortFullPath()
func (*Repos) SortNamespace ¶ added in v0.0.155
func (pb *Repos) SortNamespace()
func (*Repos) SortUserVersion ¶ added in v0.0.173
func (pb *Repos) SortUserVersion()
func (*Repos) SubmitReposPB ¶ added in v0.0.102
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 ReposScanner ¶ added in v0.0.98
func (*ReposScanner) Next ¶ added in v0.0.98
func (it *ReposScanner) Next() *Repos
Next() returns the next thing in the array
func (*ReposScanner) Scan ¶ added in v0.0.98
func (it *ReposScanner) Scan() bool
type ReposTable ¶ added in v0.0.81
type ReposTable struct {
Funcs []*RepoFunc
CustomFunc func(*Repo)
// contains filtered or unexported fields
}
func (*ReposTable) AddButtonFunc ¶ added in v0.0.91
func (t *ReposTable) AddButtonFunc(title string, f func(*Repo) string) *RepoFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ReposTable) AddCurrentBranchName ¶ added in v0.0.81
func (t *ReposTable) AddCurrentBranchName() *RepoFunc
func (*ReposTable) AddCurrentBranchVersion ¶ added in v0.0.81
func (t *ReposTable) AddCurrentBranchVersion() *RepoFunc
func (*ReposTable) AddDesc ¶ added in v0.0.81
func (t *ReposTable) AddDesc() *RepoFunc
func (*ReposTable) AddDevelBranchName ¶ added in v0.0.81
func (t *ReposTable) AddDevelBranchName() *RepoFunc
func (*ReposTable) AddDevelVersion ¶ added in v0.0.81
func (t *ReposTable) AddDevelVersion() *RepoFunc
func (*ReposTable) AddFullPath ¶ added in v0.0.81
func (t *ReposTable) AddFullPath() *RepoFunc
func (*ReposTable) AddIntFunc ¶ added in v0.0.81
func (t *ReposTable) AddIntFunc(title string, f func(*Repo) int) *RepoFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ReposTable) AddLastTag ¶ added in v0.0.81
func (t *ReposTable) AddLastTag() *RepoFunc
func (*ReposTable) AddMasterBranchName ¶ added in v0.0.81
func (t *ReposTable) AddMasterBranchName() *RepoFunc
func (*ReposTable) AddMasterVersion ¶ added in v0.0.81
func (t *ReposTable) AddMasterVersion() *RepoFunc
func (*ReposTable) AddNamespace ¶ added in v0.0.101
func (t *ReposTable) AddNamespace() *RepoFunc
func (*ReposTable) AddState ¶ added in v0.0.81
func (t *ReposTable) AddState() *RepoFunc
func (*ReposTable) AddStateChange ¶ added in v0.0.81
func (t *ReposTable) AddStateChange() *RepoFunc
func (*ReposTable) AddStringFunc ¶ added in v0.0.81
func (t *ReposTable) AddStringFunc(title string, f func(*Repo) string) *RepoFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ReposTable) AddTargetVersion ¶ added in v0.0.81
func (t *ReposTable) AddTargetVersion() *RepoFunc
func (*ReposTable) AddTimeFunc ¶ added in v0.0.81
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ReposTable) AddURL ¶ added in v0.0.81
func (t *ReposTable) AddURL() *RepoFunc
func (*ReposTable) AddUserBranchName ¶ added in v0.0.81
func (t *ReposTable) AddUserBranchName() *RepoFunc
func (*ReposTable) AddUserVersion ¶ added in v0.0.81
func (t *ReposTable) AddUserVersion() *RepoFunc
func (*ReposTable) AddUuid ¶ added in v0.0.180
func (t *ReposTable) AddUuid() *RepoFunc
func (*ReposTable) Custom ¶ added in v0.0.91
func (mt *ReposTable) Custom(f func(*Repo))
func (*ReposTable) Delete ¶ added in v0.0.89
func (mt *ReposTable) Delete()
func (*ReposTable) GetUuid ¶ added in v0.0.90
func (mt *ReposTable) GetUuid() string
func (*ReposTable) MakeTable ¶ added in v0.0.81
func (mt *ReposTable) MakeTable()
func (*ReposTable) NewUuid ¶ added in v0.0.89
func (mt *ReposTable) NewUuid()
func (*ReposTable) PrintTable ¶ added in v0.0.136
func (t *ReposTable) PrintTable()
formats & prints the table as text to Stdout. a real timesaver!
func (*ReposTable) SetParent ¶ added in v0.0.84
func (mt *ReposTable) SetParent(p *gui.Node)
func (*ReposTable) ShowTable ¶ added in v0.0.81
func (mt *ReposTable) ShowTable()
type Stat ¶ added in v0.0.163
type Stat struct {
PatchId string `protobuf:"bytes,1,opt,name=patchId,proto3" json:"patchId,omitempty"` // `autogenpb:sort`
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // `autogenpb:sort`
TreeHash string `protobuf:"bytes,3,opt,name=treeHash,proto3" json:"treeHash,omitempty"` // `autogenpb:sort`
TagHash string `protobuf:"bytes,4,opt,name=tagHash,proto3" json:"tagHash,omitempty"` // `autogenpb:unique` `autogenpb:sort`
AuthorTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=authorTime,proto3" json:"authorTime,omitempty"` // `autogenpb:sort`
CommitTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=commitTime,proto3" json:"commitTime,omitempty"` // `autogenpb:sort`
SanitizedSubject string `protobuf:"bytes,7,opt,name=sanitizedSubject,proto3" json:"sanitizedSubject,omitempty"` // `autogenpb:sort`
Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` // `autogenpb:unique` `autogenpb:sort`
Remote string `protobuf:"bytes,9,opt,name=remote,proto3" json:"remote,omitempty"` // blank unless REMOTE
Subject string `protobuf:"bytes,10,opt,name=subject,proto3" json:"subject,omitempty"` // git tag subject
Type GitRef_RefType `protobuf:"varint,11,opt,name=type,proto3,enum=gitpb.GitRef_RefType" json:"type,omitempty"` // is set by git as the master branch
Refs []*GitRef `protobuf:"bytes,12,rep,name=refs,proto3" json:"refs,omitempty"` // this is dumb, but works for now. duplicate information is stored sometimes
Tags string `protobuf:"bytes,13,opt,name=tags,proto3" json:"tags,omitempty"` // git tag subject
// contains filtered or unexported fields
}
TODO: use patch.proto instead
func (*Stat) Descriptor
deprecated
added in
v0.0.163
func (*Stat) GetAuthorTime ¶ added in v0.0.180
func (x *Stat) GetAuthorTime() *timestamppb.Timestamp
func (*Stat) GetCommitTime ¶ added in v0.0.180
func (x *Stat) GetCommitTime() *timestamppb.Timestamp
func (*Stat) GetPatchId ¶ added in v0.0.163
func (*Stat) GetSanitizedSubject ¶ added in v0.0.180
func (*Stat) GetSubject ¶ added in v0.0.163
func (*Stat) GetTagHash ¶ added in v0.0.180
func (*Stat) GetTreeHash ¶ added in v0.0.180
func (*Stat) GetType ¶ added in v0.0.163
func (x *Stat) GetType() GitRef_RefType
func (*Stat) ProtoMessage ¶ added in v0.0.163
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶ added in v0.0.163
func (x *Stat) ProtoReflect() protoreflect.Message
type StatFunc ¶ added in v0.0.163
type StatScanner ¶ added in v0.0.163
func (*StatScanner) Next ¶ added in v0.0.163
func (it *StatScanner) Next() *Stat
Next() returns the next thing in the array
func (*StatScanner) Scan ¶ added in v0.0.163
func (it *StatScanner) Scan() bool
type Stats ¶ added in v0.0.163
type Stats struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:ba236558-f8a1-4c47-a14a-8856a24d3f72`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.7 go.wit.com/lib/protobuf/gitpb`
Stats []*Stat `protobuf:"bytes,3,rep,name=stats,proto3" json:"stats,omitempty"`
Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
Head string `protobuf:"bytes,5,opt,name=head,proto3" json:"head,omitempty"` // the current origin hash
Mtime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=mtime,proto3" json:"mtime,omitempty"` // mtime for .git/
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` // the current origin hash
// contains filtered or unexported fields
}
normally stored as .git/*.pb cache files TODO: use patch.proto instead
func (*Stats) All ¶ added in v0.0.163
func (x *Stats) All() *StatScanner
func (*Stats) Append ¶ added in v0.0.163
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*Stats) AppendByName ¶ added in v0.0.180
func (*Stats) AppendByTagHash ¶ added in v0.0.180
func (*Stats) Clone ¶ added in v0.0.163
a Clone() shortcut (with a mutex). notsure if it really works
func (*Stats) CloneByName ¶ added in v0.0.180
func (*Stats) CloneByTagHash ¶ added in v0.0.180
func (*Stats) DeleteByName ¶ added in v0.0.180
func (*Stats) DeleteByTagHash ¶ added in v0.0.180
func (*Stats) Descriptor
deprecated
added in
v0.0.163
func (*Stats) FindByName ¶ added in v0.0.180
lookup a Stats by the Name
func (*Stats) FindByTagHash ¶ added in v0.0.180
lookup a Stats by the TagHash
func (*Stats) FormatJSON ¶ added in v0.0.163
human readable JSON
func (*Stats) FormatTEXT ¶ added in v0.0.163
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 (*Stats) GetFilename ¶ added in v0.0.164
func (*Stats) GetMtime ¶ added in v0.0.163
func (x *Stats) GetMtime() *timestamppb.Timestamp
func (*Stats) GetVersion ¶ added in v0.0.163
func (*Stats) HttpPost ¶ added in v0.0.163
Marshal protobuf, then http POST, then Unmarshal() to protobuf again
func (*Stats) InsertByName ¶ added in v0.0.180
returns a Stat if Name matches, otherwise create
func (*Stats) InsertByTagHash ¶ added in v0.0.180
returns a Stat if TagHash matches, otherwise create
func (*Stats) IterAll ¶ added in v0.0.163
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterByHash ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterByName ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterByPatchId ¶ added in v0.0.168
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterBySanitizedSubject ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterByTagHash ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) IterByTreeHash ¶ added in v0.0.180
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Stats) MakeTable ¶ added in v0.0.168
func (pb *Stats) MakeTable(name string) *StatsTable
func (*Stats) MarshalJSON ¶ added in v0.0.163
marshal json
func (*Stats) NewTable ¶ added in v0.0.163
func (x *Stats) NewTable(title string) *StatsTable
func (*Stats) PrintTable ¶ added in v0.0.168
func (*Stats) PrintTableLimit ¶ added in v0.0.168
func (*Stats) ProtoMessage ¶ added in v0.0.163
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶ added in v0.0.163
func (x *Stats) ProtoReflect() protoreflect.Message
func (*Stats) SaveByHash ¶ added in v0.0.180
func (*Stats) SaveVerbose ¶ added in v0.0.164
func (*Stats) SendReply ¶ added in v0.0.163
func (p *Stats) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
func (*Stats) SortByAge ¶ added in v0.0.182
func (all *Stats) SortByAge() *StatScanner
func (*Stats) SortByHash ¶ added in v0.0.180
func (x *Stats) SortByHash() *StatScanner
func (*Stats) SortByName ¶ added in v0.0.180
func (x *Stats) SortByName() *StatScanner
func (*Stats) SortByPatchId ¶ added in v0.0.168
func (x *Stats) SortByPatchId() *StatScanner
func (*Stats) SortBySanitizedSubject ¶ added in v0.0.180
func (x *Stats) SortBySanitizedSubject() *StatScanner
func (*Stats) SortByTagHash ¶ added in v0.0.180
func (x *Stats) SortByTagHash() *StatScanner
func (*Stats) SortByTreeHash ¶ added in v0.0.180
func (x *Stats) SortByTreeHash() *StatScanner
func (*Stats) SortPatchId ¶ added in v0.0.168
func (pb *Stats) SortPatchId()
func (*Stats) SortSanitizedSubject ¶ added in v0.0.180
func (pb *Stats) SortSanitizedSubject()
func (*Stats) SortTagHash ¶ added in v0.0.180
func (pb *Stats) SortTagHash()
func (*Stats) SortTreeHash ¶ added in v0.0.180
func (pb *Stats) SortTreeHash()
func (*Stats) SortVersion ¶ added in v0.0.180
func (*Stats) UnmarshalJSON ¶ added in v0.0.163
unmarshal json
func (*Stats) UnmarshalTEXT ¶ added in v0.0.163
unmarshalTEXT. This reads the .text config file back in after the user edits it
type StatsScanner ¶ added in v0.0.163
func (*StatsScanner) Next ¶ added in v0.0.163
func (it *StatsScanner) Next() *Stats
Next() returns the next thing in the array
func (*StatsScanner) Scan ¶ added in v0.0.163
func (it *StatsScanner) Scan() bool
type StatsTable ¶ added in v0.0.163
type StatsTable struct {
Funcs []*StatFunc
CustomFunc func(*Stat)
// contains filtered or unexported fields
}
func (*StatsTable) AddButtonFunc ¶ added in v0.0.163
func (t *StatsTable) AddButtonFunc(title string, f func(*Stat) string) *StatFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*StatsTable) AddHash ¶ added in v0.0.163
func (t *StatsTable) AddHash() *StatFunc
func (*StatsTable) AddIntFunc ¶ added in v0.0.163
func (t *StatsTable) AddIntFunc(title string, f func(*Stat) int) *StatFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*StatsTable) AddName ¶ added in v0.0.163
func (t *StatsTable) AddName() *StatFunc
func (*StatsTable) AddPatchId ¶ added in v0.0.163
func (t *StatsTable) AddPatchId() *StatFunc
func (*StatsTable) AddRemote ¶ added in v0.0.163
func (t *StatsTable) AddRemote() *StatFunc
func (*StatsTable) AddSanitizedSubject ¶ added in v0.0.180
func (t *StatsTable) AddSanitizedSubject() *StatFunc
func (*StatsTable) AddStringFunc ¶ added in v0.0.163
func (t *StatsTable) AddStringFunc(title string, f func(*Stat) string) *StatFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*StatsTable) AddSubject ¶ added in v0.0.163
func (t *StatsTable) AddSubject() *StatFunc
func (*StatsTable) AddTagHash ¶ added in v0.0.180
func (t *StatsTable) AddTagHash() *StatFunc
func (*StatsTable) AddTags ¶ added in v0.0.180
func (t *StatsTable) AddTags() *StatFunc
func (*StatsTable) AddTimeFunc ¶ added in v0.0.163
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*StatsTable) AddTreeHash ¶ added in v0.0.180
func (t *StatsTable) AddTreeHash() *StatFunc
func (*StatsTable) Custom ¶ added in v0.0.163
func (mt *StatsTable) Custom(f func(*Stat))
func (*StatsTable) Delete ¶ added in v0.0.163
func (mt *StatsTable) Delete()
func (*StatsTable) GetUuid ¶ added in v0.0.163
func (mt *StatsTable) GetUuid() string
func (*StatsTable) MakeTable ¶ added in v0.0.163
func (mt *StatsTable) MakeTable()
func (*StatsTable) NewUuid ¶ added in v0.0.163
func (mt *StatsTable) NewUuid()
func (*StatsTable) PrintTable ¶ added in v0.0.163
func (t *StatsTable) PrintTable()
formats & prints the table as text to Stdout. a real timesaver!
func (*StatsTable) PrintTableLimit ¶ added in v0.0.168
func (t *StatsTable) PrintTableLimit(limit int)
formats & prints the table as text to Stdout. a real timesaver!
func (*StatsTable) SetParent ¶ added in v0.0.163
func (mt *StatsTable) SetParent(p *gui.Node)
func (*StatsTable) ShowTable ¶ added in v0.0.163
func (mt *StatsTable) ShowTable()
Source Files
¶
- age.go
- autogen.go
- branches.go
- checkout.go
- common.go
- compare.go
- config.go
- currentVersions.go
- deleteTags.go
- generate.go
- gitConfig.marshal.pb.go
- gitConfig.pb.go
- gitConfig.sort.pb.go
- gitTag.byAge.go
- gitTag.common.go
- goDep.helpers.go
- goDep.marshal.pb.go
- goDep.parseGoSum.go
- goDep.pb.go
- goDep.redoGoMod.go
- goDep.sort.pb.go
- http.go
- isPrimitive.go
- linesScanner.go
- log.go
- parseURL.go
- patchid.go
- reload.go
- reloadBranches.go
- reloadCheckDirty.go
- reloadIsTracked.go
- reloadMtime.go
- reloadParseGitConfig.go
- reloadRepoState.go
- reloadRepoType.go
- reloadTags.go
- repo.CacheLoad.go
- repo.SortByAge.go
- repo.Stats.go
- repo.common.go
- repo.gui.pb.go
- repo.http.pb.go
- repo.marshal.pb.go
- repo.merge.go
- repo.new.go
- repo.pb.go
- repo.sort.pb.go
- revert.go
- rill.go
- shell.go
- stat.SaveVerbose.go
- stat.SortCtime.go
- stat.TableLimit.go
- stat.gui.pb.go
- stat.http.pb.go
- stat.makeRemote.go
- stat.makeRemoteRefs.go
- stat.marshal.pb.go
- stat.pb.go
- stat.sort.pb.go
- stat.updateRefs.go
- tableForged.go
- tableGowebd.go
- tableMissing.go
- tablePublish.go
- tablePublishNew.go
- tableReposDefault.go
- tableStats.go
- versions.go