rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(manager *Manager, srv *rest.Server)

RegisteHandlers registers the HTTP handlers for REST requests.

Types

type Manager

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

Manager of a controlplane, where all API servers delegate their requested actions to.

func NewManager

func NewManager(
	namespace string,
	storeManager store.Manager,
	xdsManager *xds.Manager,
	authzManager *authz.Manager,
	controlManager *control.Manager,
) (*Manager, error)

NewManager returns a new controlplane CRUD manager.

func (*Manager) CreateAccessPolicy

func (m *Manager) CreateAccessPolicy(policy *store.AccessPolicy) error

CreateAccessPolicy creates an access policy to allow/deny specific connections.

func (*Manager) CreateExport

func (m *Manager) CreateExport(export *store.Export) error

CreateExport defines a new route target for ingress dataplane connections.

func (*Manager) CreateImport

func (m *Manager) CreateImport(imp *store.Import) error

CreateImport creates a listening socket for an imported remote service.

func (*Manager) CreateLBPolicy

func (m *Manager) CreateLBPolicy(policy *store.LBPolicy) error

CreateLBPolicy creates a load-balancing policy to set a load-balancing scheme for specific connections.

func (*Manager) CreatePeer

func (m *Manager) CreatePeer(peer *store.Peer) error

CreatePeer defines a new route target for egress dataplane connections.

func (*Manager) DeleteAccessPolicy

func (m *Manager) DeleteAccessPolicy(name string) (*store.AccessPolicy, error)

DeleteAccessPolicy removes an access policy to allow/deny specific connections.

func (*Manager) DeleteExport

func (m *Manager) DeleteExport(name string) (*store.Export, error)

DeleteExport removes the possibility for ingress dataplane connections to access a given service.

func (*Manager) DeleteImport

func (m *Manager) DeleteImport(name string) (*store.Import, error)

DeleteImport removes the listening socket of a previously imported service.

func (*Manager) DeleteLBPolicy

func (m *Manager) DeleteLBPolicy(name string) (*store.LBPolicy, error)

DeleteLBPolicy removes a load-balancing policy.

func (*Manager) DeletePeer

func (m *Manager) DeletePeer(name string) (*store.Peer, error)

DeletePeer removes the possibility for egress dataplane connections to be routed to a given peer.

func (*Manager) GetAccessPolicy

func (m *Manager) GetAccessPolicy(name string) *store.AccessPolicy

GetAccessPolicy returns an access policy with the given name.

func (*Manager) GetAllAccessPolicies

func (m *Manager) GetAllAccessPolicies() []*store.AccessPolicy

GetAllAccessPolicies returns the list of all AccessPolicies.

func (*Manager) GetAllExports

func (m *Manager) GetAllExports() []*store.Export

GetAllExports returns the list of all exports.

func (*Manager) GetAllImports

func (m *Manager) GetAllImports() []*store.Import

GetAllImports returns the list of all imports.

func (*Manager) GetAllLBPolicies

func (m *Manager) GetAllLBPolicies() []*store.LBPolicy

GetAllLBPolicies returns the list of all load-balancing Policies.p.

func (*Manager) GetAllPeers

func (m *Manager) GetAllPeers() []*store.Peer

GetAllPeers returns the list of all peers.

func (*Manager) GetExport

func (m *Manager) GetExport(name string) *store.Export

GetExport returns an existing export.

func (*Manager) GetImport

func (m *Manager) GetImport(name string) *store.Import

GetImport returns an existing import.

func (*Manager) GetLBPolicy

func (m *Manager) GetLBPolicy(name string) *store.LBPolicy

GetLBPolicy returns a load-balancing policy with the given name.

func (*Manager) GetPeer

func (m *Manager) GetPeer(name string) *store.Peer

GetPeer returns an existing peer.

func (*Manager) UpdateAccessPolicy

func (m *Manager) UpdateAccessPolicy(policy *store.AccessPolicy) error

UpdateAccessPolicy updates an access policy to allow/deny specific connections.

func (*Manager) UpdateExport

func (m *Manager) UpdateExport(export *store.Export) error

UpdateExport updates a new route target for ingress dataplane connections.

func (*Manager) UpdateImport

func (m *Manager) UpdateImport(imp *store.Import) error

UpdateImport updates a listening socket for an imported remote service.

func (*Manager) UpdateLBPolicy

func (m *Manager) UpdateLBPolicy(policy *store.LBPolicy) error

UpdateLBPolicy updates a load-balancing policy.

func (*Manager) UpdatePeer

func (m *Manager) UpdatePeer(peer *store.Peer) error

UpdatePeer updates new route target for egress dataplane connections.

Jump to

Keyboard shortcuts

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