Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
BuildUrl(paths ...interface{}) string
Context() *config.Context
CreateMapSet(mapset *MapSet) (*CreateMapSetResponse, error)
CreateScenario(org string, mapsetId uint64, scenarioData io.Reader) (*ScenarioResponse, error)
GetScenario(id int) (*ScenarioResponse, error)
DeleteAPIKey() error
Login(login string, password string) error
TestAPIKey(apiKey string) (bool, error)
}
func MakeClient ¶
func MakeTestClient ¶
func MakeTestClient() Client
type CreateMapSetResponse ¶
type MapSet ¶
type MapSet struct {
Application string `json:"app,omitempty"`
Commit string `json:"commit,omitempty"`
Branch string `json:"branch,omitempty"`
Version string `json:"version,omitempty"`
Environment string `json:"environment,omitempty"`
Scenarios []string `json:"scenarios,omitempty"`
}
func BuildMapSet ¶
func (*MapSet) SetEnvironment ¶
func (*MapSet) SetVersion ¶
type ScenarioResponse ¶
type ScenarioResponse struct {
UUID string
}
Click to show internal directories.
Click to hide internal directories.