api

package
v0.0.0-...-8385e2e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PathSuffixREST = "app/rest/"
	PathSuffixLog  = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer interface {
	URLAuthSuffixProvider
}

type Client

type Client struct {
	Projects   *subapi.ProjectService
	BuildTypes *subapi.BuildTypeService
	Builds     *subapi.BuildService
	Logs       *subapi.LogService
	BuildQueue *subapi.BuildQueueService
	Token      *subapi.TokenService
	// contains filtered or unexported fields
}

Client represents the base for connecting to TeamCity

func InitAPI

func InitAPI(config configuration.Configuration, httpClient sling.Doer) *Client

func NewClientBasicAuth

func NewClientBasicAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerHTTP) *Client

func NewClientGuestAuth

func NewClientGuestAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerGuest) *Client

func NewClientTokenAuth

func NewClientTokenAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerToken) *Client

func (*Client) Ping

func (c *Client) Ping() error

Ping tests if the client is properly configured and can be used

func (*Client) TokenServiceCurrent

func (c *Client) TokenServiceCurrent() token.API

func (*Client) TokenServiceWithTokenAuth

func (c *Client) TokenServiceWithTokenAuth(token string)

TokenServiceWithTokenAuth is a hack to achieve token service reinitialization during command execution.

type URLAuthSuffixProvider

type URLAuthSuffixProvider interface {
	ProvideURLAuthSuffix() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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