network

package
v0.0.0-...-e749f68 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInterfaceParameters

type CreateInterfaceParameters struct {
	Name string `json:"name"`
	network.Interface
}

type DeleteInterfaceParameters

type DeleteInterfaceParameters struct {
	Name string
}

type DeleteStaticRouteParameters

type DeleteStaticRouteParameters struct {
	Index uint
}

type GetInterfaceParameters

type GetInterfaceParameters struct {
	ID string
}

type GetInterfaceResult

type GetInterfaceResult struct {
	Name string `json:"name"`
	network.Interface
}

type GetInterfacesResult

type GetInterfacesResult struct {
	Interfaces map[string]network.Interface
}

type GetLinksResult

type GetLinksResult struct {
	Links []dbus.Link
}

type GetStaticRouteParameters

type GetStaticRouteParameters struct {
	ID uint
}

type GetStaticRouteResult

type GetStaticRouteResult struct {
	network.StaticRoute
}

type GetStaticRoutesResult

type GetStaticRoutesResult struct {
	StaticRoutes []network.StaticRoute
}

type Network

type Network struct {
	ConfigManager *config.ConfigManager
	DbusConn      *dbus.Conn
}

func (*Network) CreateInterface

func (f *Network) CreateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error)

func (*Network) CreateStaticRoute

func (f *Network) CreateStaticRoute(ctx context.Context, params network.StaticRoute) (struct{}, error)

func (*Network) DeleteInterface

func (f *Network) DeleteInterface(ctx context.Context, params DeleteInterfaceParameters) (struct{}, error)

func (*Network) DeleteStaticRoute

func (f *Network) DeleteStaticRoute(ctx context.Context, params DeleteStaticRouteParameters) (struct{}, error)

func (*Network) GetInterface

func (f *Network) GetInterface(ctx context.Context, params GetInterfaceParameters) (GetInterfaceResult, error)

func (*Network) GetInterfaces

func (f *Network) GetInterfaces(ctx context.Context, params struct{}) (GetInterfacesResult, error)
func (f *Network) GetLinks(ctx context.Context, params struct{}) (GetLinksResult, error)

func (*Network) GetStaticRoute

func (f *Network) GetStaticRoute(ctx context.Context, params GetStaticRouteParameters) (GetStaticRouteResult, error)

func (*Network) GetStaticRoutes

func (f *Network) GetStaticRoutes(ctx context.Context, params struct{}) (GetStaticRoutesResult, error)

func (*Network) UpdateInterface

func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error)

func (*Network) UpdateStaticRoute

func (f *Network) UpdateStaticRoute(ctx context.Context, params UpdateStaticRouteParameters) (struct{}, error)

type UpdateInterfaceParameters

type UpdateInterfaceParameters struct {
	Name string
	network.Interface
}

type UpdateStaticRouteParameters

type UpdateStaticRouteParameters struct {
	Index uint
	network.StaticRoute
}

Jump to

Keyboard shortcuts

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