Documentation
¶
Index ¶
- Constants
- type Authorizer
- type Client
- func InitAPI(config configuration.Configuration, httpClient sling.Doer) *Client
- func NewClientBasicAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerHTTP) *Client
- func NewClientGuestAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerGuest) *Client
- func NewClientTokenAuth(address string, httpClient sling.Doer, auth authorization.AuthorizerToken) *Client
- type URLAuthSuffixProvider
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) TokenServiceCurrent ¶
func (*Client) TokenServiceWithTokenAuth ¶
TokenServiceWithTokenAuth is a hack to achieve token service reinitialization during command execution.
type URLAuthSuffixProvider ¶
type URLAuthSuffixProvider interface {
ProvideURLAuthSuffix() string
}
Click to show internal directories.
Click to hide internal directories.