Documentation ¶
Overview ¶
Package magmad provides functions for taking actions at connected gateways.
Index ¶
- func GatewayGenericCommand(networkId string, gatewayId string, params *protos.GenericCommandParams) (*protos.GenericCommandResponse, error)
- func GatewayPing(networkId string, gatewayId string, packets int32, hosts []string) (*protos.NetworkTestResponse, error)
- func GatewayReboot(networkId string, gatewayId string) error
- func GatewayRestartServices(networkId string, gatewayId string, services []string) error
- func TailGatewayLogs(networkId string, gatewayId string, service string) (protos.Magmad_TailLogsClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatewayGenericCommand ¶
func GatewayGenericCommand(networkId string, gatewayId string, params *protos.GenericCommandParams) (*protos.GenericCommandResponse, error)
GatewayGenericCommand runs a generic command at a gateway. If gateway not registered, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
func GatewayPing ¶
func GatewayPing(networkId string, gatewayId string, packets int32, hosts []string) (*protos.NetworkTestResponse, error)
GatewayPing sends pings from a gateway to a set of hosts. If gateway not registered, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
func GatewayReboot ¶
GatewayReboot reboots a gateway. If gateway not registered, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
func GatewayRestartServices ¶
GatewayRestartServices restarts services at a gateway. If gateway not registered, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
func TailGatewayLogs ¶
func TailGatewayLogs(networkId string, gatewayId string, service string) (protos.Magmad_TailLogsClient, error)
TailGatewayLogs If gateway not registered, returns ErrNotFound from "github.com/go-magma/magma/lib/go/errors.
Types ¶
This section is empty.