Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenRefresh = errors.New("token validity check failed")
ErrTokenRefresh marks refresh failures, which must not be retried: a rotated refresh token can't be reused.
Functions ¶
func IsAuthError ¶ added in v1.40.0
IsAuthError reports whether the CRE API rejected the credentials themselves.
func IsRetryable ¶ added in v1.40.0
IsRetryable reports whether a failed request is worth repeating. Context errors are excluded so callers' cancellations and deadlines are honoured.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(creds *credentials.Credentials, environmentSet *environments.EnvironmentSet, l *zerolog.Logger) *Client
type HTTPStatusError ¶ added in v1.40.0
HTTPStatusError is returned when the CRE API responds with an unhandled non-2xx status. Message holds only the GraphQL error message; raw bodies stay out so they never reach telemetry.
func (*HTTPStatusError) Error ¶ added in v1.40.0
func (e *HTTPStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.