Documentation
¶
Index ¶
- func Builds_Cancel(context *CloudBuildContext, buildTargetId string, buildNumber int64) error
- func Builds_CancelAll(context *CloudBuildContext, buildTargetId string) error
- func Builds_Download(context *CloudBuildContext, buildTargetId string, buildNumber int64, ...) error
- func Builds_Latest(context *CloudBuildContext, onlySuccess bool) (map[string]*Build, error)
- type Artifact
- type Build
- type BuildAttempt
- type BuildTarget
- type BuildTargetSettings
- type Changeset
- type CloudBuildContext
- type File
- type Link
- type Links
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builds_Cancel ¶
func Builds_Cancel(context *CloudBuildContext, buildTargetId string, buildNumber int64) error
func Builds_CancelAll ¶
func Builds_CancelAll(context *CloudBuildContext, buildTargetId string) error
func Builds_Download ¶ added in v0.2.0
func Builds_Latest ¶
func Builds_Latest(context *CloudBuildContext, onlySuccess bool) (map[string]*Build, error)
Types ¶
type Build ¶
type Build struct {
Number int `json:"build"`
TargetId string `json:"buildTargetId"`
TargetName string `json:"buildTargetName"`
GUID string `json:"buildGUID,omitempty"`
Created time.Time `json:"created"`
Status string `json:"buildStatus"`
Finished time.Time `json:"finished"`
Platform string `json:"platform"`
TotalTimeSeconds float64 `json:"totalTimeInSeconds"`
BuildTimeSeconds float64 `json:"buildTimeInSeconds"`
Links Links `json:"links"`
ScmBranch string `json:"scmBranch"`
LastBuiltRevision string `json:"lastBuiltRevision,omitempty"`
Changesets []interface{} `json:"changeset,omitempty"`
UnityVersion string `json:"unityVersion"`
}
func Builds_List ¶
func Builds_Status ¶ added in v0.2.0
func Builds_Status(context *CloudBuildContext, buildTargetId string, buildNumber int64) (*Build, error)
type BuildAttempt ¶
type BuildAttempt struct {
Build
FailureDetails interface{} `json:"failureDetails,omitempty"`
Error string `json:"error,omitempty"`
}
func Builds_Start ¶
func Builds_Start(context *CloudBuildContext, buildTargetId string, clean bool) (*BuildAttempt, error)
func Builds_StartAll ¶
func Builds_StartAll(context *CloudBuildContext, clean bool) ([]BuildAttempt, error)
type BuildTarget ¶
type BuildTarget struct {
Name string `json:"name"`
Platform string `json:"platform"`
Id string `json:"buildtargetid"`
Enabled bool `json:"enabled"`
Builds []Build `json:"builds,omitempty"`
Settings *BuildTargetSettings `json:"settings,omitempty"`
}
func Targets_List ¶
func Targets_List(context *CloudBuildContext) ([]BuildTarget, error)
type BuildTargetSettings ¶
type BuildTargetSettings struct {
AutoBuild bool `json:"autoBuild"`
ExecutableName string `json:"executablename"`
Scm struct {
Branch string `json:"branch"`
Subdirectory string `json:"subdirectory,omitempty"`
Type string `json:"type"`
} `json:"scm"`
UnityVersion string `json:"unityVersion"`
Advanced interface{} `json:"advanced,omitempty"`
}
type CloudBuildContext ¶
type CloudBuildContext struct {
OrgId string `json:"orgid"`
ProjectId string `json:"projectid"`
ApiKey string `json:"apikey"`
OutputFormat OutputFormat `json:"outputformat"`
Verbose bool
}
type OutputFormat ¶
type OutputFormat int
const ( OutputFormat_None OutputFormat = iota OutputFormat_JSON OutputFormat_Human )
Click to show internal directories.
Click to hide internal directories.