Documentation
¶
Index ¶
- func CreateTestServer(t *testing.T) *testutil.TestServer
- type Agent
- type Agents
- type Auth
- type ConcurrentAgents
- type Config
- type Consul
- func (c *Consul) AddAgent(agentAddress string) error
- func (c *Consul) AddAgentsFromApps(apps []*apps.App)
- func (c *Consul) Deregister(toDeregister *service.Service) error
- func (c *Consul) DeregisterByTask(taskID apps.TaskID) error
- func (c *Consul) GetAllServices() ([]*service.Service, error)
- func (c *Consul) GetServices(name string) ([]*service.Service, error)
- func (c *Consul) Register(task *apps.Task, app *apps.App) error
- type ServicesProvider
- type Stub
- func (c *Stub) Deregister(toDeregister *service.Service) error
- func (c *Stub) DeregisterByTask(taskID apps.TaskID) error
- func (c *Stub) FailDeregisterByTaskForID(taskID apps.TaskID)
- func (c *Stub) FailDeregisterForID(serviceID service.ServiceId)
- func (c *Stub) FailGetServicesForName(failOnName string)
- func (c *Stub) FailRegisterForID(taskID apps.TaskID)
- func (c *Stub) GetAllServices() ([]*service.Service, error)
- func (c *Stub) GetServices(name string) ([]*service.Service, error)
- func (c *Stub) Register(task *apps.Task, app *apps.App) error
- func (c *Stub) RegisterOnlyFirstRegistrationIntent(task *apps.Task, app *apps.App)
- func (c *Stub) RegisterWithoutMarathonTaskTag(task *apps.Task, app *apps.App)
- func (c *Stub) RegisteredTaskIDs() []apps.TaskID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestServer ¶ added in v1.0.0
func CreateTestServer(t *testing.T) *testutil.TestServer
Types ¶
type Agent ¶ added in v0.3.6
func (*Agent) ClearFailures ¶ added in v0.3.6
func (a *Agent) ClearFailures()
func (*Agent) IncFailures ¶ added in v0.3.6
type ConcurrentAgents ¶
type ConcurrentAgents struct {
// contains filtered or unexported fields
}
func NewAgents ¶
func NewAgents(config *Config) *ConcurrentAgents
func (*ConcurrentAgents) GetAgent ¶
func (a *ConcurrentAgents) GetAgent(agentAddress string) (*consulapi.Client, error)
func (*ConcurrentAgents) GetAnyAgent ¶
func (a *ConcurrentAgents) GetAnyAgent() (*Agent, error)
func (*ConcurrentAgents) RemoveAgent ¶ added in v0.3.4
func (a *ConcurrentAgents) RemoveAgent(agentAddress string)
type Consul ¶
type Consul struct {
// contains filtered or unexported fields
}
func ClientAtServer ¶ added in v1.0.0
func ClientAtServer(server *testutil.TestServer) *Consul
func FailingClient ¶ added in v1.0.0
func FailingClient() *Consul
func (*Consul) AddAgentsFromApps ¶ added in v1.0.0
func (*Consul) DeregisterByTask ¶ added in v1.0.0
func (*Consul) GetServices ¶ added in v0.3.1
type ServicesProvider ¶ added in v0.3.4
type Stub ¶ added in v1.0.0
TODO this should be a service registry stub in the service package, requires abstracting from AgentServiceRegistration
func NewConsulStub ¶
func NewConsulStub() *Stub
func NewConsulStubWithTag ¶ added in v0.3.2
func (*Stub) Deregister ¶ added in v1.0.0
func (*Stub) DeregisterByTask ¶ added in v1.0.0
func (*Stub) FailDeregisterByTaskForID ¶ added in v1.0.0
func (*Stub) FailDeregisterForID ¶ added in v1.0.0
func (*Stub) FailGetServicesForName ¶ added in v1.0.0
func (*Stub) FailRegisterForID ¶ added in v1.0.0
func (*Stub) GetAllServices ¶ added in v1.0.0
func (*Stub) GetServices ¶ added in v1.0.0
func (*Stub) RegisterOnlyFirstRegistrationIntent ¶ added in v1.0.0
func (*Stub) RegisterWithoutMarathonTaskTag ¶ added in v1.0.0
func (*Stub) RegisteredTaskIDs ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.