Documentation
¶
Index ¶
- type ServiceController
- func (s *ServiceController) Create(ctx context.Context, srv *network_v1alpha.Service, meta *entity.Meta) error
- func (s *ServiceController) Delete(ctx context.Context, id entity.Id) error
- func (s *ServiceController) Init(ctx context.Context) error
- func (s *ServiceController) UpdateEndpoints(ctx context.Context, event controller.Event) ([]entity.Attr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceController ¶
type ServiceController struct {
Log *slog.Logger
EAC *entityserver_v1alpha.EntityAccessClient
IPv4Routable netip.Prefix `asm:"ip4-routable"`
ServicePrefixes []netip.Prefix `asm:"service-prefixes"`
DisableLocalNet bool `asm:"disable-localnet,optional"`
// contains filtered or unexported fields
}
func (*ServiceController) Create ¶
func (s *ServiceController) Create(ctx context.Context, srv *network_v1alpha.Service, meta *entity.Meta) error
func (*ServiceController) UpdateEndpoints ¶
func (s *ServiceController) UpdateEndpoints(ctx context.Context, event controller.Event) ([]entity.Attr, error)
Click to show internal directories.
Click to hide internal directories.