Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) CreateIncident ¶
type ClientRequest ¶
type ClientRequest struct {
// contains filtered or unexported fields
}
func NewClientRequest ¶
func NewClientRequest( endpoint string, client string, clientSecret string, httpClient boshhttp.HTTPClient, logger boshlog.Logger, ) ClientRequest
func (ClientRequest) Get ¶
func (r ClientRequest) Get(path string, response interface{}) error
func (ClientRequest) Post ¶
func (r ClientRequest) Post(path string, request interface{}, response interface{}) error
type Config ¶
func NewConfigFromEnv ¶
func NewConfigFromEnv() Config
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (Factory) New ¶
func (f Factory) New(config Config) Turbulence
type Incident ¶
type Incident interface { Wait() // todo add timeout? TasksOfType(tasks.Options) []Task HasTaskErrors() bool // ExecutionStartedAt is expected to always return time, // unlike ExecutionCompletedAt which may return nil // when execution is not yet finished ExecutionStartedAt() time.Time ExecutionCompletedAt() *time.Time }
type IncidentImpl ¶
type IncidentImpl struct {
// contains filtered or unexported fields
}
func (IncidentImpl) ExecutionCompletedAt ¶
func (i IncidentImpl) ExecutionCompletedAt() *time.Time
func (IncidentImpl) ExecutionStartedAt ¶
func (i IncidentImpl) ExecutionStartedAt() time.Time
func (IncidentImpl) HasTaskErrors ¶
func (i IncidentImpl) HasTaskErrors() bool
func (IncidentImpl) TasksOfType ¶
func (i IncidentImpl) TasksOfType(example tasks.Options) []Task
func (IncidentImpl) Wait ¶
func (i IncidentImpl) Wait()
type TaskImpl ¶
type TaskImpl struct {
// contains filtered or unexported fields
}
func (TaskImpl) ExecutionCompletedAt ¶
func (TaskImpl) ExecutionStartedAt ¶
type Turbulence ¶
Turbulence client is designed to be test friendly hence it does not return errors but rather panics.
type TurbulenceImpl ¶
type TurbulenceImpl struct {
// contains filtered or unexported fields
}
func (TurbulenceImpl) CreateIncident ¶
func (t TurbulenceImpl) CreateIncident(req incident.Request) Incident
Click to show internal directories.
Click to hide internal directories.