app

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 7 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) DeleteTunIface

func (r *Registry) DeleteTunIface(name string)

func (*Registry) RegisterTunIface

func (r *Registry) RegisterTunIface(iface *iproute2.TunIface) error

func (*Registry) TunIface

func (r *Registry) TunIface(name string) (*iproute2.TunIface, bool)

type Setup

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

func NewSetup

func NewSetup(config *config.SRv6Config) *Setup

func (*Setup) AddTasks

func (s *Setup) AddTasks()

Add tasks to setup

func (*Setup) Exit

func (s *Setup) Exit()

Exit

func (*Setup) Init

func (s *Setup) Init() error

Init

func (*Setup) RegisterTask

func (s *Setup) RegisterTask(name string, task tasks_api.Task)

func (*Setup) Run

func (s *Setup) Run() error

Run

func (*Setup) RunExitTask

func (s *Setup) RunExitTask(name string) error

Runs exist task by name

func (*Setup) RunInitTask

func (s *Setup) RunInitTask(name string) error

Runs init task by name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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