Documentation
¶
Index ¶
- Variables
- func GetConcourseMetadata(event interface{}) (resource.Metadata, error)
- func GetEventID(event interface{}) (string, error)
- type APIClient
- func (a *APIClient) CreateInstantEvent(name string, annotations map[string]string, tags []string) ([]byte, error)
- func (a *APIClient) EndOngoingEvent(eventID string, eventJSON []byte, newAnnotations map[string]string) ([]byte, error)
- func (a *APIClient) GetEventJSON(eventID string) ([]byte, error)
- func (a *APIClient) StartOngoingEvent(name string, annotations map[string]string, tags []string) ([]byte, error)
- type AuthRoundTripper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadResponseStatus = errors.New("invalid response status code")
ErrBadResponseStatus will be returned when a response code doesn't match the API specification
Functions ¶
func GetConcourseMetadata ¶
GetConcourseMetadata will return the following key-value pairs:
key: name, value: <event name> key: state, value: <event state>
func GetEventID ¶
GetEventID simply returns the ID of the event as specified in an event JSON block
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) CreateInstantEvent ¶
func (*APIClient) EndOngoingEvent ¶
type AuthRoundTripper ¶
type AuthRoundTripper struct {
// contains filtered or unexported fields
}
func (*AuthRoundTripper) GetDelegate ¶
func (a *AuthRoundTripper) GetDelegate() http.RoundTripper
Click to show internal directories.
Click to hide internal directories.