Documentation ¶
Index ¶
- type Layer0TestClient
- func (l *Layer0TestClient) CreateDeploy(name string, content []byte) *models.Deploy
- func (l *Layer0TestClient) CreateEnvironment(name string) *models.Environment
- func (l *Layer0TestClient) CreateLink(id1, id2 string)
- func (l *Layer0TestClient) CreateLoadBalancer(name, environmentID string) *models.LoadBalancer
- func (l *Layer0TestClient) CreateService(name, environmentID, deployID, loadBalancerID string) *models.Service
- func (l *Layer0TestClient) CreateTask(taskName, environmentID, deployID string, overrides []models.ContainerOverride) string
- func (l *Layer0TestClient) DeleteLink(id1, id2 string)
- func (l *Layer0TestClient) GetDeploy(id string) *models.Deploy
- func (l *Layer0TestClient) GetEnvironment(id string) *models.Environment
- func (l *Layer0TestClient) GetLoadBalancer(id string) *models.LoadBalancer
- func (l *Layer0TestClient) GetService(id string) *models.Service
- func (l *Layer0TestClient) GetTask(id string) *models.Task
- func (l *Layer0TestClient) ListDeploys() []*models.DeploySummary
- func (l *Layer0TestClient) ListEnvironments() []*models.EnvironmentSummary
- func (l *Layer0TestClient) ListLoadBalancers() []*models.LoadBalancerSummary
- func (l *Layer0TestClient) ListServices() []*models.ServiceSummary
- func (l *Layer0TestClient) ListTasks() []*models.TaskSummary
- func (l *Layer0TestClient) ScaleService(id string, scale int) *models.Service
- type STSTestClient
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer0TestClient ¶
func NewLayer0TestClient ¶
func NewLayer0TestClient(t Tester, endpoint, token string) *Layer0TestClient
func (*Layer0TestClient) CreateDeploy ¶
func (l *Layer0TestClient) CreateDeploy(name string, content []byte) *models.Deploy
func (*Layer0TestClient) CreateEnvironment ¶
func (l *Layer0TestClient) CreateEnvironment(name string) *models.Environment
func (*Layer0TestClient) CreateLink ¶
func (l *Layer0TestClient) CreateLink(id1, id2 string)
func (*Layer0TestClient) CreateLoadBalancer ¶
func (l *Layer0TestClient) CreateLoadBalancer(name, environmentID string) *models.LoadBalancer
func (*Layer0TestClient) CreateService ¶
func (l *Layer0TestClient) CreateService(name, environmentID, deployID, loadBalancerID string) *models.Service
func (*Layer0TestClient) CreateTask ¶
func (l *Layer0TestClient) CreateTask(taskName, environmentID, deployID string, overrides []models.ContainerOverride) string
func (*Layer0TestClient) DeleteLink ¶
func (l *Layer0TestClient) DeleteLink(id1, id2 string)
func (*Layer0TestClient) GetDeploy ¶ added in v0.10.4
func (l *Layer0TestClient) GetDeploy(id string) *models.Deploy
func (*Layer0TestClient) GetEnvironment ¶
func (l *Layer0TestClient) GetEnvironment(id string) *models.Environment
func (*Layer0TestClient) GetLoadBalancer ¶ added in v0.10.4
func (l *Layer0TestClient) GetLoadBalancer(id string) *models.LoadBalancer
func (*Layer0TestClient) GetService ¶
func (l *Layer0TestClient) GetService(id string) *models.Service
func (*Layer0TestClient) ListDeploys ¶ added in v0.10.4
func (l *Layer0TestClient) ListDeploys() []*models.DeploySummary
func (*Layer0TestClient) ListEnvironments ¶ added in v0.10.4
func (l *Layer0TestClient) ListEnvironments() []*models.EnvironmentSummary
func (*Layer0TestClient) ListLoadBalancers ¶ added in v0.10.4
func (l *Layer0TestClient) ListLoadBalancers() []*models.LoadBalancerSummary
func (*Layer0TestClient) ListServices ¶ added in v0.10.4
func (l *Layer0TestClient) ListServices() []*models.ServiceSummary
func (*Layer0TestClient) ListTasks ¶
func (l *Layer0TestClient) ListTasks() []*models.TaskSummary
func (*Layer0TestClient) ScaleService ¶
func (l *Layer0TestClient) ScaleService(id string, scale int) *models.Service
type STSTestClient ¶
func NewSTSTestClient ¶
func NewSTSTestClient(t *testing.T, url string) *STSTestClient
func (*STSTestClient) GetHealth ¶
func (s *STSTestClient) GetHealth() *models.Health
func (*STSTestClient) RunCommand ¶
func (s *STSTestClient) RunCommand(args ...string) (string, error)
func (*STSTestClient) WaitForHealthy ¶
func (s *STSTestClient) WaitForHealthy(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.