Documentation ¶
Index ¶
- Constants
- Variables
- func GetServer() *sserver
- type BrBuilder
- func (b *BrBuilder) AddBuild(buildVerion string) error
- func (b *BrBuilder) CanBrowse() bool
- func (b *BrBuilder) CanUpdate() bool
- func (b *BrBuilder) Delete() error
- func (b *BrBuilder) GetBranch() *Branch
- func (b *BrBuilder) GetLatestID() string
- func (b *BrBuilder) GetSymbolPath(hash, name string) string
- func (b *BrBuilder) Load() error
- func (b *BrBuilder) Name() string
- func (b *BrBuilder) ParseBuilds(handler func(b *Build) error) (int, error)
- func (b *BrBuilder) ParseSymbols(buildID string, handler func(sym *Symbol) error) (int, error)
- func (b *BrBuilder) Persist() error
- func (b *BrBuilder) SetSubpath(buildserver, localstore string) error
- type Branch
- type Build
- type Builder
- type Symbol
Constants ¶
View Source
const ( ArchX86 = "x86" ArchX64 = "x64" )
Variables ¶
Functions ¶
Types ¶
type BrBuilder ¶
type BrBuilder struct { Branch // contains filtered or unexported fields }
BrBuilder represent pdb release
func (*BrBuilder) GetLatestID ¶
GetLatestID return the last symbol build id
func (*BrBuilder) GetSymbolPath ¶
GetSymbolPath return symbol's full path
func (*BrBuilder) ParseBuilds ¶
ParseBuilds parse server.txt to get pdb history
func (*BrBuilder) ParseSymbols ¶
ParseSymbols parse 000000001(*) from pdb path
func (*BrBuilder) SetSubpath ¶
SetSubpath change the subpath on build server and local store. `buildserver` is the subpath relative to config.BuildSource. `localstore` is the subpath relative to config.Destination.
type Branch ¶
type Branch struct { BuildName string `json:"buildName"` StoreName string `json:"storeName"` BuildPath string `json:"buildPath"` StorePath string `json:"storePath"` UpdateDate string `json:"updateDate"` LatestBuild string `json:"latestBuild"` BuildsCount int `json:"buildsCount"` }
Branch ... information
type Build ¶
type Build struct { ID string `json:"id"` Date string `json:"date"` Branch string `json:"branch"` Version string `json:"version"` Comment string `json:"comment"` }
Build ... analyze from server.txt
type Builder ¶
type Builder interface { // Name return builder name Name() string // Get struct *Branch {} GetBranch() *Branch // CanUpdate check if current branch is valid on build server. CanUpdate() bool // CanBrowse check if current branch is valid on local symbol store. CanBrowse() bool // SetSubpath change the subpath on build server and local store. SetSubpath(buildserver, localstore string) error // Add an given build pdb to symbol server. // if `buildVersion` is empty, it will try to add the latest build on build server if exist. AddBuild(buildVerion string) error // GetSymbolPath get given symbol file full path on symbol server. // The path can be used to serve download. GetSymbolPath(hash, name string) string // ParseBuilds parse all version of builds that already in the symbol server of curent branch. // ParseBuilds(handler func(b *Build) error) (int, error) // ParseSymbols parse all the symbols of given build vesrion // ParseSymbols(buildID string, handler func(sym *Symbol) error) (int, error) }
Builder interface
Click to show internal directories.
Click to hide internal directories.