Versions in this module Expand all Collapse all v20 v20.0.0 Oct 15, 2019 Changes in this version + func BaseURL(rootURL string, service string, version string) string + func RootURLFromEnvVars() string + type APICall struct + Client *Client + Payload io.Reader + QueryString url.Values + Route string + type APICallException struct + CallSummary *CallSummary + RootCause error + func (err *APICallException) Error() string + type CallSummary struct + Attempts int + HTTPRequest *http.Request + HTTPRequestBody string + HTTPRequestObject interface{} + HTTPResponse *http.Response + HTTPResponseBody string + func (cs *CallSummary) String() string + type Certificate struct + Expiry int64 + Issuer string + Scopes []string + Seed string + Signature string + Start int64 + Version int + func (cert *Certificate) Sign(accessToken string, tempClientID string) (err error) + type Client struct + Authenticate bool + BaseURL string + Context context.Context + Credentials *Credentials + HTTPClient ReducedHTTPClient + func (client *Client) APICall(payload interface{}, method, route string, result interface{}, ...) (interface{}, *CallSummary, error) + func (client *Client) Request(rawPayload []byte, method, route string, query url.Values) (*CallSummary, error) + func (client *Client) SignedURL(route string, query url.Values, duration time.Duration) (u *url.URL, err error) + type Credentials struct + AccessToken string + AuthorizedScopes []string + Certificate string + ClientID string + func CredentialsFromEnvVars() *Credentials + func (c *Credentials) SignRequest(req *http.Request) (err error) + func (creds *Credentials) Cert() (cert *Certificate, err error) + func (creds *Credentials) String() string + func (permaCreds *Credentials) CreateNamedTemporaryCredentials(tempClientID string, duration time.Duration, scopes ...string) (tempCreds *Credentials, err error) + func (permaCreds *Credentials) CreateTemporaryCredentials(duration time.Duration, scopes ...string) (tempCreds *Credentials, err error) + type ExtHeader struct + AuthorizedScopes *[]string + Certificate *Certificate + type ReducedHTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Time time.Time + func (t *Time) UnmarshalJSON(data []byte) (err error) + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) String() string Other modules containing this package github.com/taskcluster/taskcluster/clients/client-go/v14 github.com/taskcluster/taskcluster/clients/client-go/v15 github.com/taskcluster/taskcluster/clients/client-go/v16 github.com/taskcluster/taskcluster/clients/client-go/v17 github.com/taskcluster/taskcluster/clients/client-go/v18 github.com/taskcluster/taskcluster/clients/client-go/v19 github.com/taskcluster/taskcluster/clients/client-go/v21 github.com/taskcluster/taskcluster/clients/client-go/v22 github.com/taskcluster/taskcluster/clients/client-go/v23 github.com/taskcluster/taskcluster/clients/client-go/v24 github.com/taskcluster/taskcluster/v25 github.com/taskcluster/taskcluster/v26 github.com/taskcluster/taskcluster/v27 github.com/taskcluster/taskcluster/v28 github.com/taskcluster/taskcluster/v29 github.com/taskcluster/taskcluster/v30 github.com/taskcluster/taskcluster/v31 github.com/taskcluster/taskcluster/v32 github.com/taskcluster/taskcluster/v33 github.com/taskcluster/taskcluster/v34 github.com/taskcluster/taskcluster/v35 github.com/taskcluster/taskcluster/v36 github.com/taskcluster/taskcluster/v37 github.com/taskcluster/taskcluster/v38 github.com/taskcluster/taskcluster/v39 github.com/taskcluster/taskcluster/v40 github.com/taskcluster/taskcluster/v41 github.com/taskcluster/taskcluster/v42 github.com/taskcluster/taskcluster/v43 github.com/taskcluster/taskcluster/v44 github.com/taskcluster/taskcluster/v45 github.com/taskcluster/taskcluster/v46 github.com/taskcluster/taskcluster/v47 github.com/taskcluster/taskcluster/v48 github.com/taskcluster/taskcluster/v49 github.com/taskcluster/taskcluster/v50 github.com/taskcluster/taskcluster/v51 github.com/taskcluster/taskcluster/v52 github.com/taskcluster/taskcluster/v53 github.com/taskcluster/taskcluster/v54 github.com/taskcluster/taskcluster/v55 github.com/taskcluster/taskcluster/v56 github.com/taskcluster/taskcluster/v57 github.com/taskcluster/taskcluster/v58 github.com/taskcluster/taskcluster/v59 github.com/taskcluster/taskcluster/v60 github.com/taskcluster/taskcluster/v61 github.com/taskcluster/taskcluster/v62 github.com/taskcluster/taskcluster/v63 github.com/taskcluster/taskcluster/v64