Documentation ¶
Overview ¶
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2024 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2024 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Index ¶
- 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 ¶
This section is empty.
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 }
ControllerRegistry registers and unregisters into controller
func NewControllerRegistryTask ¶ added in v0.0.12
func NewControllerRegistryTask(name string, remoteControlURI string, backbone netip.Addr, locator string, localControlURI string, setup_registry app_api.Registry) *ControllerRegistryTask
Create a new ControllerRegistry
func (*ControllerRegistryTask) RunExit ¶ added in v0.0.12
func (t *ControllerRegistryTask) RunExit() error
Exit
func (*ControllerRegistryTask) RunInit ¶ added in v0.0.12
func (t *ControllerRegistryTask) RunInit() error
Init
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 string, 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
func (*TaskDummyIface) RunInit ¶
func (t *TaskDummyIface) RunInit() error
Create and set up the Iface
type TaskIPRule ¶
TaskIPRule
func NewTaskIP4Rule ¶
func NewTaskIP4Rule(name string, prefix string, table_name string) *TaskIPRule
Create a new Task for IPRule
func NewTaskIP6Rule ¶
func NewTaskIP6Rule(name string, prefix string, 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 string) *TaskLinuxHeadendSetSourceAddress
Create a new TaskLinuxHeadendSetSourceAddress
func (*TaskLinuxHeadendSetSourceAddress) RunExit ¶
func (t *TaskLinuxHeadendSetSourceAddress) RunExit() error
Exit
func (*TaskLinuxHeadendSetSourceAddress) RunInit ¶
func (t *TaskLinuxHeadendSetSourceAddress) RunInit() error
Init
type TaskNextMNEndpoint ¶
TaskNextMNEndpoint creates a new endpoint
type TaskNextMNHeadend ¶
TaskNextMNHeadend creates a new headend
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, debug bool) *TaskNextMNHeadendWithCtrl
Create a new TaskNextMNHeadend
func (*TaskNextMNHeadendWithCtrl) RunExit ¶ added in v0.0.12
func (t *TaskNextMNHeadendWithCtrl) RunExit() error
Exit
func (*TaskNextMNHeadendWithCtrl) RunInit ¶ added in v0.0.12
func (t *TaskNextMNHeadendWithCtrl) RunInit() error
Init
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