Documentation ¶
Index ¶
- func CreateAgent(env *Env, stage string) *agent.Agent
- func GenerateAlias() string
- func PrepareAPI(t *testing.T) (*Env, *RequestClient)
- func PrepareMonitoring(t *testing.T) (*Env, *agent.Agent, *RequestClient)
- func Wait(t *testing.T, predicate func() bool)
- type Config
- type DummyLeader
- type Env
- type RequestClient
- func (c *RequestClient) GetBriefInfo(alias string) strawberry.OpletBriefInfo
- func (c *RequestClient) MakeGetRequest(command string, params api.RequestParams) Response
- func (c *RequestClient) MakePostRequest(command string, params api.RequestParams) Response
- func (c *RequestClient) MakePostRequestWithFormat(command string, params api.RequestParams, format api.FormatType) Response
- func (c *RequestClient) MakeRequest(httpMethod string, command string, params api.RequestParams, ...) Response
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAlias ¶
func GenerateAlias() string
func PrepareAPI ¶
func PrepareAPI(t *testing.T) (*Env, *RequestClient)
func PrepareMonitoring ¶
Types ¶
type Config ¶ added in v0.0.7
type Config struct { Family string ControllerConfig yson.RawValue ControllerFactory strawberry.ControllerFactory ClusterInitializerFactory strawberry.ClusterInitializerFactory }
type DummyLeader ¶
type DummyLeader struct{}
func (DummyLeader) IsLeader ¶
func (a DummyLeader) IsLeader() bool
type Env ¶
func PrepareEnv ¶
type RequestClient ¶
type RequestClient struct { Endpoint string Proxy string User string Env *Env // contains filtered or unexported fields }
func PrepareClient ¶
func PrepareClient(t *testing.T, env *Env, proxy string, server *httpserver.HTTPServer) *RequestClient
func PrepareController ¶ added in v0.0.7
func (*RequestClient) GetBriefInfo ¶ added in v0.0.7
func (c *RequestClient) GetBriefInfo(alias string) strawberry.OpletBriefInfo
func (*RequestClient) MakeGetRequest ¶
func (c *RequestClient) MakeGetRequest(command string, params api.RequestParams) Response
func (*RequestClient) MakePostRequest ¶
func (c *RequestClient) MakePostRequest(command string, params api.RequestParams) Response
func (*RequestClient) MakePostRequestWithFormat ¶ added in v0.0.6
func (c *RequestClient) MakePostRequestWithFormat(command string, params api.RequestParams, format api.FormatType) Response
func (*RequestClient) MakeRequest ¶
func (c *RequestClient) MakeRequest(httpMethod string, command string, params api.RequestParams, format api.FormatType) Response
Click to show internal directories.
Click to hide internal directories.