Documentation ¶
Index ¶
- func CreateControllers(mgr *Manager, controllerManager ctrl.Manager, crdMode bool) error
- func RegisterHandlers(manager *Manager, srv *utilhttp.Server)
- type Manager
- func (m *Manager) AddAccessPolicy(policy *api.Policy) error
- func (m *Manager) AddExport(export *v1alpha1.Export)
- func (m *Manager) AddImport(imp *v1alpha1.Import)
- func (m *Manager) AddLBPolicy(policy *api.Policy) error
- func (m *Manager) AddPeer(pr *v1alpha1.Peer)
- func (m *Manager) DeleteAccessPolicy(policy *api.Policy) error
- func (m *Manager) DeleteExport(name types.NamespacedName)
- func (m *Manager) DeleteImport(name types.NamespacedName) error
- func (m *Manager) DeleteLBPolicy(policy *api.Policy) error
- func (m *Manager) DeletePeer(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateControllers ¶
CreateControllers creates the various k8s controllers used to update the xDS manager.
func RegisterHandlers ¶
RegisterHandlers registers the HTTP handlers for dataplane authz requests.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the authorization dataplane connections.
func NewManager ¶
func NewManager(peerTLS *tls.ParsedCertData) (*Manager, error)
NewManager returns a new authorization manager.
func (*Manager) AddAccessPolicy ¶
AddAccessPolicy adds an access policy to allow/deny specific connections. TODO: switch from api.Policy to v1alpha1.Policy.
func (*Manager) AddLBPolicy ¶
AddLBPolicy adds a load-balancing policy to set a load-balancing scheme for specific connections. TODO: merge this with AddImport.
func (*Manager) DeleteAccessPolicy ¶
DeleteAccessPolicy removes an access policy to allow/deny specific connections. TODO: switch from api.Policy to v1alpha1.Policy.
func (*Manager) DeleteExport ¶
func (m *Manager) DeleteExport(name types.NamespacedName)
DeleteExport removes the possibility for ingress dataplane connections to access a given service.
func (*Manager) DeleteImport ¶
func (m *Manager) DeleteImport(name types.NamespacedName) error
DeleteImport removes the listening socket of a previously imported service.
func (*Manager) DeleteLBPolicy ¶
DeleteLBPolicy removes a load-balancing policy. TODO: merge this with DeleteImport.
func (*Manager) DeletePeer ¶
DeletePeer removes the possibility for egress dataplane connections to be routed to a given peer.