teamcity

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateID

func ValidateID(v interface{}, k string) (ws []string, errors []error)

func ValidateVcsRootID

func ValidateVcsRootID(v interface{}, k string) (ws []string, errors []error)

Types

type Client

type Client struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client to access a TeamCity API

func New

func New(host, username, password string, version string) *Client

func (*Client) AttachBuildConfigurationVcsRoot

func (c *Client) AttachBuildConfigurationVcsRoot(buildConfID string, vcsRoot *types.VcsRootEntry) error

func (*Client) CancelBuild

func (c *Client) CancelBuild(buildID int64, comment string) error

func (*Client) CreateAgentPoolProjectAttachment

func (c *Client) CreateAgentPoolProjectAttachment(pool int, apa *types.AgentPoolAttachment) error

func (*Client) CreateBuildConfiguration

func (c *Client) CreateBuildConfiguration(buildConfig *types.BuildConfiguration) error

func (*Client) CreateProject

func (c *Client) CreateProject(project *types.Project) error

func (*Client) CreateVcsRoot

func (c *Client) CreateVcsRoot(vcs *types.VcsRoot) error

func (*Client) DeleteAgentPoolProjectAttachement

func (c *Client) DeleteAgentPoolProjectAttachement(pool int, project string) error

func (*Client) DeleteBuildConfiguration

func (c *Client) DeleteBuildConfiguration(buildConfID string) error

func (*Client) DeleteBuildConfigurationParameter

func (c *Client) DeleteBuildConfigurationParameter(buildConfID, name string) error

func (*Client) DeleteBuildConfigurationSetting

func (c *Client) DeleteBuildConfigurationSetting(buildConfID, name string) error

func (*Client) DeleteProject

func (c *Client) DeleteProject(projectID string) error

func (*Client) DeleteProjectParameter

func (c *Client) DeleteProjectParameter(projectID, name string) error

func (*Client) DeleteVcsRoot

func (c *Client) DeleteVcsRoot(VcsRootId string) error

func (*Client) DetachBuildConfigurationVcsRoot

func (c *Client) DetachBuildConfigurationVcsRoot(buildConfID string, vcsRootID string) error

func (*Client) GetAgentPoolById

func (c *Client) GetAgentPoolById(pool int) (*types.AgentPools, error)

func (*Client) GetAgentPoolByName

func (c *Client) GetAgentPoolByName(pool string) (*types.AgentPools, error)

func (*Client) GetBuild

func (c *Client) GetBuild(buildID string) (*types.Build, error)

func (*Client) GetBuildConfiguration

func (c *Client) GetBuildConfiguration(buildConfID string) (*types.BuildConfiguration, error)

func (*Client) GetBuildID

func (c *Client) GetBuildID(buildTypeID, branchName, buildNumber string) (string, error)

func (*Client) GetBuildLog

func (c *Client) GetBuildLog(buildID string) (string, error)

func (*Client) GetBuildProperties

func (c *Client) GetBuildProperties(buildID string) (types.Properties, error)

func (*Client) GetChanges

func (c *Client) GetChanges(path string) ([]types.Change, error)

func (*Client) GetProblems

func (c *Client) GetProblems(path string, count int64) ([]types.ProblemOccurrence, error)

func (*Client) GetProject

func (c *Client) GetProject(projectID string) (*types.Project, error)

func (*Client) GetTests

func (c *Client) GetTests(path string, count int64, failingOnly bool, ignoreMuted bool) ([]types.TestOccurrence, error)

func (*Client) GetVcsRoot

func (c *Client) GetVcsRoot(VcsRootId string) (*types.VcsRoot, error)

func (*Client) QueueBuild

func (c *Client) QueueBuild(buildTypeID string, branchName string, properties types.Properties) (*types.Build, error)

func (*Client) ReplaceAllBuildConfigurationAgentRequirements

func (c *Client) ReplaceAllBuildConfigurationAgentRequirements(buildConfID string, agentRequirements *types.BuildAgentRequirements) error

func (*Client) ReplaceAllBuildConfigurationArtifactDependencies

func (c *Client) ReplaceAllBuildConfigurationArtifactDependencies(buildConfID string, artifactDependencies *types.BuildArtifactDependencies) error

func (*Client) ReplaceAllBuildConfigurationFeatures

func (c *Client) ReplaceAllBuildConfigurationFeatures(buildConfID string, features *types.BuildFeatures) error

func (*Client) ReplaceAllBuildConfigurationParameters

func (c *Client) ReplaceAllBuildConfigurationParameters(buildConfID string, parameters *types.Parameters) error

func (*Client) ReplaceAllBuildConfigurationSnapshotDependencies

func (c *Client) ReplaceAllBuildConfigurationSnapshotDependencies(buildConfID string, snapshotDependencies *types.BuildSnapshotDependencies) error

func (*Client) ReplaceAllBuildConfigurationSteps

func (c *Client) ReplaceAllBuildConfigurationSteps(buildConfID string, steps *types.BuildSteps) error

func (*Client) ReplaceAllBuildConfigurationTriggers

func (c *Client) ReplaceAllBuildConfigurationTriggers(buildConfID string, triggers *types.BuildTriggers) error

func (*Client) ReplaceAllProjectParameters

func (c *Client) ReplaceAllProjectParameters(projectID string, parameters *types.Parameters) error

func (*Client) ReplaceAllVcsRootProperties

func (c *Client) ReplaceAllVcsRootProperties(VcsRootId string, properties *types.Properties) error

func (*Client) ReplaceBuildConfigurationField

func (c *Client) ReplaceBuildConfigurationField(buildConfID, name string, value string) error

func (*Client) ReplaceBuildConfigurationParameter

func (c *Client) ReplaceBuildConfigurationParameter(buildConfID, name string, parameter *types.Parameter) error

func (*Client) ReplaceBuildConfigurationParameterValue

func (c *Client) ReplaceBuildConfigurationParameterValue(buildConfID, name string, value string) error

func (*Client) ReplaceBuildConfigurationSetting

func (c *Client) ReplaceBuildConfigurationSetting(buildConfID, name string, value string) error

func (*Client) ReplaceProjectParameter

func (c *Client) ReplaceProjectParameter(projectID, name string, parameter *types.Parameter) error

func (*Client) SearchBuild

func (c *Client) SearchBuild(locator string) ([]*types.Build, error)

func (*Client) Server

func (c *Client) Server() (*types.Server, error)

func (*Client) SetBuildConfigurationDescription

func (c *Client) SetBuildConfigurationDescription(buildConfID, description string) error

func (*Client) SetBuildConfigurationPaused

func (c *Client) SetBuildConfigurationPaused(buildConfID, state bool) error

func (*Client) SetBuildConfigurationTemplate

func (c *Client) SetBuildConfigurationTemplate(buildConfID, templateID string) error

func (*Client) SetProjectDescription

func (c *Client) SetProjectDescription(projectID, description string) error

func (*Client) SetProjectField

func (c *Client) SetProjectField(projectID, field string, content string) error

Jump to

Keyboard shortcuts

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