Documentation ¶
Index ¶
- type CreateInterfaceParameters
- type DeleteInterfaceParameters
- type DeleteStaticRouteParameters
- type GetInterfaceParameters
- type GetInterfaceResult
- type GetInterfacesResult
- type GetLinksResult
- type GetStaticRouteParameters
- type GetStaticRouteResult
- type GetStaticRoutesResult
- type Network
- func (f *Network) CreateInterface(ctx context.Context, params CreateInterfaceParameters) (struct{}, error)
- func (f *Network) CreateStaticRoute(ctx context.Context, params network.StaticRoute) (struct{}, error)
- func (f *Network) DeleteInterface(ctx context.Context, params DeleteInterfaceParameters) (struct{}, error)
- func (f *Network) DeleteStaticRoute(ctx context.Context, params DeleteStaticRouteParameters) (struct{}, error)
- func (f *Network) GetInterface(ctx context.Context, params GetInterfaceParameters) (GetInterfaceResult, error)
- func (f *Network) GetInterfaces(ctx context.Context, params struct{}) (GetInterfacesResult, error)
- func (f *Network) GetLinks(ctx context.Context, params struct{}) (GetLinksResult, error)
- func (f *Network) GetStaticRoute(ctx context.Context, params GetStaticRouteParameters) (GetStaticRouteResult, error)
- func (f *Network) GetStaticRoutes(ctx context.Context, params struct{}) (GetStaticRoutesResult, error)
- func (f *Network) UpdateInterface(ctx context.Context, params UpdateInterfaceParameters) (struct{}, error)
- func (f *Network) UpdateStaticRoute(ctx context.Context, params UpdateStaticRouteParameters) (struct{}, error)
- type UpdateInterfaceParameters
- type UpdateStaticRouteParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteInterfaceParameters ¶
type DeleteInterfaceParameters struct {
Name string
}
type DeleteStaticRouteParameters ¶
type DeleteStaticRouteParameters struct {
Index uint
}
type GetInterfaceParameters ¶
type GetInterfaceParameters struct {
ID string
}
type GetInterfaceResult ¶
type GetInterfacesResult ¶
type GetLinksResult ¶
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 (*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 (*Network) GetLinks ¶
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 UpdateStaticRouteParameters ¶
type UpdateStaticRouteParameters struct { Index uint network.StaticRoute }
Click to show internal directories.
Click to hide internal directories.