Documentation ¶
Index ¶
- type Dataplane
- func (d *Dataplane) AddCluster(c *cluster.Cluster)
- func (d *Dataplane) AddListener(ln *listener.Listener)
- func (d *Dataplane) AddSecret(secret *tlsv3.Secret) error
- func (d *Dataplane) CreateListener(name, ip string, port uint32)
- func (d *Dataplane) GetClusterHost(name string) (string, error)
- func (d *Dataplane) GetClusterHostname(name string) (string, error)
- func (d *Dataplane) GetClusterTarget(name string) (string, error)
- func (d *Dataplane) GetClusters() map[string]*cluster.Cluster
- func (d *Dataplane) GetListeners() map[string]*listener.Listener
- func (d *Dataplane) IsReady() bool
- func (d *Dataplane) RemoveCluster(name string)
- func (d *Dataplane) RemoveListener(name string)
- func (d *Dataplane) StartDataplaneServer(dataplaneServerAddress string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dataplane ¶
type Dataplane struct { ID string // contains filtered or unexported fields }
Dataplane implements the server and api client which sends authorization to the control plane. Assumption: The caller implements lock mechanism which operating with clusters and listeners.
func NewDataplane ¶
func NewDataplane( dataplaneID string, controlplaneClient grpc.ClientConnInterface, parsedCertData *utiltls.ParsedCertData, ) *Dataplane
NewDataplane returns a new dataplane HTTP server.
func (*Dataplane) AddCluster ¶
AddCluster adds/updates a cluster to the map.
func (*Dataplane) AddListener ¶
AddListener adds a listener to the map.
func (*Dataplane) CreateListener ¶
CreateListener starts a listener to an imported service.
func (*Dataplane) GetClusterHost ¶
GetClusterHost returns the cluster hostname after trimming ":".
func (*Dataplane) GetClusterHostname ¶ added in v0.3.0
GetClusterHostname returns the cluster hostname.
func (*Dataplane) GetClusterTarget ¶
GetClusterTarget returns the cluster address:port from the cluster map.
func (*Dataplane) GetClusters ¶
GetClusters returns the clusters map.
func (*Dataplane) GetListeners ¶
GetListeners returns the listeners map.
func (*Dataplane) RemoveCluster ¶
RemoveCluster adds a cluster to the map.
func (*Dataplane) RemoveListener ¶
RemoveListener removes a listener.
func (*Dataplane) StartDataplaneServer ¶
StartDataplaneServer starts the Dataplane server.