Documentation ¶
Index ¶
- Constants
- func Download(serverURL *url.URL, build string, artifact *Artifact, dstdir string, ...) error
- func GetRawBuildMetadata(src *url.URL, build string) ([]byte, error)
- func String(v interface{}) string
- type Artifact
- type BuildInfo
- type BuildMetadata
- type ChangeSet
- type ChangeSetAuthor
- type ChangeSetItem
- type ChangeSetPath
- type JsonTime
- type MetadataSyntaxError
- type StatusWriter
Constants ¶
View Source
const ( Esc = "\u001B[" EraseLine = Esc + "2K" SOL = "\r" )
View Source
const (
LatestBuild = "latest"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildMetadata ¶
type BuildMetadata struct { ID *string `json:"id"` Result *string `json:"result"` Artifacts []*Artifact `json:"artifacts"` ChangeSets []*ChangeSet `json:"changeSets"` InProgress bool `json:"inProgress"` NextBuild *BuildInfo `json:"nextBuild"` PreviousBuild *BuildInfo `json:"previousBuild"` }
func GetBuildMetadata ¶
func GetBuildMetadata(src *url.URL, build string) (*BuildMetadata, error)
func GetBuildMetadataFromBytes ¶
func GetBuildMetadataFromBytes(raw []byte) (*BuildMetadata, error)
type ChangeSet ¶
type ChangeSet struct { Class *string `json:"_class"` Items []*ChangeSetItem `json:"items"` }
type ChangeSetAuthor ¶
type ChangeSetItem ¶
type ChangeSetItem struct { Class *string `json:"_class"` AffectedPaths []string `json:"affectedPaths"` CommitId *string `json:"commitId"` Timestamp *JsonTime `json:"timestamp"` Author *ChangeSetAuthor `json:"author"` AuthorEmail *string `json:"authorEmail"` Comment *string `json:"comment"` Date *string `json:"date"` Id *string `json:"id"` Msg *string `json:"msg"` Paths []*ChangeSetPath `json:"paths"` }
type ChangeSetPath ¶
type MetadataSyntaxError ¶
type MetadataSyntaxError struct { Raw string Offset int64 // contains filtered or unexported fields }
func (*MetadataSyntaxError) Error ¶
func (e *MetadataSyntaxError) Error() string
type StatusWriter ¶
type StatusWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.