bambooapi

package module
v0.0.0-...-30079bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 7 Imported by: 0

README

bambooapi

Go based Bamboo API lib (partial)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildResultResponse

type BuildResultResponse struct {
	Results struct {
		Result []struct {
			Link struct {
				Href string `json:"href"`
				Rel  string `json:"rel"`
			} `json:"link"`
			Plan struct {
				Shortname string `json:"shortName"`
				Shortkey  string `json:"shortKey"`
				Type      string `json:"type"`
				Enabled   bool   `json:"enabled"`
				Key       string `json:"key"`
				Name      string `json:"name"`
				Plankey   struct {
					Key string `json:"key"`
				} `json:"planKey"`
			} `json:"plan"`
			Buildresultkey string `json:"buildResultKey"`
			Lifecyclestate string `json:"lifeCycleState"`
			ID             int    `json:"id"`
			Key            string `json:"key"`
			Planresultkey  struct {
				Key       string `json:"key"`
				Entitykey struct {
					Key string `json:"key"`
				} `json:"entityKey"`
				Resultnumber int `json:"resultNumber"`
			} `json:"planResultKey"`
			State       string `json:"state"`
			Buildstate  string `json:"buildState"`
			Number      int    `json:"number"`
			Buildnumber int    `json:"buildNumber"`
		} `json:"result"`
	} `json:"results"`
}

func BuildResults

func BuildResults(server string, user string, pass string) (response BuildResultResponse)

type Deploys

type Deploys []struct {
	Environmentstatuses []struct {
		Environment struct {
			ID                  int    `json:"id"`
			Name                string `json:"name"`
			Deploymentprojectid int    `json:"deploymentProjectId"`
		} `json:"environment"`
		Deploymentresult struct {
			Deploymentversion struct {
				ID                 int    `json:"id"`
				Name               string `json:"name"`
				Creationdate       int64  `json:"creationDate"`
				Creatorusername    string `json:"creatorUserName"`
				Creatordisplayname string `json:"creatorDisplayName"`
				Planbranchname     string `json:"planBranchName"`
				Agezeropoint       int64  `json:"ageZeroPoint"`
			} `json:"deploymentVersion"`
			Deploymentversionname string `json:"deploymentVersionName"`
			ID                    int    `json:"id"`
			Deploymentstate       string `json:"deploymentState"`
			Lifecyclestate        string `json:"lifeCycleState"`
			Starteddate           int64  `json:"startedDate"`
			Queueddate            int64  `json:"queuedDate"`
			Executeddate          int64  `json:"executedDate"`
			Finisheddate          int64  `json:"finishedDate"`
			Reasonsummary         string `json:"reasonSummary"`
		} `json:"deploymentResult"`
	} `json:"environmentStatuses"`
}

func DeployResults

func DeployResults(server string, user string, pass string) (deploys Deploys)

type Plan

type Plan struct {
	Name string `xml:"name,attr"`
	Key  string `xml:"key,attr"`
}

type QueueResponse

type QueueResponse struct {
	Message        string `json:"message"`
	StatusCode     int    `json:"status-code"`
	Plankey        string `json:"planKey"`
	Buildnumber    int    `json:"buildNumber"`
	Buildresultkey string `json:"buildResultKey"`
	Triggerreason  string `json:"triggerReason"`
	Link           struct {
		Href string `json:"href"`
		Rel  string `json:"rel"`
	} `json:"link"`
}

func Queue

func Queue(server string, user string, pass string, buildkey string) (response QueueResponse)

type Result

type Result struct {
	Key          string `xml:"buildResultKey"`
	PlanData     Plan   `xml:"plan"`
	Plan         string
	Number       string `xml:"buildNumber"`
	StartTime    string `xml:"prettyBuildStartedTime"`
	CompleteTime string `xml:"prettyBuildCompletedTime"`
	State        string `xml:"buildState"`
	Duration     string `xml:"buildDurationDescription"`
	Responsible  string `xml:"reasonSummary"`
}

func GetResult

func GetResult(server string, user string, pass string, key string) (result Result)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL