Documentation ¶
Index ¶
- Constants
- type ControllerRegistryTask
- type DBTask
- type FakeTask
- type HookMulti
- type HttpServerTask
- type Registry
- type SingleHook
- type TaskBlackhole
- type TaskDummyIface
- type TaskIPRule
- type TaskLinuxEndpoint
- type TaskLinuxHeadend
- type TaskLinuxHeadendSetSourceAddress
- type TaskNextMNEndpoint
- type TaskNextMNHeadend
- type TaskNextMNHeadendWithCtrl
- type TaskTunIface
- type WithName
- type WithState
Constants ¶
const UserAgent = "go-github-nextmn-srv6"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerRegistryTask ¶ added in v0.0.12
type ControllerRegistryTask struct { WithName WithState ControllerRegistry *ctrl.ControllerRegistry SetupRegistry app_api.Registry // contains filtered or unexported fields }
ControllerRegistry registers and unregisters into controller
func NewControllerRegistryTask ¶ added in v0.0.12
func NewControllerRegistryTask(name string, remoteControlURI jsonapi.ControlURI, backbone n4tosrv6.BackboneIP, locator n4tosrv6.Locator, localControlURI jsonapi.ControlURI, setup_registry app_api.Registry) *ControllerRegistryTask
Create a new ControllerRegistry
func (*ControllerRegistryTask) RunExit ¶ added in v0.0.12
func (t *ControllerRegistryTask) RunExit() error
Exit
type DBTask ¶ added in v0.0.12
DBTask initializes the database
type HookMulti ¶
HookMulti is a Task that runs 2 SingleHook
func NewMultiHook ¶
Creates a new MultiHook
type HttpServerTask ¶ added in v0.0.11
HttpServerTask starts an http server
func NewHttpServerTask ¶ added in v0.0.11
func NewHttpServerTask(name string, httpAddr netip.AddrPort, setupRegistry app_api.Registry) *HttpServerTask
Create a new HttpServerTask
type Registry ¶ added in v0.0.12
func NewRegistry ¶ added in v0.0.12
func NewRegistry() *Registry
type SingleHook ¶
type SingleHook struct {
// contains filtered or unexported fields
}
HookSingle
func NewSingleHook ¶
func NewSingleHook(name string, cmd *string) SingleHook
Creates a new SingleHook
func (SingleHook) Name ¶ added in v0.0.12
func (h SingleHook) Name() string
type TaskBlackhole ¶
TaskBlackhole
func NewTaskBlackhole ¶
func NewTaskBlackhole(name string, table_name string) *TaskBlackhole
Create a new TaskBlackhole
type TaskDummyIface ¶
TaskDummyIface
func NewTaskDummyIface ¶
func NewTaskDummyIface(name string, iface_name string) *TaskDummyIface
Create a new Task for DummyIface
type TaskIPRule ¶
TaskIPRule
func NewTaskIP4Rule ¶
func NewTaskIP4Rule(name string, prefix netip.Prefix, table_name string) *TaskIPRule
Create a new Task for IPRule
func NewTaskIP6Rule ¶
func NewTaskIP6Rule(name string, prefix netip.Prefix, table_name string) *TaskIPRule
Create a new Task for IPRule
type TaskLinuxEndpoint ¶
TaskLinuxEndpoint creates a new linux endpoint
func NewTaskLinuxEndpoint ¶
func NewTaskLinuxEndpoint(name string, endpoint *config.Endpoint, table_name string, iface_name string) *TaskLinuxEndpoint
Create a new TaskLinuxEndpoint
type TaskLinuxHeadend ¶
TaskLinuxHeadend creates a new linux headend
func NewTaskLinuxHeadend ¶
func NewTaskLinuxHeadend(name string, headend *config.Headend, table_name string, iface_name string) *TaskLinuxHeadend
Create a new TaskLinuxHeadend
type TaskLinuxHeadendSetSourceAddress ¶
type TaskLinuxHeadendSetSourceAddress struct { WithName WithState // contains filtered or unexported fields }
TaskLinuxHeadendSetSourceAddress
func NewTaskLinuxHeadendSetSourceAddress ¶
func NewTaskLinuxHeadendSetSourceAddress(name string, address netip.Addr) *TaskLinuxHeadendSetSourceAddress
Create a new TaskLinuxHeadendSetSourceAddress
func (*TaskLinuxHeadendSetSourceAddress) RunExit ¶
func (t *TaskLinuxHeadendSetSourceAddress) RunExit() error
Exit
type TaskNextMNEndpoint ¶
TaskNextMNEndpoint creates a new endpoint
func NewTaskNextMNEndpoint ¶
func NewTaskNextMNEndpoint(name string, endpoint *config.Endpoint, table_name string, iface_name string, registry app_api.Registry) *TaskNextMNEndpoint
Create a new TaskNextMNEndpoint
type TaskNextMNHeadend ¶
TaskNextMNHeadend creates a new headend
func NewTaskNextMNHeadend ¶
func NewTaskNextMNHeadend(name string, headend *config.Headend, table_name string, iface_name string, registry app_api.Registry) *TaskNextMNHeadend
Create a new TaskNextMNHeadend
type TaskNextMNHeadendWithCtrl ¶ added in v0.0.12
type TaskNextMNHeadendWithCtrl struct { WithName WithState // contains filtered or unexported fields }
TaskNextMNHeadend creates a new headend
func NewTaskNextMNHeadendWithCtrl ¶ added in v0.0.12
func NewTaskNextMNHeadendWithCtrl(name string, headend *config.Headend, table_name string, iface_name string, registry app_api.Registry) *TaskNextMNHeadendWithCtrl
Create a new TaskNextMNHeadend
func (*TaskNextMNHeadendWithCtrl) RunExit ¶ added in v0.0.12
func (t *TaskNextMNHeadendWithCtrl) RunExit() error
Exit
type TaskTunIface ¶
TaskTunIface
func NewTaskTunIface ¶
func NewTaskTunIface(name string, iface_name string, registry app_api.Registry) *TaskTunIface
Create a new Task for TunIface
Source Files ¶
- blackhole.go
- controller-registry.go
- db.go
- dummy-iface.go
- fake.go
- http-server.go
- iprule.go
- linux-endpoint.go
- linux-headend-set-source-address.go
- linux-headend.go
- multi-hook.go
- nextmn-endpoint.go
- nextmn-headend-ctrl.go
- nextmn-headend.go
- registry.go
- single-hook.go
- tun-iface.go
- with-name.go
- with-state.go