clients

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

type Consul interface {
	// SyncIntetions will update the list of intentions in Consul to match
	// the provided source and destinations
	SyncIntentions(source []string, destination string) error
}

Consul defines an interface for a Consul client

func NewConsul

func NewConsul(httpAddr, aclToken string) (Consul, error)

NewConsul creates a new Consul client

type ConsulImpl

type ConsulImpl struct {
	// contains filtered or unexported fields
}

ConsulImpl concrete implementation of the Consul client interface

func (*ConsulImpl) SyncIntentions

func (c *ConsulImpl) SyncIntentions(source []string, destination string) error

SyncIntentions will update the list of intentions in Consul to match the provided source and destinations

type ConsulMock

type ConsulMock struct {
	Mock mock.Mock
}

ConsulMock is a mock implementation of the Consul client

func (*ConsulMock) SyncIntentions

func (c *ConsulMock) SyncIntentions(source []string, destination string) error

SyncIntentions syncs the intentions in Consul

Jump to

Keyboard shortcuts

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