Documentation
¶
Index ¶
- Constants
- type Bucket
- type BucketClient
- func (c *BucketClient) Create(ctx context.Context, opts *BucketCreateOpts) (*Bucket, error)
- func (c *BucketClient) Delete(ctx context.Context, opts *BucketDeleteOpts) error
- func (c *BucketClient) Get(ctx context.Context, opts *BucketGetOpts) (*Bucket, error)
- func (c *BucketClient) List(ctx context.Context) ([]*Bucket, error)
- type BucketCreateOpts
- type BucketDeleteOpts
- type BucketGetOpts
- type Client
- type ClientOption
- type CreatedBy
- type Emails
- type Environment
- type EnvironmentBase
- type EnvironmentClient
- func (c *EnvironmentClient) Create(ctx context.Context, opts *EnvironmentCreateOpts) (*Environment, error)
- func (c *EnvironmentClient) Delete(ctx context.Context, opts *EnvironmentDeleteOpts) error
- func (c *EnvironmentClient) Get(ctx context.Context, opts *EnvironmentGetOpts) (*Environment, error)
- func (c *EnvironmentClient) Update(ctx context.Context, opts *EnvironmentUpdateOpts) (*Environment, error)
- type EnvironmentCreateOpts
- type EnvironmentDeleteOpts
- type EnvironmentGetOpts
- type EnvironmentRemoteAgent
- type EnvironmentUpdateOpts
- type EnvironmentUriOpts
- type Error
- type Integration
- type IntegrationClient
- type IntegrationListOpts
- type Recipient
- type RemoteAgent
- type RemoteAgentClient
- type RemoteAgentListOpts
- type Schedule
- type ScheduleBase
- type ScheduleClient
- func (c *ScheduleClient) Create(ctx context.Context, opts *ScheduleCreateOpts) (*Schedule, error)
- func (c *ScheduleClient) Delete(ctx context.Context, opts *ScheduleDeleteOpts) error
- func (c *ScheduleClient) Get(ctx context.Context, opts *ScheduleGetOpts) (*Schedule, error)
- func (c *ScheduleClient) Update(ctx context.Context, opts *ScheduleUpdateOpts) (*Schedule, error)
- type ScheduleCreateOpts
- type ScheduleDeleteOpts
- type ScheduleGetOpts
- type ScheduleURLOpts
- type ScheduleUpdateOpts
- type Step
- type StepAssertion
- type StepAuth
- type StepBase
- type StepBaseOpts
- type StepClient
- func (c *StepClient) Create(ctx context.Context, opts *StepCreateOpts) (*Step, error)
- func (c *StepClient) Delete(ctx context.Context, opts *StepDeleteOpts) error
- func (c *StepClient) Get(ctx context.Context, opts *StepGetOpts) (*Step, error)
- func (c *StepClient) Update(ctx context.Context, opts *StepUpdateOpts) (*Step, error)
- type StepCreateOpts
- type StepDeleteOpts
- type StepGetOpts
- type StepUpdateOpts
- type StepUriOpts
- type StepVariable
- type Team
- type Test
- type TestClient
- func (c *TestClient) Create(ctx context.Context, opts TestCreateOpts) (*Test, error)
- func (c *TestClient) Delete(ctx context.Context, opts TestDeleteOpts) error
- func (c *TestClient) Get(ctx context.Context, opts TestGetOpts) (*Test, error)
- func (c *TestClient) Update(ctx context.Context, opts TestUpdateOpts) (*Test, error)
- type TestCreateOpts
- type TestDeleteOpts
- type TestGetOpts
- type TestMinimal
- type TestStep
- type TestUpdateOpts
Constants ¶
View Source
const DefaultEndpoint = "https://api.runscope.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { Key string Name string Team Team AuthToken string Default bool VerifySSL bool TriggerURL string }
func BucketFromSchema ¶
type BucketClient ¶
type BucketClient struct {
// contains filtered or unexported fields
}
func (*BucketClient) Create ¶
func (c *BucketClient) Create(ctx context.Context, opts *BucketCreateOpts) (*Bucket, error)
func (*BucketClient) Delete ¶
func (c *BucketClient) Delete(ctx context.Context, opts *BucketDeleteOpts) error
func (*BucketClient) Get ¶
func (c *BucketClient) Get(ctx context.Context, opts *BucketGetOpts) (*Bucket, error)
type BucketCreateOpts ¶
func (*BucketCreateOpts) URL ¶
func (opts *BucketCreateOpts) URL() string
type BucketDeleteOpts ¶
type BucketDeleteOpts struct {
BucketGetOpts
}
type BucketGetOpts ¶
type BucketGetOpts struct {
Key string
}
func (*BucketGetOpts) URL ¶
func (opts *BucketGetOpts) URL() string
type Client ¶
type Client struct { Test TestClient Environment EnvironmentClient Bucket BucketClient Integration IntegrationClient Schedule ScheduleClient Step StepClient RemoteAgent RemoteAgentClient // contains filtered or unexported fields }
func NewClient ¶
func NewClient(options ...ClientOption) *Client
type ClientOption ¶
type ClientOption func(*Client)
func WithEndpoint ¶
func WithEndpoint(endpoint string) ClientOption
func WithToken ¶
func WithToken(token string) ClientOption
type Environment ¶
type Environment struct { EnvironmentBase Id string }
func EnvironmentFromSchema ¶
func EnvironmentFromSchema(s *schema.Environment) *Environment
type EnvironmentBase ¶
type EnvironmentBase struct { Name string Script string PreserveCookies bool InitialVariables map[string]string Integrations []string Regions []string RemoteAgents []EnvironmentRemoteAgent RetryOnFailure bool StopOnFailure bool VerifySSL bool Webhooks []string Emails Emails ParentEnvironmentId string ClientCertificate string }
type EnvironmentClient ¶
type EnvironmentClient struct {
// contains filtered or unexported fields
}
func (*EnvironmentClient) Create ¶
func (c *EnvironmentClient) Create(ctx context.Context, opts *EnvironmentCreateOpts) (*Environment, error)
func (*EnvironmentClient) Delete ¶
func (c *EnvironmentClient) Delete(ctx context.Context, opts *EnvironmentDeleteOpts) error
func (*EnvironmentClient) Get ¶
func (c *EnvironmentClient) Get(ctx context.Context, opts *EnvironmentGetOpts) (*Environment, error)
func (*EnvironmentClient) Update ¶
func (c *EnvironmentClient) Update(ctx context.Context, opts *EnvironmentUpdateOpts) (*Environment, error)
type EnvironmentCreateOpts ¶
type EnvironmentCreateOpts struct { EnvironmentUriOpts EnvironmentBase }
type EnvironmentDeleteOpts ¶
type EnvironmentDeleteOpts struct {
EnvironmentGetOpts
}
type EnvironmentGetOpts ¶
type EnvironmentGetOpts struct { EnvironmentUriOpts Id string }
func (*EnvironmentGetOpts) URL ¶
func (opts *EnvironmentGetOpts) URL() string
type EnvironmentRemoteAgent ¶
type EnvironmentUpdateOpts ¶
type EnvironmentUpdateOpts struct { EnvironmentGetOpts EnvironmentBase }
type EnvironmentUriOpts ¶
func (*EnvironmentUriOpts) BaseURL ¶
func (opts *EnvironmentUriOpts) BaseURL() string
type Error ¶
type Integration ¶
func IntegrationFromSchema ¶
func IntegrationFromSchema(s schema.Integration) *Integration
type IntegrationClient ¶
type IntegrationClient struct {
// contains filtered or unexported fields
}
func (*IntegrationClient) List ¶
func (c *IntegrationClient) List(ctx context.Context, opts *IntegrationListOpts) ([]*Integration, error)
type IntegrationListOpts ¶
type IntegrationListOpts struct {
TeamId string
}
func (*IntegrationListOpts) URL ¶
func (opts *IntegrationListOpts) URL() string
type RemoteAgent ¶
func RemoteAgentFromSchema ¶
func RemoteAgentFromSchema(s schema.RemoteAgent) *RemoteAgent
type RemoteAgentClient ¶
type RemoteAgentClient struct {
// contains filtered or unexported fields
}
func (*RemoteAgentClient) List ¶
func (c *RemoteAgentClient) List(ctx context.Context, opts *RemoteAgentListOpts) ([]*RemoteAgent, error)
List returns a list of the team’s currently connected agents.
See https://api.blazemeter.com/api-monitoring/#team-agents-list
type RemoteAgentListOpts ¶
type RemoteAgentListOpts struct {
TeamUUID string
}
func (*RemoteAgentListOpts) URL ¶
func (opts *RemoteAgentListOpts) URL() string
URL returns an URL of agents list request
See https://api.blazemeter.com/api-monitoring/#team-agents-list
type Schedule ¶
type Schedule struct { ScheduleBase Id string ExportedAt time.Time }
func ScheduleFromSchema ¶
type ScheduleBase ¶
type ScheduleClient ¶
type ScheduleClient struct {
// contains filtered or unexported fields
}
func (*ScheduleClient) Create ¶
func (c *ScheduleClient) Create(ctx context.Context, opts *ScheduleCreateOpts) (*Schedule, error)
func (*ScheduleClient) Delete ¶
func (c *ScheduleClient) Delete(ctx context.Context, opts *ScheduleDeleteOpts) error
func (*ScheduleClient) Get ¶
func (c *ScheduleClient) Get(ctx context.Context, opts *ScheduleGetOpts) (*Schedule, error)
func (*ScheduleClient) Update ¶
func (c *ScheduleClient) Update(ctx context.Context, opts *ScheduleUpdateOpts) (*Schedule, error)
type ScheduleCreateOpts ¶
type ScheduleCreateOpts struct { ScheduleURLOpts ScheduleBase }
type ScheduleDeleteOpts ¶
type ScheduleDeleteOpts struct {
ScheduleGetOpts
}
type ScheduleGetOpts ¶
type ScheduleGetOpts struct { ScheduleURLOpts Id string }
func (*ScheduleGetOpts) URL ¶
func (opts *ScheduleGetOpts) URL() string
type ScheduleURLOpts ¶
func (*ScheduleURLOpts) URL ¶
func (opts *ScheduleURLOpts) URL() string
type ScheduleUpdateOpts ¶
type ScheduleUpdateOpts struct { ScheduleGetOpts ScheduleBase }
type Step ¶
func StepFromSchema ¶
type StepAssertion ¶
type StepBaseOpts ¶
type StepClient ¶
type StepClient struct {
// contains filtered or unexported fields
}
func (*StepClient) Create ¶
func (c *StepClient) Create(ctx context.Context, opts *StepCreateOpts) (*Step, error)
func (*StepClient) Delete ¶
func (c *StepClient) Delete(ctx context.Context, opts *StepDeleteOpts) error
func (*StepClient) Get ¶
func (c *StepClient) Get(ctx context.Context, opts *StepGetOpts) (*Step, error)
func (*StepClient) Update ¶
func (c *StepClient) Update(ctx context.Context, opts *StepUpdateOpts) (*Step, error)
type StepCreateOpts ¶
type StepCreateOpts struct { StepUriOpts StepBaseOpts }
type StepDeleteOpts ¶
type StepDeleteOpts struct {
StepGetOpts
}
type StepGetOpts ¶
type StepGetOpts struct { StepUriOpts Id string }
func (*StepGetOpts) URL ¶
func (opts *StepGetOpts) URL() string
type StepUpdateOpts ¶
type StepUpdateOpts struct { StepGetOpts StepBaseOpts }
type StepUriOpts ¶
func (StepUriOpts) URL ¶
func (s StepUriOpts) URL() string
type StepVariable ¶
type Test ¶
type Test struct { TestMinimal Id string DefaultEnvironmentId string Steps []TestStep CreatedAt time.Time CreatedBy CreatedBy LastRun time.Time TriggerURL string }
func TestFromSchema ¶
type TestClient ¶
type TestClient struct {
// contains filtered or unexported fields
}
func (*TestClient) Create ¶
func (c *TestClient) Create(ctx context.Context, opts TestCreateOpts) (*Test, error)
func (*TestClient) Delete ¶
func (c *TestClient) Delete(ctx context.Context, opts TestDeleteOpts) error
func (*TestClient) Get ¶
func (c *TestClient) Get(ctx context.Context, opts TestGetOpts) (*Test, error)
func (*TestClient) Update ¶
func (c *TestClient) Update(ctx context.Context, opts TestUpdateOpts) (*Test, error)
type TestCreateOpts ¶
type TestCreateOpts struct { TestMinimal BucketId string }
type TestDeleteOpts ¶
type TestGetOpts ¶
type TestMinimal ¶
type TestUpdateOpts ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.