Documentation
¶
Overview ¶
Example ¶
This example is copied from rill to understand golang docs
package main
import (
"fmt"
)
func main() {
fmt.Println("nothing here yet")
}
Output:
Example (Batching) ¶
This example is copied from rill to understand golang docs
package main
import (
"fmt"
)
func main() {
fmt.Println("nothing batching here yet")
}
Output:
Index ¶
- Variables
- func FindGoImport(url string) (string, error)
- func GetNamespace(url string) string
- func RunGitClone(newdir, basedir, giturl string) error
- func RunGoList(url string) (string, error)
- func ValidGoVersion(ver string) (bool, error)
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (v *Cache) FormatJSON() string
- func (v *Cache) FormatTEXT() string
- func (x *Cache) GetDirs() []string
- func (x *Cache) GetFilename() string
- func (x *Cache) GetName() string
- func (x *Cache) GetUuid() string
- func (x *Cache) GetVersion() string
- func (v *Cache) Marshal() ([]byte, error)
- func (v *Cache) MarshalJSON() ([]byte, error)
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (pb *Cache) Save() error
- func (x *Cache) String() string
- func (v *Cache) Unmarshal(data []byte) error
- func (v *Cache) UnmarshalJSON(data []byte) error
- func (v *Cache) UnmarshalTEXT(data []byte) error
- type CacheScanner
- type Forge
- func (f *Forge) AddFullPath(fulldir string) *gitpb.Repo
- func (f *Forge) AddNamespaceDir(ns string, fullpath string) (*gitpb.Repo, error)
- func (f *Forge) AddNewPatch(patch *Patch) bool
- func (f *Forge) AddPatch(patch *Patch) bool
- func (f *Forge) AddPatchset(pb *Set) bool
- func (f *Forge) Build(repo *gitpb.Repo, userFlags []string) error
- func (f *Forge) CheckDirty() *gitpb.Repos
- func (f *Forge) CheckDirtyQuiet()
- func (f *Forge) CheckOverride(gopath string) bool
- func (f *Forge) CheckUpdatingGoDeps(godeps *gitpb.GoDeps, upgrading *gitpb.Repos) error
- func (f *Forge) CleanGoDepsCheckOk(check *gitpb.Repo) error
- func (f *Forge) Clone(url string) (*gitpb.Repo, error)
- func (f *Forge) Close() error
- func (f *Forge) ConfigRill(rillX int, rillY int)
- func (f *Forge) DeleteByGoPath(gopath string) bool
- func (f *Forge) DoAllCheckoutDevel(force bool) error
- func (f *Forge) DoAllCheckoutDevelNew(force bool) error
- func (f *Forge) DoAllCheckoutMaster() error
- func (f *Forge) DoAllCheckoutUser(force bool) error
- func (f *Forge) FinalGoDepsCheckOk(check *gitpb.Repo) error
- func (f *Forge) FindAnyPath(dir string) *gitpb.Repo
- func (f *Forge) FindDirty() *gitpb.Repos
- func (f *Forge) GetBuildBaseTB(pb *gitpb.Repos) *gitpb.ReposTable
- func (f *Forge) GetMode() string
- func (f *Forge) GetPackageVersion(repo *gitpb.Repo) string
- func (f *Forge) GetRepoType(repo *gitpb.Repo) string
- func (f *Forge) GoClone(gopath string) (*gitpb.Repo, error)
- func (f *Forge) InitPatchsets() error
- func (f *Forge) Install(repo *gitpb.Repo, userFlags []string) error
- func (f *Forge) IsEverythingOnDevel() (int, int, int, error)
- func (f *Forge) IsEverythingOnMaster() (int, int, int, error)
- func (f *Forge) IsEverythingOnUser() (int, int, int, error)
- func (f *Forge) IsGoWork() bool
- func (f *Forge) IsModeClean() bool
- func (f *Forge) IsModeDevel() bool
- func (f *Forge) IsModeGoLang() bool
- func (f *Forge) IsModeMaster() bool
- func (f *Forge) IsModeNewUser() bool
- func (f *Forge) IsModeNormal() bool
- func (f *Forge) IsModeUnknown() bool
- func (f *Forge) IsModeUser() bool
- func (f *Forge) IsPatchApplied(newpatch *Patch) (*gitpb.Repo, bool)
- func (f *Forge) IsPrivate(repo *gitpb.Repo) bool
- func (f *Forge) IsWritable(repo *gitpb.Repo) bool
- func (f *Forge) IterByMode() iter.Seq[*gitpb.Repo]
- func (f *Forge) MakeDevelPatchSet(name string) (*Set, error)
- func (f *Forge) MakeGoWork() error
- func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error)
- func (f *Forge) NormalCheckTB(pb *gitpb.Repos) string
- func (f *Forge) PrepareCheckRepo(namespace string) *gitpb.Repo
- func (f *Forge) PrepareCheckRepos() *gitpb.Repos
- func (f *Forge) PrintDefaultTB(pb *gitpb.Repos) string
- func (f *Forge) PrintErrorsTB(pb *gitpb.Repos) string
- func (f *Forge) PrintGolangTB(pb *gitpb.Repos) string
- func (f *Forge) PrintPullTable(pb *gitpb.Repos) string
- func (f *Forge) PrintTable(pb *gitpb.Repos)
- func (f *Forge) Reload() map[string]*RillStats
- func (f *Forge) RescanRepos() error
- func (f *Forge) RillFuncError(rillf func(*gitpb.Repo) error) map[string]*RillStats
- func (f *Forge) RillReload() int
- func (f *Forge) RillRepos(rillf func(*gitpb.Repo) error) map[string]*RillStats
- func (f *Forge) RunOnRepos(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos
- func (f *Forge) RunOnReposOld(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) map[string]*RillStats
- func (f *Forge) RunOnReposSlow(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) *gitpb.Repos
- func (f *Forge) Save() error
- func (f *Forge) SavePatchsets() error
- func (f *Forge) SetCleaningMode()
- func (f *Forge) SetConfigSave(b bool)
- func (f *Forge) SetMode(newmode ForgeMode) error
- func (f *Forge) SetModeNewUser()
- func (f *Forge) SetUserMode()
- func (f *Forge) TestGoDepsCheckOk(godeps *gitpb.GoDeps) error
- func (f *Forge) TrimGoSum(check *gitpb.Repo) error
- func (f *Forge) ValidGoVersion(ver string) (bool, error)
- func (f *Forge) VerifyBranchNames(repo *gitpb.Repo)
- type ForgeConfig
- func (*ForgeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ForgeConfig) GetDebName() string
- func (x *ForgeConfig) GetDevelBranchName() string
- func (x *ForgeConfig) GetDirectory() bool
- func (x *ForgeConfig) GetFavorite() bool
- func (x *ForgeConfig) GetGoPath() string
- func (x *ForgeConfig) GetInteresting() bool
- func (x *ForgeConfig) GetMasterBranchName() string
- func (x *ForgeConfig) GetNamespace() string
- func (x *ForgeConfig) GetPrivate() bool
- func (x *ForgeConfig) GetReadOnly() bool
- func (x *ForgeConfig) GetUserBranchName() string
- func (x *ForgeConfig) GetVerstamp() *timestamppb.Timestamp
- func (x *ForgeConfig) GetWritable() bool
- func (*ForgeConfig) ProtoMessage()
- func (x *ForgeConfig) ProtoReflect() protoreflect.Message
- func (x *ForgeConfig) Reset()
- func (x *ForgeConfig) String() string
- type ForgeConfigFunc
- type ForgeConfigScanner
- type ForgeConfigs
- func (x *ForgeConfigs) All() *ForgeConfigScanner
- func (x *ForgeConfigs) Append(y *ForgeConfig)
- func (x *ForgeConfigs) AppendByNamespace(y *ForgeConfig) bool
- func (x *ForgeConfigs) Clone(y *ForgeConfig) *ForgeConfig
- func (x *ForgeConfigs) CloneByNamespace(y *ForgeConfig) bool
- func (fc *ForgeConfigs) DebName(namespace string) string
- func (x *ForgeConfigs) Delete(y *ForgeConfig) bool
- func (x *ForgeConfigs) DeleteByNamespace(s string) bool
- func (*ForgeConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *ForgeConfigs) FindByNamespace(s string) *ForgeConfig
- func (fc *ForgeConfigs) FindDevelBranch(thing string) string
- func (fc *ForgeConfigs) FindMasterBranch(thing string) string
- func (fc *ForgeConfigs) FindUserBranch(thing string) string
- func (v *ForgeConfigs) FormatJSON() string
- func (v *ForgeConfigs) FormatTEXT() string
- func (x *ForgeConfigs) GetCaches() []*Cache
- func (x *ForgeConfigs) GetFilename() string
- func (x *ForgeConfigs) GetForgeConfigs() []*ForgeConfig
- func (x *ForgeConfigs) GetUuid() string
- func (x *ForgeConfigs) GetVersion() string
- func (x *ForgeConfigs) InsertByNamespace(y string) *ForgeConfig
- func (fc *ForgeConfigs) IsFavorite(thing string) bool
- func (fc *ForgeConfigs) IsPrivate(thing string) bool
- func (fc *ForgeConfigs) IsReadOnly(namespace string) bool
- func (fc *ForgeConfigs) IsWritable(thing string) bool
- func (x *ForgeConfigs) IterAll() iter.Seq[*ForgeConfig]
- func (x *ForgeConfigs) IterByNamespace() iter.Seq[*ForgeConfig]
- func (x *ForgeConfigs) Len() int
- func (pb *ForgeConfigs) MakeTable() *ForgeConfigsTable
- func (v *ForgeConfigs) Marshal() ([]byte, error)
- func (v *ForgeConfigs) MarshalJSON() ([]byte, error)
- func (x *ForgeConfigs) NewTable(title string) *ForgeConfigsTable
- func (pb *ForgeConfigs) PrintTable() string
- func (*ForgeConfigs) ProtoMessage()
- func (x *ForgeConfigs) ProtoReflect() protoreflect.Message
- func (x *ForgeConfigs) Reset()
- func (x *ForgeConfigs) SortByNamespace() *ForgeConfigScanner
- func (pb *ForgeConfigs) SortNamespace()
- func (x *ForgeConfigs) String() string
- func (v *ForgeConfigs) Unmarshal(data []byte) error
- func (v *ForgeConfigs) UnmarshalJSON(data []byte) error
- func (v *ForgeConfigs) UnmarshalTEXT(data []byte) error
- type ForgeConfigsScanner
- type ForgeConfigsTable
- func (t *ForgeConfigsTable) AddButtonFunc(title string, f func(*ForgeConfig) string) *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddDebName() *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddDevelBranchName() *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddGoPath() *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddIntFunc(title string, f func(*ForgeConfig) int) *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddMasterBranchName() *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddNamespace() *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddStringFunc(title string, f func(*ForgeConfig) string) *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddTimeFunc(title string, f func(*ForgeConfig) time.Time) *ForgeConfigFunc
- func (t *ForgeConfigsTable) AddUserBranchName() *ForgeConfigFunc
- func (mt *ForgeConfigsTable) Custom(f func(*ForgeConfig))
- func (mt *ForgeConfigsTable) Delete()
- func (mt *ForgeConfigsTable) GetUuid() string
- func (mt *ForgeConfigsTable) MakeTable()
- func (mt *ForgeConfigsTable) NewUuid()
- func (t *ForgeConfigsTable) PrintTable()
- func (mt *ForgeConfigsTable) SetParent(p *gui.Node)
- func (mt *ForgeConfigsTable) ShowTable()
- type ForgeMode
- type Module
- type ModuleError
- type Origin
- type Patch
- func (*Patch) Descriptor() ([]byte, []int)deprecated
- func (pb *Patch) Error(err any) error
- func (x *Patch) GetApplied() bool
- func (x *Patch) GetComment() string
- func (x *Patch) GetCommitHash() string
- func (x *Patch) GetCtime() *timestamppb.Timestamp
- func (x *Patch) GetData() []byte
- func (x *Patch) GetFilename() string
- func (x *Patch) GetFiles() []string
- func (x *Patch) GetGGG() string
- func (x *Patch) GetGGK() string
- func (x *Patch) GetGGS() string
- func (x *Patch) GetGH() string
- func (x *Patch) GetGN() string
- func (x *Patch) GetGP() string
- func (x *Patch) GetGT() string
- func (x *Patch) GetGaI() string
- func (x *Patch) GetGae() string
- func (x *Patch) GetGan() string
- func (x *Patch) GetGcI() string
- func (x *Patch) GetGce() string
- func (x *Patch) GetGcn() string
- func (x *Patch) GetGs() string
- func (x *Patch) GetNamespace() string
- func (x *Patch) GetNewHash() string
- func (x *Patch) GetPatchId() string
- func (x *Patch) GetStartHash() string
- func (x *Patch) GetState() string
- func (x *Patch) GetStateChange() string
- func (x *Patch) GetTreeHash() string
- func (x *Patch) GetUpstream() bool
- func (*Patch) ProtoMessage()
- func (x *Patch) ProtoReflect() protoreflect.Message
- func (x *Patch) Reset()
- func (x *Patch) String() string
- type PatchFunc
- type PatchScanner
- type Patches
- func (x *Patches) All() *PatchScanner
- func (x *Patches) Append(y *Patch)
- func (x *Patches) AppendByCommitHash(y *Patch) bool
- func (x *Patches) AppendByFilename(y *Patch) bool
- func (x *Patches) AppendByPatchId(y *Patch) bool
- func (x *Patches) Clone(y *Patch) *Patch
- func (x *Patches) CloneByCommitHash(y *Patch) bool
- func (x *Patches) CloneByFilename(y *Patch) bool
- func (x *Patches) CloneByPatchId(y *Patch) bool
- func (x *Patches) Delete(y *Patch) bool
- func (x *Patches) DeleteByCommitHash(s string) bool
- func (x *Patches) DeleteByFilename(s string) bool
- func (x *Patches) DeleteByPatchId(s string) bool
- func (*Patches) Descriptor() ([]byte, []int)deprecated
- func (pb *Patches) Error(err any) error
- func (x *Patches) FindByCommitHash(s string) *Patch
- func (x *Patches) FindByFilename(s string) *Patch
- func (x *Patches) FindByPatchId(s string) *Patch
- func (v *Patches) FormatJSON() string
- func (v *Patches) FormatTEXT() string
- func (x *Patches) GetErrors() string
- func (x *Patches) GetFilename() string
- func (x *Patches) GetPatches() []*Patch
- func (x *Patches) GetUuid() string
- func (x *Patches) GetVersion() string
- func (p *Patches) HttpPost(baseURL string, route string) (*Patches, *httppb.HttpRequest, error)
- func (p *Patches) HttpPostVerbose(baseURL string, route string) (*Patches, *httppb.HttpRequest, error)
- func (x *Patches) InsertByCommitHash(y string) *Patch
- func (x *Patches) InsertByFilename(y string) *Patch
- func (x *Patches) InsertByPatchId(y string) *Patch
- func (x *Patches) IterAll() iter.Seq[*Patch]
- func (x *Patches) IterByCommitHash() iter.Seq[*Patch]
- func (x *Patches) IterByFilename() iter.Seq[*Patch]
- func (x *Patches) Len() int
- func (pb *Patches) Load() error
- func (pb *Patches) MakeTable() *PatchesTable
- func (v *Patches) Marshal() ([]byte, error)
- func (v *Patches) MarshalJSON() ([]byte, error)
- func (x *Patches) NewTable(title string) *PatchesTable
- func (pb *Patches) PrintTable() string
- func (*Patches) ProtoMessage()
- func (x *Patches) ProtoReflect() protoreflect.Message
- func (x *Patches) Reset()
- func (pb *Patches) Save() error
- func (p *Patches) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
- func (x *Patches) SortByCommitHash() *PatchScanner
- func (x *Patches) SortByFilename() *PatchScanner
- func (pb *Patches) SortCommitHash()
- func (pb *Patches) SortFilename()
- func (x *Patches) String() string
- func (v *Patches) Unmarshal(data []byte) error
- func (v *Patches) UnmarshalJSON(data []byte) error
- func (v *Patches) UnmarshalTEXT(data []byte) error
- type PatchesScanner
- type PatchesTable
- func (t *PatchesTable) AddButtonFunc(title string, f func(*Patch) string) *PatchFunc
- func (t *PatchesTable) AddComment() *PatchFunc
- func (t *PatchesTable) AddCommitHash() *PatchFunc
- func (t *PatchesTable) AddFilename() *PatchFunc
- func (t *PatchesTable) AddGGG() *PatchFunc
- func (t *PatchesTable) AddGGK() *PatchFunc
- func (t *PatchesTable) AddGGS() *PatchFunc
- func (t *PatchesTable) AddGH() *PatchFunc
- func (t *PatchesTable) AddGN() *PatchFunc
- func (t *PatchesTable) AddGP() *PatchFunc
- func (t *PatchesTable) AddGT() *PatchFunc
- func (t *PatchesTable) AddGaI() *PatchFunc
- func (t *PatchesTable) AddGae() *PatchFunc
- func (t *PatchesTable) AddGan() *PatchFunc
- func (t *PatchesTable) AddGcI() *PatchFunc
- func (t *PatchesTable) AddGce() *PatchFunc
- func (t *PatchesTable) AddGcn() *PatchFunc
- func (t *PatchesTable) AddGs() *PatchFunc
- func (t *PatchesTable) AddIntFunc(title string, f func(*Patch) int) *PatchFunc
- func (t *PatchesTable) AddNamespace() *PatchFunc
- func (t *PatchesTable) AddNewHash() *PatchFunc
- func (t *PatchesTable) AddPatchId() *PatchFunc
- func (t *PatchesTable) AddStartHash() *PatchFunc
- func (t *PatchesTable) AddState() *PatchFunc
- func (t *PatchesTable) AddStateChange() *PatchFunc
- func (t *PatchesTable) AddStringFunc(title string, f func(*Patch) string) *PatchFunc
- func (t *PatchesTable) AddTimeFunc(title string, f func(*Patch) time.Time) *PatchFunc
- func (t *PatchesTable) AddTreeHash() *PatchFunc
- func (mt *PatchesTable) Custom(f func(*Patch))
- func (mt *PatchesTable) Delete()
- func (mt *PatchesTable) GetUuid() string
- func (mt *PatchesTable) MakeTable()
- func (mt *PatchesTable) NewUuid()
- func (t *PatchesTable) PrintTable()
- func (mt *PatchesTable) SetParent(p *gui.Node)
- func (mt *PatchesTable) ShowTable()
- type RillStats
- type Set
- func (*Set) Descriptor() ([]byte, []int)deprecated
- func (v *Set) FormatJSON() string
- func (v *Set) FormatTEXT() string
- func (x *Set) GetComment() string
- func (x *Set) GetCtime() *timestamppb.Timestamp
- func (x *Set) GetEndBranchHash() string
- func (x *Set) GetEndBranchName() string
- func (x *Set) GetGitAuthorEmail() string
- func (x *Set) GetGitAuthorName() string
- func (x *Set) GetHostname() string
- func (x *Set) GetName() string
- func (x *Set) GetPatches() *Patches
- func (x *Set) GetStartBranchHash() string
- func (x *Set) GetStartBranchName() string
- func (x *Set) GetState() string
- func (x *Set) GetSubmitter() string
- func (x *Set) GetTmpDir() string
- func (x *Set) GetUuid() string
- func (p *Set) HttpPost(baseURL string, route string) (*Set, *httppb.HttpRequest, error)
- func (p *Set) HttpPostVerbose(baseURL string, route string) (*Set, *httppb.HttpRequest, error)
- func (v *Set) Marshal() ([]byte, error)
- func (v *Set) MarshalJSON() ([]byte, error)
- func (pset *Set) PrintTable() string
- func (*Set) ProtoMessage()
- func (x *Set) ProtoReflect() protoreflect.Message
- func (x *Set) Reset()
- func (p *Set) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
- func (pb *Set) ShowPatchsets() error
- func (x *Set) String() string
- func (v *Set) Unmarshal(data []byte) error
- func (v *Set) UnmarshalJSON(data []byte) error
- func (v *Set) UnmarshalTEXT(data []byte) error
- type SetFunc
- type SetScanner
- type Sets
- func (x *Sets) All() *SetScanner
- func (x *Sets) Append(y *Set)
- func (x *Sets) Clone(y *Set) *Set
- func (x *Sets) Delete(y *Set) bool
- func (*Sets) Descriptor() ([]byte, []int)deprecated
- func (v *Sets) FormatJSON() string
- func (v *Sets) FormatTEXT() string
- func (x *Sets) GetFilename() string
- func (x *Sets) GetSets() []*Set
- func (x *Sets) GetUuid() string
- func (x *Sets) GetVersion() string
- func (p *Sets) HttpPost(baseURL string, route string) (*Sets, *httppb.HttpRequest, error)
- func (p *Sets) HttpPostVerbose(baseURL string, route string) (*Sets, *httppb.HttpRequest, error)
- func (x *Sets) IterAll() iter.Seq[*Set]
- func (x *Sets) Len() int
- func (pb *Sets) Load() error
- func (v *Sets) Marshal() ([]byte, error)
- func (v *Sets) MarshalJSON() ([]byte, error)
- func (x *Sets) NewTable(title string) *SetsTable
- func (pb *Sets) PrintTable()
- func (*Sets) ProtoMessage()
- func (x *Sets) ProtoReflect() protoreflect.Message
- func (x *Sets) Reset()
- func (pb *Sets) Save() error
- func (p *Sets) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
- func (x *Sets) String() string
- func (v *Sets) Unmarshal(data []byte) error
- func (v *Sets) UnmarshalJSON(data []byte) error
- func (v *Sets) UnmarshalTEXT(data []byte) error
- type SetsScanner
- type SetsTable
- func (t *SetsTable) AddButtonFunc(title string, f func(*Set) string) *SetFunc
- func (t *SetsTable) AddComment() *SetFunc
- func (t *SetsTable) AddEndBranchHash() *SetFunc
- func (t *SetsTable) AddEndBranchName() *SetFunc
- func (t *SetsTable) AddGitAuthorEmail() *SetFunc
- func (t *SetsTable) AddGitAuthorName() *SetFunc
- func (t *SetsTable) AddHostname() *SetFunc
- func (t *SetsTable) AddIntFunc(title string, f func(*Set) int) *SetFunc
- func (t *SetsTable) AddName() *SetFunc
- func (t *SetsTable) AddStartBranchHash() *SetFunc
- func (t *SetsTable) AddStartBranchName() *SetFunc
- func (t *SetsTable) AddState() *SetFunc
- func (t *SetsTable) AddStringFunc(title string, f func(*Set) string) *SetFunc
- func (t *SetsTable) AddSubmitter() *SetFunc
- func (t *SetsTable) AddTimeFunc(title string, f func(*Set) time.Time) *SetFunc
- func (t *SetsTable) AddTmpDir() *SetFunc
- func (t *SetsTable) AddUuid() *SetFunc
- func (mt *SetsTable) Custom(f func(*Set))
- func (mt *SetsTable) Delete()
- func (mt *SetsTable) GetUuid() string
- func (mt *SetsTable) MakeTable()
- func (mt *SetsTable) NewUuid()
- func (t *SetsTable) PrintTable()
- func (mt *SetsTable) SetParent(p *gui.Node)
- func (mt *SetsTable) ShowTable()
Examples ¶
Constants ¶
This section is empty.
Variables ¶
var ( ForgeMode_name = map[int32]string{ 0: "UNKNOWN", 1: "NEWUSER", 2: "MASTER", 3: "DEVEL", 4: "USER", 5: "NORMAL", 6: "CLEAN", 7: "CUSTOM", 8: "GOLANG", } ForgeMode_value = map[string]int32{ "UNKNOWN": 0, "NEWUSER": 1, "MASTER": 2, "DEVEL": 3, "USER": 4, "NORMAL": 5, "CLEAN": 6, "CUSTOM": 7, "GOLANG": 8, } )
Enum value maps for ForgeMode.
var ErrorNotAllReposOnDevel error = log.Errorf("not all repos on are on the devel branch")
var ErrorNotAllReposOnMaster error = log.Errorf("not all repos on are on the master branch")
var ErrorNotAllReposOnUser error = log.Errorf("not all repos on are on the user branch")
var File_forgeConfig_proto protoreflect.FileDescriptor
var File_patch_proto protoreflect.FileDescriptor
var File_set_proto protoreflect.FileDescriptor
var INFO *log.LogFlag
var WARN *log.LogFlag
Functions ¶
func FindGoImport ¶ added in v0.0.113
check the server for the current go path to git url mapping for example: This will check go.wit.com for "go.wit.com/apps/go-clone" and return where the URL to do git clone should be
func GetNamespace ¶ added in v0.0.111
GetNamesapce removes http://, https://, and .git suffix from the given URL if present.
func RunGitClone ¶ added in v0.0.39
git clone (also downloads git notes) newdir = helloworld basedir = /home/jcarr/go/src/go.wit.com/apps giturl = https://gitea.wit.com/gui/helloworld
func ValidGoVersion ¶ added in v0.0.44
Types ¶
type Cache ¶ added in v0.0.191
type Cache struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:21ef38cd-7564-49e4-99df-7e7e4c957e32`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // will use ~/.cache/forge/name.pb & ~/.config/forge/name.text
Dirs []string `protobuf:"bytes,4,rep,name=dirs,proto3" json:"dirs,omitempty"` // what dirs are to be scanned in for this cache.pb file
Filename string `protobuf:"bytes,5,opt,name=Filename,proto3" json:"Filename,omitempty"` // what to use for the user branch (default ENV{USER})
// contains filtered or unexported fields
}
func (*Cache) Descriptor
deprecated
added in
v0.0.191
func (*Cache) FormatJSON ¶ added in v0.0.191
human readable JSON
func (*Cache) FormatTEXT ¶ added in v0.0.191
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 (*Cache) GetFilename ¶ added in v0.0.191
func (*Cache) GetVersion ¶ added in v0.0.191
func (*Cache) MarshalJSON ¶ added in v0.0.191
marshal json
func (*Cache) ProtoMessage ¶ added in v0.0.191
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶ added in v0.0.191
func (x *Cache) ProtoReflect() protoreflect.Message
func (*Cache) UnmarshalJSON ¶ added in v0.0.191
unmarshal json
func (*Cache) UnmarshalTEXT ¶ added in v0.0.191
unmarshalTEXT. This reads the .text config file back in after the user edits it
type CacheScanner ¶ added in v0.0.191
func (*CacheScanner) Next ¶ added in v0.0.191
func (it *CacheScanner) Next() *Cache
Next() returns the next thing in the array
func (*CacheScanner) Scan ¶ added in v0.0.191
func (it *CacheScanner) Scan() bool
type Forge ¶ added in v0.0.7
type Forge struct {
Config *ForgeConfigs // config repos for readonly, private, etc
Repos *gitpb.Repos // the repo protobufs
Patches *Patches // patches that are in progress
Sets *Sets // patches that are in progress
// contains filtered or unexported fields
}
maybe an interface someday?
func InitByAppname ¶ added in v0.0.134
func InitByFullpath ¶ added in v0.0.154
func (*Forge) AddFullPath ¶ added in v0.0.36
func (*Forge) AddNamespaceDir ¶ added in v0.0.113
used by the forge daemon
func (*Forge) AddNewPatch ¶ added in v0.0.131
adds submitted patches not If the patch was actually new, return true
func (*Forge) AddPatchset ¶ added in v0.0.118
adds a patchset or just the patches
func (*Forge) CheckDirty ¶ added in v0.0.123
func (*Forge) CheckDirtyQuiet ¶ added in v0.0.125
func (f *Forge) CheckDirtyQuiet()
func (*Forge) CheckOverride ¶ added in v0.0.28
TODO: this is a dumb hack & needs to be updated to talk to forged
func (*Forge) CheckUpdatingGoDeps ¶ added in v0.0.195
checks to see if the any of the go dependancies are packages that need to be upgraded. If found, returns that conflict namespace
func (*Forge) CleanGoDepsCheckOk ¶ added in v0.0.65
checks to see if every 'master' git branch version matches the go.sum file
func (*Forge) ConfigRill ¶ added in v0.0.113
func (*Forge) DeleteByGoPath ¶ added in v0.0.37
func (*Forge) DoAllCheckoutDevel ¶ added in v0.0.123
is every repo on the devel branch?
func (*Forge) DoAllCheckoutDevelNew ¶ added in v0.0.125
func (*Forge) DoAllCheckoutMaster ¶ added in v0.0.123
trys to figure out if there is still something to update
func (*Forge) DoAllCheckoutUser ¶ added in v0.0.123
trys to figure out if there is still something to update
func (*Forge) FinalGoDepsCheckOk ¶ added in v0.0.16
DOES NOT MODIFY ANYTHING
this is a final check to make sure, before pushing a golang repo, that the go.sum file has the correct and current version of every package
it re-scans the go.sum file. DOES NOT MODIFY ANYTHING this is the last thing to run to double check everything before 'git tag' or git push --tags
func (*Forge) FindAnyPath ¶ added in v0.0.39
tries any parent
func (*Forge) GetBuildBaseTB ¶ added in v0.0.161
func (f *Forge) GetBuildBaseTB(pb *gitpb.Repos) *gitpb.ReposTable
func (*Forge) GetPackageVersion ¶ added in v0.0.161
returns
func (*Forge) GoClone ¶ added in v0.0.39
will not violate filesystem namespace always returns the path or a parent path
attemps to exec git clone based off of a golang path will transferse parent directories in case the path is a child of a git repo
returns *gitpb.Repo if already cloned
example gopath = go.wit.com/apps/go-clone or "go.googlesource.com/go/src/cmd/internal/pkgpath/" returns repo for "go.googlesource.com/go"
func (*Forge) InitPatchsets ¶ added in v0.0.127
func (*Forge) IsEverythingOnDevel ¶ added in v0.0.123
func (*Forge) IsEverythingOnMaster ¶ added in v0.0.114
func (*Forge) IsEverythingOnUser ¶ added in v0.0.123
func (*Forge) IsModeClean ¶ added in v0.0.188
func (*Forge) IsModeDevel ¶ added in v0.0.188
func (*Forge) IsModeGoLang ¶ added in v0.0.188
func (*Forge) IsModeMaster ¶ added in v0.0.188
func (*Forge) IsModeNewUser ¶ added in v0.0.188
func (*Forge) IsModeNormal ¶ added in v0.0.188
func (*Forge) IsModeUnknown ¶ added in v0.0.188
func (*Forge) IsModeUser ¶ added in v0.0.188
func (*Forge) IsPatchApplied ¶ added in v0.0.123
func (*Forge) IsWritable ¶ added in v0.0.163
move away from IsReadOnly. Only use repo.Namespace
func (*Forge) MakeDevelPatchSet ¶ added in v0.0.28
creates a patchset works from the user branches against the devel branches
func (*Forge) NormalCheckTB ¶ added in v0.0.191
func (*Forge) PrepareCheckRepo ¶ added in v0.0.157
func (*Forge) PrepareCheckRepos ¶ added in v0.0.156
func (*Forge) PrintDefaultTB ¶ added in v0.0.163
func (*Forge) PrintErrorsTB ¶ added in v0.0.198
func (*Forge) PrintGolangTB ¶ added in v0.0.193
func (*Forge) PrintPullTable ¶ added in v0.0.152
returns footer
func (*Forge) PrintTable ¶ added in v0.0.173
this is the default table layout for repos in forge
func (*Forge) RescanRepos ¶ added in v0.0.188
func (*Forge) RillFuncError ¶ added in v0.0.54
x is the size of the queued up pool (shouldn't matter here for this I think) y is how many simultanous functions will run todo: tune and compute x,y by # of CPUs and disk io todo: store x,y in forge config ? (or compute them. notsure)
func (*Forge) RillReload ¶ added in v0.0.55
rill is awesome. long live rill
x is the size of the queued up pool (shouldn't matter here for this I think) y is how many simultanous functions will run todo: tune and compute x,y by # of CPUs and disk io todo: store x,y in forge config ? (or compute them. notsure)
func (*Forge) RillRepos ¶ added in v0.0.113
x is the size of the queued up pool (shouldn't matter here for this I think) y is how many simultanous functions will run todo: tune and compute x,y by # of CPUs and disk io todo: store x,y in forge config ? (or compute them. notsure)
func (*Forge) RunOnRepos ¶ added in v0.0.158
returns the set of failed repos
func (*Forge) RunOnReposOld ¶ added in v0.0.198
func (f *Forge) RunOnReposOld(repos *gitpb.Repos, rillf func(*gitpb.Repo) error) map[string]*RillStats
x is the size of the queued up pool (shouldn't matter here for this I think) y is how many simultanous functions will run todo: tune and compute x,y by # of CPUs and disk io todo: store x,y in forge config ? (or compute them. notsure)
func (*Forge) RunOnReposSlow ¶ added in v0.0.198
dumb & slow, but needed. This is old school dumb. Before we had the awesome machines we have today. Use this if you think SMP processing might be the problem. if this works, and GO Rill doesn't work, then you, yes you, are the problem. Your code sucks. fix it, happy hacking
func (*Forge) SavePatchsets ¶ added in v0.0.118
func (*Forge) SetCleaningMode ¶ added in v0.0.192
func (f *Forge) SetCleaningMode()
indicates the user is trying to cleanup repos stays in this mode until the user leaves it should not change the repos selected
func (*Forge) SetConfigSave ¶ added in v0.0.37
func (*Forge) SetModeNewUser ¶ added in v0.0.188
func (f *Forge) SetModeNewUser()
func (*Forge) SetUserMode ¶ added in v0.0.193
func (f *Forge) SetUserMode()
func (*Forge) TestGoDepsCheckOk ¶ added in v0.0.73
func (*Forge) ValidGoVersion ¶ added in v0.0.36
golang versions MUST be vX.X.X it can not be vX.X and it also can not be v0.0.0 verifies the version is format v3.2.1 this is retardedly wrong. it needs to be done right
func (*Forge) VerifyBranchNames ¶ added in v0.0.13
this is still in flux
type ForgeConfig ¶ added in v0.0.7
type ForgeConfig struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // `autogenpb:unique` `autogenpb:sort` // Examples: 'go.wit.com/apps/go-clone' or "~/mythings" or "/home/src/foo"
Writable bool `protobuf:"varint,2,opt,name=writable,proto3" json:"writable,omitempty"` // if you have write access to the repo
ReadOnly bool `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"` // the opposite, but needed for now because I don't know what I'm doing
Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"` // if the repo can be published
Directory bool `protobuf:"varint,5,opt,name=directory,proto3" json:"directory,omitempty"` // everything in this directory should use these writable & private values
Favorite bool `protobuf:"varint,6,opt,name=favorite,proto3" json:"favorite,omitempty"` // you like this. always git clone/go clone this repo
Interesting bool `protobuf:"varint,7,opt,name=interesting,proto3" json:"interesting,omitempty"` // this is something interesting you found and want to remember it
MasterBranchName string `protobuf:"bytes,8,opt,name=masterBranchName,proto3" json:"masterBranchName,omitempty"` // git 'main' or 'master' branch name
DevelBranchName string `protobuf:"bytes,9,opt,name=develBranchName,proto3" json:"develBranchName,omitempty"` // whatever the git 'devel' branch name is
UserBranchName string `protobuf:"bytes,10,opt,name=userBranchName,proto3" json:"userBranchName,omitempty"` // whatever your username branch is
DebName string `protobuf:"bytes,11,opt,name=debName,proto3" json:"debName,omitempty"` // the actual name used with 'apt install' (or distro apt equivalent.
Verstamp *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=verstamp,proto3" json:"verstamp,omitempty"` // the git commit timestamp of the version
GoPath string `protobuf:"bytes,13,opt,name=goPath,proto3" json:"goPath,omitempty"` // deprecate
// contains filtered or unexported fields
}
func (*ForgeConfig) Descriptor
deprecated
added in
v0.0.7
func (*ForgeConfig) Descriptor() ([]byte, []int)
Deprecated: Use ForgeConfig.ProtoReflect.Descriptor instead.
func (*ForgeConfig) GetDebName ¶ added in v0.0.7
func (x *ForgeConfig) GetDebName() string
func (*ForgeConfig) GetDevelBranchName ¶ added in v0.0.7
func (x *ForgeConfig) GetDevelBranchName() string
func (*ForgeConfig) GetDirectory ¶ added in v0.0.7
func (x *ForgeConfig) GetDirectory() bool
func (*ForgeConfig) GetFavorite ¶ added in v0.0.7
func (x *ForgeConfig) GetFavorite() bool
func (*ForgeConfig) GetGoPath ¶ added in v0.0.7
func (x *ForgeConfig) GetGoPath() string
func (*ForgeConfig) GetInteresting ¶ added in v0.0.7
func (x *ForgeConfig) GetInteresting() bool
func (*ForgeConfig) GetMasterBranchName ¶ added in v0.0.7
func (x *ForgeConfig) GetMasterBranchName() string
func (*ForgeConfig) GetNamespace ¶ added in v0.0.123
func (x *ForgeConfig) GetNamespace() string
func (*ForgeConfig) GetPrivate ¶ added in v0.0.7
func (x *ForgeConfig) GetPrivate() bool
func (*ForgeConfig) GetReadOnly ¶ added in v0.0.7
func (x *ForgeConfig) GetReadOnly() bool
func (*ForgeConfig) GetUserBranchName ¶ added in v0.0.7
func (x *ForgeConfig) GetUserBranchName() string
func (*ForgeConfig) GetVerstamp ¶ added in v0.0.7
func (x *ForgeConfig) GetVerstamp() *timestamppb.Timestamp
func (*ForgeConfig) GetWritable ¶ added in v0.0.7
func (x *ForgeConfig) GetWritable() bool
func (*ForgeConfig) ProtoMessage ¶ added in v0.0.7
func (*ForgeConfig) ProtoMessage()
func (*ForgeConfig) ProtoReflect ¶ added in v0.0.7
func (x *ForgeConfig) ProtoReflect() protoreflect.Message
func (*ForgeConfig) Reset ¶ added in v0.0.7
func (x *ForgeConfig) Reset()
func (*ForgeConfig) String ¶ added in v0.0.7
func (x *ForgeConfig) String() string
type ForgeConfigFunc ¶ added in v0.0.182
type ForgeConfigFunc struct {
Custom func(*ForgeConfig)
Width int
Attr *guipb.ColAttr
Header *guipb.Widget
// contains filtered or unexported fields
}
func (*ForgeConfigFunc) SetTitle ¶ added in v0.0.182
func (sf *ForgeConfigFunc) SetTitle(title string)
type ForgeConfigScanner ¶ added in v0.0.104
func (*ForgeConfigScanner) Next ¶ added in v0.0.104
func (it *ForgeConfigScanner) Next() *ForgeConfig
Next() returns the next thing in the array
func (*ForgeConfigScanner) Scan ¶ added in v0.0.104
func (it *ForgeConfigScanner) Scan() bool
type ForgeConfigs ¶ added in v0.0.7
type ForgeConfigs struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:1941cd4f-1cfd-4bf6-aa75-c2c391907e81`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.48`
ForgeConfigs []*ForgeConfig `protobuf:"bytes,3,rep,name=ForgeConfigs,proto3" json:"ForgeConfigs,omitempty"`
Filename string `protobuf:"bytes,4,opt,name=Filename,proto3" json:"Filename,omitempty"` // what to use for the user branch (default ENV{USER})
Caches []*Cache `protobuf:"bytes,5,rep,name=caches,proto3" json:"caches,omitempty"` // cache config files
// contains filtered or unexported fields
}
func NewForgeConfigs ¶ added in v0.0.48
func NewForgeConfigs() *ForgeConfigs
func (*ForgeConfigs) All ¶ added in v0.0.7
func (x *ForgeConfigs) All() *ForgeConfigScanner
func (*ForgeConfigs) Append ¶ added in v0.0.7
func (x *ForgeConfigs) Append(y *ForgeConfig)
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*ForgeConfigs) AppendByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) AppendByNamespace(y *ForgeConfig) bool
func (*ForgeConfigs) Clone ¶ added in v0.0.177
func (x *ForgeConfigs) Clone(y *ForgeConfig) *ForgeConfig
a Clone() shortcut (with a mutex). notsure if it really works
func (*ForgeConfigs) CloneByNamespace ¶ added in v0.0.177
func (x *ForgeConfigs) CloneByNamespace(y *ForgeConfig) bool
func (*ForgeConfigs) DebName ¶ added in v0.0.23
func (fc *ForgeConfigs) DebName(namespace string) string
returns the deb package name this let's you check a git tag version against a package .deb version allows namespace's to not need to match the .deb name this is important in lots of cases! It is normal and happens often enough.
func (*ForgeConfigs) Delete ¶ added in v0.0.61
func (x *ForgeConfigs) Delete(y *ForgeConfig) bool
func (*ForgeConfigs) DeleteByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) DeleteByNamespace(s string) bool
func (*ForgeConfigs) Descriptor
deprecated
added in
v0.0.7
func (*ForgeConfigs) Descriptor() ([]byte, []int)
Deprecated: Use ForgeConfigs.ProtoReflect.Descriptor instead.
func (*ForgeConfigs) FindByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) FindByNamespace(s string) *ForgeConfig
lookup a ForgeConfigs by the Namespace
func (*ForgeConfigs) FindDevelBranch ¶ added in v0.0.43
func (fc *ForgeConfigs) FindDevelBranch(thing string) string
allows custom devel branch names in the forge config
func (*ForgeConfigs) FindMasterBranch ¶ added in v0.0.43
func (fc *ForgeConfigs) FindMasterBranch(thing string) string
allows custom devel branch names in the forge config
func (*ForgeConfigs) FindUserBranch ¶ added in v0.0.41
func (fc *ForgeConfigs) FindUserBranch(thing string) string
allows custom user branch names in the forge config
func (*ForgeConfigs) FormatJSON ¶ added in v0.0.7
func (v *ForgeConfigs) FormatJSON() string
human readable JSON
func (*ForgeConfigs) FormatTEXT ¶ added in v0.0.7
func (v *ForgeConfigs) 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 (*ForgeConfigs) GetCaches ¶ added in v0.0.191
func (x *ForgeConfigs) GetCaches() []*Cache
func (*ForgeConfigs) GetFilename ¶ added in v0.0.134
func (x *ForgeConfigs) GetFilename() string
func (*ForgeConfigs) GetForgeConfigs ¶ added in v0.0.7
func (x *ForgeConfigs) GetForgeConfigs() []*ForgeConfig
func (*ForgeConfigs) GetUuid ¶ added in v0.0.7
func (x *ForgeConfigs) GetUuid() string
func (*ForgeConfigs) GetVersion ¶ added in v0.0.7
func (x *ForgeConfigs) GetVersion() string
func (*ForgeConfigs) InsertByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) InsertByNamespace(y string) *ForgeConfig
returns a ForgeConfig if Namespace matches, otherwise create
func (*ForgeConfigs) IsFavorite ¶ added in v0.0.23
func (fc *ForgeConfigs) IsFavorite(thing string) bool
IsFavorite() -- fun option for the config file that lets you set things as favorites so you can just go-clone a bunch of common things on a new box or after you reset/delete your ~/go/src dir
func (*ForgeConfigs) IsPrivate ¶ added in v0.0.23
func (fc *ForgeConfigs) IsPrivate(thing string) bool
is this a non-publishable repo? matches package names from apt
IsPrivate("foo") will match anything in the config file ending in "foo"
IsPrivate("go.foo.com/jcarr/foo") returns true if private IsPrivate("foo") also returns true if "go.bar.com/jcarr/foo" is private
func (*ForgeConfigs) IsReadOnly ¶ added in v0.0.19
func (fc *ForgeConfigs) IsReadOnly(namespace string) bool
returns true if namespace is readonly() will attempt to match IsWritable("foo") against anything ending in "foo"
func (*ForgeConfigs) IsWritable ¶ added in v0.0.23
func (fc *ForgeConfigs) IsWritable(thing string) bool
IsWritable() checks your .config/forge/ settings looks for an exact match, then looks for a directory match
func (*ForgeConfigs) IterAll ¶ added in v0.0.101
func (x *ForgeConfigs) IterAll() iter.Seq[*ForgeConfig]
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*ForgeConfigs) IterByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) IterByNamespace() iter.Seq[*ForgeConfig]
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*ForgeConfigs) Len ¶ added in v0.0.7
func (x *ForgeConfigs) Len() int
func (*ForgeConfigs) MakeTable ¶ added in v0.0.182
func (pb *ForgeConfigs) MakeTable() *ForgeConfigsTable
func (*ForgeConfigs) Marshal ¶ added in v0.0.7
func (v *ForgeConfigs) Marshal() ([]byte, error)
marshal to wire. This is called winning.
func (*ForgeConfigs) MarshalJSON ¶ added in v0.0.7
func (v *ForgeConfigs) MarshalJSON() ([]byte, error)
marshal json
func (*ForgeConfigs) NewTable ¶ added in v0.0.182
func (x *ForgeConfigs) NewTable(title string) *ForgeConfigsTable
func (*ForgeConfigs) PrintTable ¶ added in v0.0.182
func (pb *ForgeConfigs) PrintTable() string
returns footer
func (*ForgeConfigs) ProtoMessage ¶ added in v0.0.7
func (*ForgeConfigs) ProtoMessage()
func (*ForgeConfigs) ProtoReflect ¶ added in v0.0.7
func (x *ForgeConfigs) ProtoReflect() protoreflect.Message
func (*ForgeConfigs) Reset ¶ added in v0.0.7
func (x *ForgeConfigs) Reset()
func (*ForgeConfigs) SortByNamespace ¶ added in v0.0.123
func (x *ForgeConfigs) SortByNamespace() *ForgeConfigScanner
func (*ForgeConfigs) SortNamespace ¶ added in v0.0.174
func (pb *ForgeConfigs) SortNamespace()
func (*ForgeConfigs) String ¶ added in v0.0.7
func (x *ForgeConfigs) String() string
func (*ForgeConfigs) Unmarshal ¶ added in v0.0.7
func (v *ForgeConfigs) Unmarshal(data []byte) error
unmarshal from wire. You have won.
func (*ForgeConfigs) UnmarshalJSON ¶ added in v0.0.7
func (v *ForgeConfigs) UnmarshalJSON(data []byte) error
unmarshal json
func (*ForgeConfigs) UnmarshalTEXT ¶ added in v0.0.7
func (v *ForgeConfigs) UnmarshalTEXT(data []byte) error
unmarshalTEXT. This reads the .text config file back in after the user edits it
type ForgeConfigsScanner ¶ added in v0.0.104
func (*ForgeConfigsScanner) Next ¶ added in v0.0.104
func (it *ForgeConfigsScanner) Next() *ForgeConfigs
Next() returns the next thing in the array
func (*ForgeConfigsScanner) Scan ¶ added in v0.0.104
func (it *ForgeConfigsScanner) Scan() bool
type ForgeConfigsTable ¶ added in v0.0.182
type ForgeConfigsTable struct {
Funcs []*ForgeConfigFunc
CustomFunc func(*ForgeConfig)
// contains filtered or unexported fields
}
func (*ForgeConfigsTable) AddButtonFunc ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddButtonFunc(title string, f func(*ForgeConfig) string) *ForgeConfigFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ForgeConfigsTable) AddDebName ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddDebName() *ForgeConfigFunc
func (*ForgeConfigsTable) AddDevelBranchName ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddDevelBranchName() *ForgeConfigFunc
func (*ForgeConfigsTable) AddGoPath ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddGoPath() *ForgeConfigFunc
func (*ForgeConfigsTable) AddIntFunc ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddIntFunc(title string, f func(*ForgeConfig) int) *ForgeConfigFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ForgeConfigsTable) AddMasterBranchName ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddMasterBranchName() *ForgeConfigFunc
func (*ForgeConfigsTable) AddNamespace ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddNamespace() *ForgeConfigFunc
func (*ForgeConfigsTable) AddStringFunc ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddStringFunc(title string, f func(*ForgeConfig) string) *ForgeConfigFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ForgeConfigsTable) AddTimeFunc ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddTimeFunc(title string, f func(*ForgeConfig) time.Time) *ForgeConfigFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*ForgeConfigsTable) AddUserBranchName ¶ added in v0.0.182
func (t *ForgeConfigsTable) AddUserBranchName() *ForgeConfigFunc
func (*ForgeConfigsTable) Custom ¶ added in v0.0.182
func (mt *ForgeConfigsTable) Custom(f func(*ForgeConfig))
func (*ForgeConfigsTable) Delete ¶ added in v0.0.182
func (mt *ForgeConfigsTable) Delete()
func (*ForgeConfigsTable) GetUuid ¶ added in v0.0.182
func (mt *ForgeConfigsTable) GetUuid() string
func (*ForgeConfigsTable) MakeTable ¶ added in v0.0.182
func (mt *ForgeConfigsTable) MakeTable()
func (*ForgeConfigsTable) NewUuid ¶ added in v0.0.182
func (mt *ForgeConfigsTable) NewUuid()
func (*ForgeConfigsTable) PrintTable ¶ added in v0.0.182
func (t *ForgeConfigsTable) PrintTable()
formats & prints the table as text to Stdout. a real timesaver!
func (*ForgeConfigsTable) SetParent ¶ added in v0.0.182
func (mt *ForgeConfigsTable) SetParent(p *gui.Node)
func (*ForgeConfigsTable) ShowTable ¶ added in v0.0.182
func (mt *ForgeConfigsTable) ShowTable()
type ForgeMode ¶ added in v0.0.93
type ForgeMode int32
const ( ForgeMode_UNKNOWN ForgeMode = 0 // ForgeMode_NEWUSER ForgeMode = 1 // ForgeMode_MASTER ForgeMode = 2 // "release mode" ForgeMode_DEVEL ForgeMode = 3 // "patch mode" ForgeMode_USER ForgeMode = 4 // "work mode" ForgeMode_NORMAL ForgeMode = 5 // "normal mode" // use this when you are developing code ForgeMode_CLEAN ForgeMode = 6 // indicates "clean" was run ForgeMode_CUSTOM ForgeMode = 7 // reads config settings from a user defined directory ForgeMode_GOLANG ForgeMode = 8 // restricts repos to ~/go/src or a go.work directory )
func (ForgeMode) Descriptor ¶ added in v0.0.93
func (ForgeMode) Descriptor() protoreflect.EnumDescriptor
func (ForgeMode) EnumDescriptor
deprecated
added in
v0.0.93
func (ForgeMode) Number ¶ added in v0.0.93
func (x ForgeMode) Number() protoreflect.EnumNumber
func (ForgeMode) Type ¶ added in v0.0.93
func (ForgeMode) Type() protoreflect.EnumType
type Module ¶ added in v0.0.8
type Module struct {
Path string // module path
Query string // version query corresponding to this version
Version string // module version
Versions []string // available module versions
Replace *Module // replaced by this module
Time *time.Time // time version was created
Update *Module // available update (with -u)
Main bool // is this the main module?
Indirect bool // module is only indirectly needed by main module
Dir string // directory holding local copy of files, if any
GoMod string // path to go.mod file describing module, if any
GoVersion string // go version used in module
Retracted []string // retraction information, if any (with -retracted or -u)
Deprecated string // deprecation message, if any (with -u)
Error *ModuleError // error loading module
Sum string // checksum for path, version (as in go.sum)
GoModSum string // checksum for go.mod (as in go.sum)
Reuse bool // reuse of old module info is safe
Origin Origin
}
type ModuleError ¶ added in v0.0.8
type ModuleError struct {
Err string // the error itself
}
type Origin ¶ added in v0.0.8
type Origin struct {
VCS string `json:",omitempty"` // "git" etc
URL string `json:",omitempty"` // URL of repository
Subdir string `json:",omitempty"` // subdirectory in repo
Hash string `json:",omitempty"` // commit hash or ID
// If TagSum is non-empty, then the resolution of this module version
// depends on the set of tags present in the repo, specifically the tags
// of the form TagPrefix + a valid semver version.
// If the matching repo tags and their commit hashes still hash to TagSum,
// the Origin is still valid (at least as far as the tags are concerned).
// The exact checksum is up to the Repo implementation; see (*gitRepo).Tags.
TagPrefix string `json:",omitempty"`
TagSum string `json:",omitempty"`
// If Ref is non-empty, then the resolution of this module version
// depends on Ref resolving to the revision identified by Hash.
// If Ref still resolves to Hash, the Origin is still valid (at least as far as Ref is concerned).
// For Git, the Ref is a full ref like "refs/heads/main" or "refs/tags/v1.2.3",
// and the Hash is the Git object hash the ref maps to.
// Other VCS might choose differently, but the idea is that Ref is the name
// with a mutable meaning while Hash is a name with an immutable meaning.
Ref string `json:",omitempty"`
// If RepoSum is non-empty, then the resolution of this module version
// failed due to the repo being available but the version not being present.
// This depends on the entire state of the repo, which RepoSum summarizes.
// For Git, this is a hash of all the refs and their hashes.
RepoSum string `json:",omitempty"`
}
An Origin describes the provenance of a given repo method result. It can be passed to CheckReuse (usually in a different go command invocation) to see whether the result remains up-to-date.
type Patch ¶ added in v0.0.28
type Patch struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // the base repo git namespace
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // the raw data of the whole patch
GH string `protobuf:"bytes,3,opt,name=gH,proto3" json:"gH,omitempty"` // Commit Hash (%H)
GT string `protobuf:"bytes,4,opt,name=gT,proto3" json:"gT,omitempty"` // Tree Hash (%T)
GP string `protobuf:"bytes,5,opt,name=gP,proto3" json:"gP,omitempty"` // Parent Hashes (%P)
Gs string `protobuf:"bytes,6,opt,name=gs,proto3" json:"gs,omitempty"` // Subject (%s)
GaI string `protobuf:"bytes,7,opt,name=gaI,proto3" json:"gaI,omitempty"` // Author Date, ISO 8601 format (%aI)
Gan string `protobuf:"bytes,8,opt,name=gan,proto3" json:"gan,omitempty"` // Author Name (%an)
Gae string `protobuf:"bytes,9,opt,name=gae,proto3" json:"gae,omitempty"` // Author Email (%ae)
GcI string `protobuf:"bytes,10,opt,name=gcI,proto3" json:"gcI,omitempty"` // Committer Date, ISO 8601 format (%cI)
Gcn string `protobuf:"bytes,11,opt,name=gcn,proto3" json:"gcn,omitempty"` // Committer Name (%cn)
Gce string `protobuf:"bytes,12,opt,name=gce,proto3" json:"gce,omitempty"` // Committer Email (%ce)
GN string `protobuf:"bytes,13,opt,name=gN,proto3" json:"gN,omitempty"` // Commit Notes (%N)
GGG string `protobuf:"bytes,14,opt,name=gGG,proto3" json:"gGG,omitempty"` // GPG Signature, raw (%GG)
GGS string `protobuf:"bytes,15,opt,name=gGS,proto3" json:"gGS,omitempty"` // GPG Signer Name (%GS)
GGK string `protobuf:"bytes,16,opt,name=gGK,proto3" json:"gGK,omitempty"` // GPG Key ID (%GK)
NewHash string `protobuf:"bytes,17,opt,name=newHash,proto3" json:"newHash,omitempty"` // new hash
State string `protobuf:"bytes,18,opt,name=state,proto3" json:"state,omitempty"` // the 'state' of the patch
Filename string `protobuf:"bytes,19,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:unique` `autogenpb:sort`
StartHash string `protobuf:"bytes,20,opt,name=startHash,proto3" json:"startHash,omitempty"` // the start commit hash
CommitHash string `protobuf:"bytes,21,opt,name=commitHash,proto3" json:"commitHash,omitempty"` // the git commit hash of this patch `autogenpb:sort` `autogenpb:unique`
Comment string `protobuf:"bytes,22,opt,name=comment,proto3" json:"comment,omitempty"` // the git commit message (in patch form)
Files []string `protobuf:"bytes,23,rep,name=Files,proto3" json:"Files,omitempty"` // the filenames this patch changes
Ctime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=ctime,proto3" json:"ctime,omitempty"` // create time of the patch
Applied bool `protobuf:"varint,25,opt,name=applied,proto3" json:"applied,omitempty"` // have you applied this patch?
Upstream bool `protobuf:"varint,26,opt,name=upstream,proto3" json:"upstream,omitempty"` // has this patch been applied upstream?
PatchId string `protobuf:"bytes,27,opt,name=patchId,proto3" json:"patchId,omitempty"` // patchId `autogenpb:unique`
TreeHash string `protobuf:"bytes,28,opt,name=treeHash,proto3" json:"treeHash,omitempty"` // final tree Hash
StateChange string `protobuf:"bytes,29,opt,name=stateChange,proto3" json:"stateChange,omitempty"` // more weird stuff
// contains filtered or unexported fields
}
func (*Patch) Descriptor
deprecated
added in
v0.0.28
func (*Patch) GetApplied ¶ added in v0.0.98
func (*Patch) GetComment ¶ added in v0.0.63
func (*Patch) GetCommitHash ¶ added in v0.0.43
func (*Patch) GetCtime ¶ added in v0.0.28
func (x *Patch) GetCtime() *timestamppb.Timestamp
func (*Patch) GetFilename ¶ added in v0.0.28
func (*Patch) GetNamespace ¶ added in v0.0.116
func (*Patch) GetNewHash ¶ added in v0.0.63
func (*Patch) GetPatchId ¶ added in v0.0.143
func (*Patch) GetStartHash ¶ added in v0.0.43
func (*Patch) GetStateChange ¶ added in v0.0.178
func (*Patch) GetTreeHash ¶ added in v0.0.143
func (*Patch) GetUpstream ¶ added in v0.0.98
func (*Patch) ProtoMessage ¶ added in v0.0.28
func (*Patch) ProtoMessage()
func (*Patch) ProtoReflect ¶ added in v0.0.28
func (x *Patch) ProtoReflect() protoreflect.Message
type PatchFunc ¶ added in v0.0.161
type PatchScanner ¶ added in v0.0.104
func (*PatchScanner) Next ¶ added in v0.0.104
func (it *PatchScanner) Next() *Patch
Next() returns the next thing in the array
func (*PatchScanner) Scan ¶ added in v0.0.104
func (it *PatchScanner) Scan() bool
type Patches ¶ added in v0.0.47
type Patches struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:2679065e-c81d-4a00-aca4-03c158a834fb`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v2.0.0`
Patches []*Patch `protobuf:"bytes,3,rep,name=patches,proto3" json:"patches,omitempty"`
Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
Errors string `protobuf:"bytes,5,opt,name=Errors,proto3" json:"Errors,omitempty"` // `autogenpb:error`
// contains filtered or unexported fields
}
this is a "PATCH: 1/x" series
func NewPatches ¶ added in v0.0.116
func NewPatches() *Patches
func (*Patches) All ¶ added in v0.0.47
func (x *Patches) All() *PatchScanner
func (*Patches) Append ¶ added in v0.0.47
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*Patches) AppendByCommitHash ¶ added in v0.0.103
func (*Patches) AppendByFilename ¶ added in v0.0.47
func (*Patches) AppendByPatchId ¶ added in v0.0.148
func (*Patches) Clone ¶ added in v0.0.177
a Clone() shortcut (with a mutex). notsure if it really works
func (*Patches) CloneByCommitHash ¶ added in v0.0.177
func (*Patches) CloneByFilename ¶ added in v0.0.177
func (*Patches) CloneByPatchId ¶ added in v0.0.177
func (*Patches) DeleteByCommitHash ¶ added in v0.0.103
func (*Patches) DeleteByFilename ¶ added in v0.0.47
func (*Patches) DeleteByPatchId ¶ added in v0.0.148
func (*Patches) Descriptor
deprecated
added in
v0.0.47
func (*Patches) FindByCommitHash ¶ added in v0.0.103
lookup a Patches by the CommitHash
func (*Patches) FindByFilename ¶ added in v0.0.47
lookup a Patches by the Filename
func (*Patches) FindByPatchId ¶ added in v0.0.148
lookup a Patches by the PatchId
func (*Patches) FormatJSON ¶ added in v0.0.47
human readable JSON
func (*Patches) FormatTEXT ¶ added in v0.0.47
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 (*Patches) GetFilename ¶ added in v0.0.169
func (*Patches) GetPatches ¶ added in v0.0.47
func (*Patches) GetVersion ¶ added in v0.0.47
func (*Patches) HttpPost ¶ added in v0.0.128
Marshal protobuf, then http POST, then Unmarshal() to protobuf again
func (*Patches) HttpPostVerbose ¶ added in v0.0.128
func (*Patches) InsertByCommitHash ¶ added in v0.0.103
returns a Patch if CommitHash matches, otherwise create
func (*Patches) InsertByFilename ¶ added in v0.0.97
returns a Patch if Filename matches, otherwise create
func (*Patches) InsertByPatchId ¶ added in v0.0.148
returns a Patch if PatchId matches, otherwise create
func (*Patches) IterAll ¶ added in v0.0.101
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Patches) IterByCommitHash ¶ added in v0.0.103
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Patches) IterByFilename ¶ added in v0.0.101
'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Patches) MakeTable ¶ added in v0.0.169
func (pb *Patches) MakeTable() *PatchesTable
func (*Patches) MarshalJSON ¶ added in v0.0.47
marshal json
func (*Patches) NewTable ¶ added in v0.0.97
func (x *Patches) NewTable(title string) *PatchesTable
func (*Patches) PrintTable ¶ added in v0.0.127
returns footer
func (*Patches) ProtoMessage ¶ added in v0.0.47
func (*Patches) ProtoMessage()
func (*Patches) ProtoReflect ¶ added in v0.0.47
func (x *Patches) ProtoReflect() protoreflect.Message
func (*Patches) SendReply ¶ added in v0.0.131
func (p *Patches) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
func (*Patches) SortByCommitHash ¶ added in v0.0.103
func (x *Patches) SortByCommitHash() *PatchScanner
func (*Patches) SortByFilename ¶ added in v0.0.47
func (x *Patches) SortByFilename() *PatchScanner
func (*Patches) SortCommitHash ¶ added in v0.0.174
func (pb *Patches) SortCommitHash()
func (*Patches) SortFilename ¶ added in v0.0.174
func (pb *Patches) SortFilename()
func (*Patches) UnmarshalJSON ¶ added in v0.0.47
unmarshal json
func (*Patches) UnmarshalTEXT ¶ added in v0.0.47
unmarshalTEXT. This reads the .text config file back in after the user edits it
type PatchesScanner ¶ added in v0.0.104
func (*PatchesScanner) Next ¶ added in v0.0.104
func (it *PatchesScanner) Next() *Patches
Next() returns the next thing in the array
func (*PatchesScanner) Scan ¶ added in v0.0.104
func (it *PatchesScanner) Scan() bool
type PatchesTable ¶ added in v0.0.97
type PatchesTable struct {
Funcs []*PatchFunc
CustomFunc func(*Patch)
// contains filtered or unexported fields
}
func (*PatchesTable) AddButtonFunc ¶ added in v0.0.97
func (t *PatchesTable) AddButtonFunc(title string, f func(*Patch) string) *PatchFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*PatchesTable) AddComment ¶ added in v0.0.97
func (t *PatchesTable) AddComment() *PatchFunc
func (*PatchesTable) AddCommitHash ¶ added in v0.0.97
func (t *PatchesTable) AddCommitHash() *PatchFunc
func (*PatchesTable) AddFilename ¶ added in v0.0.97
func (t *PatchesTable) AddFilename() *PatchFunc
func (*PatchesTable) AddGGG ¶ added in v0.0.97
func (t *PatchesTable) AddGGG() *PatchFunc
func (*PatchesTable) AddGGK ¶ added in v0.0.97
func (t *PatchesTable) AddGGK() *PatchFunc
func (*PatchesTable) AddGGS ¶ added in v0.0.97
func (t *PatchesTable) AddGGS() *PatchFunc
func (*PatchesTable) AddGH ¶ added in v0.0.97
func (t *PatchesTable) AddGH() *PatchFunc
func (*PatchesTable) AddGN ¶ added in v0.0.97
func (t *PatchesTable) AddGN() *PatchFunc
func (*PatchesTable) AddGP ¶ added in v0.0.97
func (t *PatchesTable) AddGP() *PatchFunc
func (*PatchesTable) AddGT ¶ added in v0.0.97
func (t *PatchesTable) AddGT() *PatchFunc
func (*PatchesTable) AddGaI ¶ added in v0.0.97
func (t *PatchesTable) AddGaI() *PatchFunc
func (*PatchesTable) AddGae ¶ added in v0.0.97
func (t *PatchesTable) AddGae() *PatchFunc
func (*PatchesTable) AddGan ¶ added in v0.0.97
func (t *PatchesTable) AddGan() *PatchFunc
func (*PatchesTable) AddGcI ¶ added in v0.0.97
func (t *PatchesTable) AddGcI() *PatchFunc
func (*PatchesTable) AddGce ¶ added in v0.0.97
func (t *PatchesTable) AddGce() *PatchFunc
func (*PatchesTable) AddGcn ¶ added in v0.0.97
func (t *PatchesTable) AddGcn() *PatchFunc
func (*PatchesTable) AddGs ¶ added in v0.0.97
func (t *PatchesTable) AddGs() *PatchFunc
func (*PatchesTable) AddIntFunc ¶ added in v0.0.97
func (t *PatchesTable) AddIntFunc(title string, f func(*Patch) int) *PatchFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*PatchesTable) AddNamespace ¶ added in v0.0.116
func (t *PatchesTable) AddNamespace() *PatchFunc
func (*PatchesTable) AddNewHash ¶ added in v0.0.97
func (t *PatchesTable) AddNewHash() *PatchFunc
func (*PatchesTable) AddPatchId ¶ added in v0.0.143
func (t *PatchesTable) AddPatchId() *PatchFunc
func (*PatchesTable) AddStartHash ¶ added in v0.0.97
func (t *PatchesTable) AddStartHash() *PatchFunc
func (*PatchesTable) AddState ¶ added in v0.0.97
func (t *PatchesTable) AddState() *PatchFunc
func (*PatchesTable) AddStateChange ¶ added in v0.0.178
func (t *PatchesTable) AddStateChange() *PatchFunc
func (*PatchesTable) AddStringFunc ¶ added in v0.0.97
func (t *PatchesTable) AddStringFunc(title string, f func(*Patch) string) *PatchFunc
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*PatchesTable) AddTimeFunc ¶ added in v0.0.97
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*PatchesTable) AddTreeHash ¶ added in v0.0.143
func (t *PatchesTable) AddTreeHash() *PatchFunc
func (*PatchesTable) Custom ¶ added in v0.0.97
func (mt *PatchesTable) Custom(f func(*Patch))
func (*PatchesTable) Delete ¶ added in v0.0.97
func (mt *PatchesTable) Delete()
func (*PatchesTable) GetUuid ¶ added in v0.0.97
func (mt *PatchesTable) GetUuid() string
func (*PatchesTable) MakeTable ¶ added in v0.0.97
func (mt *PatchesTable) MakeTable()
func (*PatchesTable) NewUuid ¶ added in v0.0.97
func (mt *PatchesTable) NewUuid()
func (*PatchesTable) PrintTable ¶ added in v0.0.147
func (t *PatchesTable) PrintTable()
formats & prints the table as text to Stdout. a real timesaver!
func (*PatchesTable) SetParent ¶ added in v0.0.97
func (mt *PatchesTable) SetParent(p *gui.Node)
func (*PatchesTable) ShowTable ¶ added in v0.0.97
func (mt *PatchesTable) ShowTable()
type Set ¶ added in v0.0.147
type Set struct {
Patches *Patches `protobuf:"bytes,1,opt,name=patches,proto3" json:"patches,omitempty"`
Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
Ctime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ctime,proto3" json:"ctime,omitempty"` // when the patches were submitted
Submitter string `protobuf:"bytes,4,opt,name=submitter,proto3" json:"submitter,omitempty"` // who submitted these // deprecate this
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // "fixes for foo"
GitAuthorName string `protobuf:"bytes,6,opt,name=gitAuthorName,proto3" json:"gitAuthorName,omitempty"`
GitAuthorEmail string `protobuf:"bytes,7,opt,name=gitAuthorEmail,proto3" json:"gitAuthorEmail,omitempty"`
Hostname string `protobuf:"bytes,8,opt,name=hostname,proto3" json:"hostname,omitempty"`
TmpDir string `protobuf:"bytes,9,opt,name=tmpDir,proto3" json:"tmpDir,omitempty"` // temp dir for 'git am' deprecate this
StartBranchName string `protobuf:"bytes,10,opt,name=startBranchName,proto3" json:"startBranchName,omitempty"` // deprecate this
EndBranchName string `protobuf:"bytes,11,opt,name=endBranchName,proto3" json:"endBranchName,omitempty"` // deprecate this
StartBranchHash string `protobuf:"bytes,12,opt,name=startBranchHash,proto3" json:"startBranchHash,omitempty"` // deprecate this
EndBranchHash string `protobuf:"bytes,13,opt,name=endBranchHash,proto3" json:"endBranchHash,omitempty"` // deprecate this
Comment string `protobuf:"bytes,14,opt,name=comment,proto3" json:"comment,omitempty"` // deprecate this
State string `protobuf:"bytes,15,opt,name=state,proto3" json:"state,omitempty"` // deprecate this
// contains filtered or unexported fields
}
func (*Set) Descriptor
deprecated
added in
v0.0.147
func (*Set) FormatTEXT ¶ added in v0.0.147
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 (*Set) GetComment ¶ added in v0.0.147
func (*Set) GetCtime ¶ added in v0.0.147
func (x *Set) GetCtime() *timestamppb.Timestamp
func (*Set) GetEndBranchHash ¶ added in v0.0.147
func (*Set) GetEndBranchName ¶ added in v0.0.147
func (*Set) GetGitAuthorEmail ¶ added in v0.0.147
func (*Set) GetGitAuthorName ¶ added in v0.0.147
func (*Set) GetHostname ¶ added in v0.0.147
func (*Set) GetPatches ¶ added in v0.0.147
func (*Set) GetStartBranchHash ¶ added in v0.0.147
func (*Set) GetStartBranchName ¶ added in v0.0.147
func (*Set) GetSubmitter ¶ added in v0.0.147
func (*Set) HttpPost ¶ added in v0.0.147
Marshal protobuf, then http POST, then Unmarshal() to protobuf again
func (*Set) HttpPostVerbose ¶ added in v0.0.147
func (*Set) MarshalJSON ¶ added in v0.0.147
marshal json
func (*Set) ProtoMessage ¶ added in v0.0.147
func (*Set) ProtoMessage()
func (*Set) ProtoReflect ¶ added in v0.0.147
func (x *Set) ProtoReflect() protoreflect.Message
func (*Set) SendReply ¶ added in v0.0.147
func (p *Set) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
func (*Set) ShowPatchsets ¶ added in v0.0.147
func (*Set) UnmarshalJSON ¶ added in v0.0.147
unmarshal json
func (*Set) UnmarshalTEXT ¶ added in v0.0.147
unmarshalTEXT. This reads the .text config file back in after the user edits it
type SetFunc ¶ added in v0.0.161
type SetScanner ¶ added in v0.0.147
func (*SetScanner) Next ¶ added in v0.0.147
func (it *SetScanner) Next() *Set
Next() returns the next thing in the array
func (*SetScanner) Scan ¶ added in v0.0.147
func (it *SetScanner) Scan() bool
type Sets ¶ added in v0.0.147
type Sets struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:be926ad9-f07f-484c-adf2-d96eeabf3079`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.45`
Sets []*Set `protobuf:"bytes,3,rep,name=sets,proto3" json:"sets,omitempty"`
Filename string `protobuf:"bytes,4,opt,name=Filename,proto3" json:"Filename,omitempty"` // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
// contains filtered or unexported fields
}
func (*Sets) All ¶ added in v0.0.147
func (x *Sets) All() *SetScanner
func (*Sets) Append ¶ added in v0.0.147
a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil
func (*Sets) Clone ¶ added in v0.0.177
a Clone() shortcut (with a mutex). notsure if it really works
func (*Sets) Descriptor
deprecated
added in
v0.0.147
func (*Sets) FormatTEXT ¶ added in v0.0.147
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 (*Sets) GetFilename ¶ added in v0.0.169
func (*Sets) GetVersion ¶ added in v0.0.147
func (*Sets) HttpPost ¶ added in v0.0.147
Marshal protobuf, then http POST, then Unmarshal() to protobuf again
func (*Sets) HttpPostVerbose ¶ added in v0.0.147
func (*Sets) IterAll ¶ added in v0.0.147
Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'
func (*Sets) MarshalJSON ¶ added in v0.0.147
marshal json
func (*Sets) PrintTable ¶ added in v0.0.147
func (pb *Sets) PrintTable()
func (*Sets) ProtoMessage ¶ added in v0.0.147
func (*Sets) ProtoMessage()
func (*Sets) ProtoReflect ¶ added in v0.0.147
func (x *Sets) ProtoReflect() protoreflect.Message
func (*Sets) SendReply ¶ added in v0.0.147
func (p *Sets) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error
func (*Sets) UnmarshalJSON ¶ added in v0.0.147
unmarshal json
func (*Sets) UnmarshalTEXT ¶ added in v0.0.147
unmarshalTEXT. This reads the .text config file back in after the user edits it
type SetsScanner ¶ added in v0.0.147
func (*SetsScanner) Next ¶ added in v0.0.147
func (it *SetsScanner) Next() *Sets
Next() returns the next thing in the array
func (*SetsScanner) Scan ¶ added in v0.0.147
func (it *SetsScanner) Scan() bool
type SetsTable ¶ added in v0.0.147
type SetsTable struct {
Funcs []*SetFunc
CustomFunc func(*Set)
// contains filtered or unexported fields
}
func (*SetsTable) AddButtonFunc ¶ added in v0.0.147
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*SetsTable) AddComment ¶ added in v0.0.147
func (*SetsTable) AddEndBranchHash ¶ added in v0.0.147
func (*SetsTable) AddEndBranchName ¶ added in v0.0.147
func (*SetsTable) AddGitAuthorEmail ¶ added in v0.0.147
func (*SetsTable) AddGitAuthorName ¶ added in v0.0.147
func (*SetsTable) AddHostname ¶ added in v0.0.147
func (*SetsTable) AddIntFunc ¶ added in v0.0.147
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*SetsTable) AddStartBranchHash ¶ added in v0.0.147
func (*SetsTable) AddStartBranchName ¶ added in v0.0.147
func (*SetsTable) AddStringFunc ¶ added in v0.0.147
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*SetsTable) AddSubmitter ¶ added in v0.0.147
func (*SetsTable) AddTimeFunc ¶ added in v0.0.147
force the application to choose the type of data. this allows the GUI plugin to be smarter
func (*SetsTable) PrintTable ¶ added in v0.0.151
func (t *SetsTable) PrintTable()
formats & prints the table as text to Stdout. a real timesaver!
Source Files
¶
- Save.go
- SetMode.go
- branches.go
- build.go
- cache.go
- cleanGoSum.go
- clone.go
- doDirty.go
- finalGoSumCheck.go
- forgeConfig.Common.go
- forgeConfig.gui.pb.go
- forgeConfig.marshal.pb.go
- forgeConfig.pb.go
- forgeConfig.sort.pb.go
- generate.go
- goList.go
- goWork.go
- http.go
- init.go
- iterByMode.go
- load.go
- log.go
- mode.go
- patch.common.go
- patch.gui.pb.go
- patch.http.pb.go
- patch.marshal.pb.go
- patch.pb.go
- patch.sort.pb.go
- patchset.Make.go
- patchset.config.go
- patchset.new.go
- repoNew.go
- repos.go
- rill.go
- run.go
- scanRepoDir.go
- set.gui.pb.go
- set.http.pb.go
- set.marshal.pb.go
- set.pb.go
- set.sort.pb.go
- structs.go
- tableBuild.go
- tableConfigs.go
- tableDefault.go
- tableErrors.go
- tableGolang.go
- tablePatches.go
- tablePull.go