Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrHavingStatus ¶
Types ¶
type BuildkiteOIDCProvider ¶
type BuildkiteOIDCProvider struct { }
func NewBuildkiteOIDCProvider ¶
func NewBuildkiteOIDCProvider() *BuildkiteOIDCProvider
func (*BuildkiteOIDCProvider) Name ¶
func (p *BuildkiteOIDCProvider) Name() string
func (*BuildkiteOIDCProvider) RetrieveToken ¶
func (p *BuildkiteOIDCProvider) RetrieveToken(ctx context.Context) (string, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client manages communication with the Buildkite Agent API.
type Config ¶
type Config struct { // Endpoint for API requests. Defaults to the public Buildkite Agent API. // The URL should always be specified with a trailing slash. Endpoint string // The authentication token to use, either a registration or access token Token string // User agent used when communicating with the Buildkite Agent API. UserAgent string // If true, only HTTP2 is disabled DisableHTTP2 bool // If true, requests and responses will be dumped and set to the logger DebugHTTP bool // The http client used, leave nil for the default HTTPClient *http.Client }
Config is configuration for the API Client
type ErrorResponse ¶
type ErrorResponse struct { Response *http.Response // HTTP response that caused this error Message string `json:"message"` // error message }
ErrorResponse provides a message.
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type OIDCTokenRequest ¶
Click to show internal directories.
Click to hide internal directories.