Documentation ¶
Index ¶
- Constants
- type Agent
- type AgentPool
- type AgentPoolAttachment
- type AgentPoolId
- type AgentPools
- type AttachedProjects
- type Build
- type BuildAgentRequirement
- type BuildAgentRequirements
- type BuildArtifactDependencies
- type BuildArtifactDependency
- type BuildConfiguration
- type BuildConfigurationShort
- type BuildConfigurations
- type BuildFeature
- type BuildFeatures
- type BuildSetting
- type BuildSettings
- type BuildSnapshotDependencies
- type BuildSnapshotDependency
- type BuildStep
- type BuildSteps
- type BuildTrigger
- type BuildTriggers
- type BuildType
- type Change
- type Changes
- type CheckboxType
- type Display
- type JSONTime
- type NamedParameter
- type Parameter
- type ParameterSpec
- type ParameterType
- type Parameters
- type PasswordType
- type ProblemOccurrence
- type Project
- type ProjectId
- type ProjectShort
- type Projects
- type Properties
- type ReadOnly
- type SelectItem
- type SelectType
- type Server
- type State
- type Tags
- type TemplateID
- type TemplateId
- type TestOccurrence
- type TextType
- type VcsRoot
- type VcsRootEntries
- type VcsRootEntry
- type VcsRootId
- type VcsRootShort
- type VcsRoots
Constants ¶
View Source
const ( Unknown = State(iota) Queued Started Finished )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Href string `json:"href,omitempty"` Projects Projects `json:"projects,omitempty"` WebURL string `json:"webUrl,omitempty"` ActiveBuild Build `json:"build,omitempty"` Enabled bool `json:"enabled,omitempty"` Authorized bool `json:"authorized,omitempty"` UpToDate bool `json:"uptodate,omitempty"` BuildType BuildType `json:"buildType,omitempty"` Connected bool `json:"connected,omitempty"` }
Agent is documented here: https://dploeger.github.io/teamcity-rest-api/#agent
type AgentPoolAttachment ¶
type AgentPoolAttachment struct {
ProjectID string `json:"id,omitempty"`
}
type AgentPoolId ¶
type AgentPoolId int
func (AgentPoolId) MarshalJSON ¶
func (v AgentPoolId) MarshalJSON() ([]byte, error)
type AgentPools ¶
type AttachedProjects ¶
type Build ¶
type Build struct { ID int64 BuildTypeID string BuildType struct { ID string Name string Description string ProjectName string ProjectID string HREF string WebURL string } Triggered struct { Type string Date JSONTime User struct { Username string } } Changes struct { Change []Change } QueuedDate JSONTime QueuePosition int64 StartDate JSONTime FinishDate JSONTime Number string Status string StatusText string State string BranchName string Personal bool Running bool Pinned bool DefaultBranch bool HREF string WebURL string Agent struct { ID int64 Name string TypeID int64 HREF string } ProblemOccurrences struct { ProblemOccurrence []ProblemOccurrence } TestOccurrences struct { TestOccurrence []TestOccurrence } Tags []string `json:"tags,omitempty"` Properties Properties `json:"properties"` }
Build represents a TeamCity build, along with its metadata.
func (*Build) ComputedState ¶
type BuildAgentRequirement ¶
type BuildAgentRequirement struct { ID string `json:"id"` Type string `json:"type"` Properties Properties `json:"properties"` }
type BuildAgentRequirements ¶
type BuildAgentRequirements []BuildAgentRequirement
func (BuildAgentRequirements) MarshalJSON ¶
func (bf BuildAgentRequirements) MarshalJSON() ([]byte, error)
func (*BuildAgentRequirements) UnmarshalJSON ¶
func (bf *BuildAgentRequirements) UnmarshalJSON(b []byte) error
type BuildArtifactDependencies ¶
type BuildArtifactDependencies []BuildArtifactDependency
func (BuildArtifactDependencies) MarshalJSON ¶
func (bsd BuildArtifactDependencies) MarshalJSON() ([]byte, error)
func (*BuildArtifactDependencies) UnmarshalJSON ¶
func (bsd *BuildArtifactDependencies) UnmarshalJSON(b []byte) error
type BuildArtifactDependency ¶
type BuildArtifactDependency struct { ID string `json:"id"` Type string `json:"type"` Properties Properties `json:"properties"` SourceBuildType BuildType `json:"source-buildType"` }
type BuildConfiguration ¶
type BuildConfiguration struct { ID string `json:"id,omitempty"` ProjectID string `json:"projectId"` TemplateFlag bool `json:"templateFlag"` TemplateID TemplateId `json:"template,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` VcsRootEntries VcsRootEntries `json:"vcs-root-entries,omitempty"` Settings BuildSettings `json:"settings,omitempty"` Parameters Parameters `json:"parameters,omitempty"` Steps BuildSteps `json:"steps,omitempty"` Features BuildFeatures `json:"features,omitempty"` Triggers BuildTriggers `json:"triggers,omitempty"` SnapshotDependencies BuildSnapshotDependencies `json:"snapshot-dependencies,omitempty"` ArtifactDependencies BuildArtifactDependencies `json:"artifact-dependencies,omitempty"` AgentRequirements BuildAgentRequirements `json:"agent-requirements,omitempty"` }
type BuildConfigurationShort ¶
type BuildConfigurations ¶
type BuildConfigurations map[string]BuildConfiguration
func (BuildConfigurations) MarshalJSON ¶
func (bc BuildConfigurations) MarshalJSON() ([]byte, error)
func (*BuildConfigurations) UnmarshalJSON ¶
func (bc *BuildConfigurations) UnmarshalJSON(b []byte) error
type BuildFeature ¶
type BuildFeature struct { ID string `json:"id"` Type string `json:"type"` Properties Properties `json:"properties"` }
type BuildFeatures ¶
type BuildFeatures []BuildFeature
func (BuildFeatures) MarshalJSON ¶
func (bf BuildFeatures) MarshalJSON() ([]byte, error)
func (*BuildFeatures) UnmarshalJSON ¶
func (bf *BuildFeatures) UnmarshalJSON(b []byte) error
type BuildSetting ¶
type BuildSettings ¶
type BuildSettings []BuildSetting
func (BuildSettings) MarshalJSON ¶
func (s BuildSettings) MarshalJSON() ([]byte, error)
func (*BuildSettings) UnmarshalJSON ¶
func (s *BuildSettings) UnmarshalJSON(b []byte) error
type BuildSnapshotDependencies ¶
type BuildSnapshotDependencies []BuildSnapshotDependency
func (BuildSnapshotDependencies) MarshalJSON ¶
func (bsd BuildSnapshotDependencies) MarshalJSON() ([]byte, error)
func (*BuildSnapshotDependencies) UnmarshalJSON ¶
func (bsd *BuildSnapshotDependencies) UnmarshalJSON(b []byte) error
type BuildSnapshotDependency ¶
type BuildSnapshotDependency struct { ID string `json:"id"` Type string `json:"type"` Properties Properties `json:"properties"` SourceBuildType BuildType `json:"source-buildType"` }
type BuildStep ¶
type BuildStep struct { ID string `json:"id"` Type string `json:"type"` Name string `json:"name"` Properties Properties `json:"properties"` }
type BuildSteps ¶
type BuildSteps []BuildStep
func (BuildSteps) MarshalJSON ¶
func (bs BuildSteps) MarshalJSON() ([]byte, error)
func (*BuildSteps) UnmarshalJSON ¶
func (bs *BuildSteps) UnmarshalJSON(b []byte) error
type BuildTrigger ¶
type BuildTrigger struct { ID string `json:"id"` Type string `json:"type"` Properties Properties `json:"properties"` }
type BuildTriggers ¶
type BuildTriggers []BuildTrigger
func (BuildTriggers) MarshalJSON ¶
func (bt BuildTriggers) MarshalJSON() ([]byte, error)
func (*BuildTriggers) UnmarshalJSON ¶
func (bt *BuildTriggers) UnmarshalJSON(b []byte) error
type CheckboxType ¶
func (CheckboxType) TypeName ¶
func (t CheckboxType) TypeName() string
func (CheckboxType) Values ¶
func (t CheckboxType) Values() map[string]string
type JSONTime ¶
type JSONTime string
JSONTime is just a string wrapper for Team City's date format.
type NamedParameter ¶
func (NamedParameter) MarshalJSON ¶
func (p NamedParameter) MarshalJSON() ([]byte, error)
type Parameter ¶
type Parameter struct { Value string Spec *ParameterSpec }
type ParameterSpec ¶
type ParameterSpec struct { Label string Description string Display Display ReadOnly ReadOnly Type ParameterType }
func (ParameterSpec) String ¶
func (s ParameterSpec) String() string
type ParameterType ¶
type Parameters ¶
func (Parameters) MarshalJSON ¶
func (p Parameters) MarshalJSON() ([]byte, error)
func (*Parameters) UnmarshalJSON ¶
func (p *Parameters) UnmarshalJSON(b []byte) error
type PasswordType ¶
type PasswordType struct { }
func (PasswordType) TypeName ¶
func (t PasswordType) TypeName() string
func (PasswordType) Values ¶
func (t PasswordType) Values() map[string]string
type ProblemOccurrence ¶
type Project ¶
type Project struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` Href string `json:"href,omitempty"` WebUrl string `json:"webUrl,omitempty"` ParentProjectID ProjectId `json:"parentProject,omitempty"` BuildConfigurations BuildConfigurations `json:"buildTypes,omitempty"` Templates BuildConfigurations `json:"templates,omitempty"` Parameters Parameters `json:"parameters,omitempty"` Projects Projects `json:"projects,omitempty"` }
type ProjectId ¶
type ProjectId string
func (ProjectId) MarshalJSON ¶
func (*ProjectId) UnmarshalJSON ¶
type ProjectShort ¶
type Properties ¶
func (Properties) MarshalJSON ¶
func (p Properties) MarshalJSON() ([]byte, error)
func (*Properties) UnmarshalJSON ¶
func (p *Properties) UnmarshalJSON(b []byte) error
type SelectItem ¶
type SelectType ¶
type SelectType struct { AllowMultiple bool ValueSeparator string Items []SelectItem }
func (SelectType) TypeName ¶
func (t SelectType) TypeName() string
func (SelectType) Values ¶
func (t SelectType) Values() map[string]string
type TemplateID ¶
type TemplateId ¶
type TemplateId string
func (TemplateId) MarshalJSON ¶
func (p TemplateId) MarshalJSON() ([]byte, error)
func (*TemplateId) UnmarshalJSON ¶
func (p *TemplateId) UnmarshalJSON(b []byte) error
type TestOccurrence ¶
type VcsRootEntries ¶
type VcsRootEntries []VcsRootEntry
func (VcsRootEntries) MarshalJSON ¶
func (vre VcsRootEntries) MarshalJSON() ([]byte, error)
func (*VcsRootEntries) UnmarshalJSON ¶
func (vre *VcsRootEntries) UnmarshalJSON(b []byte) error
type VcsRootEntry ¶
type VcsRootId ¶
type VcsRootId string
func (VcsRootId) MarshalJSON ¶
func (*VcsRootId) UnmarshalJSON ¶
type VcsRootShort ¶
type VcsRoots ¶
type VcsRoots []VcsRootShort
func (VcsRoots) MarshalJSON ¶
func (*VcsRoots) UnmarshalJSON ¶
Source Files ¶
- agent.go
- agent_pools.go
- build.go
- build_agent_requirements.go
- build_artifact_dependency.go
- build_configuration.go
- build_feature.go
- build_settings.go
- build_snapshot_dependency.go
- build_step.go
- build_trigger.go
- build_type.go
- changes.go
- jsontime.go
- parameters.go
- problems.go
- project.go
- properties.go
- server.go
- template_id.go
- tests.go
- vcs_root.go
- vcs_root_entry.go
Click to show internal directories.
Click to hide internal directories.