commands

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

* Copyright 2019-present Ciena Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2019-present Ciena Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

View Source
const (
	DEFAULT_OLT_DEVICE_HEADER_FORMAT = "table{{ .ID }}\t{{ .SerialNumber }}\t{{ .OperState }}\t{{ .InternalState }}"
	DEFAULT_PORT_HEADER_FORMAT       = "table{{ .ID }}\t{{ .OperState }}"
)
View Source
const (
	DEFAULT_ONU_DEVICE_HEADER_FORMAT = "" /* 152-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func RegisterCompletionCommands

func RegisterCompletionCommands(parent *flags.Parser)

func RegisterConfigCommands

func RegisterConfigCommands(parent *flags.Parser)

func RegisterLoggingCommands

func RegisterLoggingCommands(parent *flags.Parser)

func RegisterONUCommands

func RegisterONUCommands(parser *flags.Parser)

func RegisterOltCommands

func RegisterOltCommands(parser *flags.Parser)

Types

type BashOptions

type BashOptions struct{}

func (*BashOptions) Execute

func (options *BashOptions) Execute(args []string) error

type CompletionOptions

type CompletionOptions struct {
	BashOptions `command:"bash"`
}

type ConfigOptions

type ConfigOptions struct{}

func (*ConfigOptions) Execute

func (options *ConfigOptions) Execute(args []string) error

type LoggingOptions

type LoggingOptions struct {
	Args struct {
		Level  string
		Caller bool
	} `positional-args:"yes" required:"yes"`
}

func (*LoggingOptions) Execute

func (options *LoggingOptions) Execute(args []string) error

type ONUDhcpRestart added in v0.0.5

type ONUDhcpRestart struct {
	Args struct {
		OnuSn OnuSnString
	} `positional-args:"yes" required:"yes"`
}

func (*ONUDhcpRestart) Execute added in v0.0.5

func (options *ONUDhcpRestart) Execute(args []string) error

type ONUEapolRestart added in v0.0.5

type ONUEapolRestart struct {
	Args struct {
		OnuSn OnuSnString
	} `positional-args:"yes" required:"yes"`
}

func (*ONUEapolRestart) Execute added in v0.0.5

func (options *ONUEapolRestart) Execute(args []string) error

type ONUGet

type ONUGet struct {
	Args struct {
		OnuSn OnuSnString
	} `positional-args:"yes" required:"yes"`
}

func (*ONUGet) Execute

func (options *ONUGet) Execute(args []string) error

type ONUList

type ONUList struct{}

func (*ONUList) Execute

func (options *ONUList) Execute(args []string) error

type ONUOptions

type ONUOptions struct {
	List         ONUList         `command:"list"`
	Get          ONUGet          `command:"get"`
	ShutDown     ONUShutDown     `command:"shutdown"`
	PowerOn      ONUPowerOn      `command:"poweron"`
	RestartEapol ONUEapolRestart `command:"auth_restart"`
	RestartDchp  ONUDhcpRestart  `command:"dhcp_restart"`
}

type ONUPowerOn

type ONUPowerOn struct {
	Args struct {
		OnuSn OnuSnString
	} `positional-args:"yes" required:"yes"`
}

func (*ONUPowerOn) Execute

func (options *ONUPowerOn) Execute(args []string) error

type ONUShutDown

type ONUShutDown struct {
	Args struct {
		OnuSn OnuSnString
	} `positional-args:"yes" required:"yes"`
}

func (*ONUShutDown) Execute

func (options *ONUShutDown) Execute(args []string) error

type OltGet

type OltGet struct{}

func (*OltGet) Execute

func (o *OltGet) Execute(args []string) error

type OltNNIs

type OltNNIs struct{}

func (*OltNNIs) Execute

func (o *OltNNIs) Execute(args []string) error

type OltPONs

type OltPONs struct{}

func (*OltPONs) Execute

func (o *OltPONs) Execute(args []string) error

type OltPoweron added in v0.0.7

type OltPoweron struct{}

func (*OltPoweron) Execute added in v0.0.7

func (o *OltPoweron) Execute(args []string) error

type OltReboot added in v0.0.7

type OltReboot struct{}

func (*OltReboot) Execute added in v0.0.7

func (o *OltReboot) Execute(args []string) error

type OltShutdown added in v0.0.7

type OltShutdown struct{}

func (*OltShutdown) Execute added in v0.0.7

func (o *OltShutdown) Execute(args []string) error

type OnuSnString

type OnuSnString string

func (*OnuSnString) Complete

func (onuSn *OnuSnString) Complete(match string) []flags.Completion

type RpcEventHandler

type RpcEventHandler struct {
	Response proto.Message
	Status   *status.Status
	Data     []byte
	Fields   map[string]map[string]interface{}
}

func (*RpcEventHandler) GetParams

func (h *RpcEventHandler) GetParams(msg proto.Message) error

func (*RpcEventHandler) OnReceiveHeaders

func (h *RpcEventHandler) OnReceiveHeaders(metadata.MD)

func (*RpcEventHandler) OnReceiveResponse

func (h *RpcEventHandler) OnReceiveResponse(m proto.Message)

func (*RpcEventHandler) OnReceiveTrailers

func (h *RpcEventHandler) OnReceiveTrailers(s *status.Status, m metadata.MD)

func (*RpcEventHandler) OnResolveMethod

func (h *RpcEventHandler) OnResolveMethod(*desc.MethodDescriptor)

func (*RpcEventHandler) OnSendHeaders

func (h *RpcEventHandler) OnSendHeaders(metadata.MD)

Jump to

Keyboard shortcuts

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