clients

package
v0.10.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer0TestClient

type Layer0TestClient struct {
	T      Tester
	Client *client.APIClient
}

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 (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 (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) GetTask

func (l *Layer0TestClient) GetTask(id string) *models.Task

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

type STSTestClient struct {
	T      *testing.T
	Client *client.APIClient
}

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) SetHealth

func (s *STSTestClient) SetHealth(mode string) *models.Health

func (*STSTestClient) WaitForHealthy

func (s *STSTestClient) WaitForHealthy(timeout time.Duration)

type Tester added in v0.10.4

type Tester interface {
	Fatal(...interface{})
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL