app

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrors

type APIErrors struct {
	Errors []string `json:"errors,omitempty"`
}

type App

type App struct {
	Cfn     context.CancelFunc
	RootCmd *cobra.Command

	Config *config.Config

	Logger *log.Logger

	PromptMode    bool
	PromptHistory []string
	SchemaTree    *yang.Entry
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) CapRun

func (a *App) CapRun(cmd *cobra.Command, args []string) error

func (*App) GetRequest

func (a *App) GetRequest(ctx context.Context, tName string, req *gnmi.GetRequest)

func (*App) GetRun

func (a *App) GetRun(cmd *cobra.Command, args []string) error

func (*App) GetSetRequest added in v0.10.0

func (a *App) GetSetRequest(ctx context.Context, tName string, req *gnmi.GetRequest)

func (*App) GetSetRun added in v0.10.0

func (a *App) GetSetRun(cmd *cobra.Command, args []string) error

func (*App) InitCapabilitiesFlags added in v0.9.0

func (a *App) InitCapabilitiesFlags(cmd *cobra.Command)

func (*App) InitGetFlags added in v0.9.0

func (a *App) InitGetFlags(cmd *cobra.Command)

InitGetFlags used to init or reset getCmd flags for gnmic-prompt mode

func (*App) InitGetSetFlags added in v0.10.0

func (a *App) InitGetSetFlags(cmd *cobra.Command)

InitGetSetFlags used to init or reset getsetCmd flags for gnmic-prompt mode

func (*App) InitGlobalFlags added in v0.9.0

func (a *App) InitGlobalFlags()

func (*App) InitLocker

func (a *App) InitLocker() error

func (*App) InitSetFlags added in v0.9.0

func (a *App) InitSetFlags(cmd *cobra.Command)

InitSetFlags used to init or reset setCmd flags for gnmic-prompt mode

func (*App) InitSubscribeFlags added in v0.9.0

func (a *App) InitSubscribeFlags(cmd *cobra.Command)

InitSubscribeFlags used to init or reset subscribeCmd flags for gnmic-prompt mode

func (*App) LoadProtoFiles added in v0.9.0

func (a *App) LoadProtoFiles() (desc.Descriptor, error)

func (*App) PreRun

func (a *App) PreRun(_ *cobra.Command, args []string) error

func (*App) PrintMsg

func (a *App) PrintMsg(address string, msgName string, msg proto.Message) error

func (*App) ReqCapabilities

func (a *App) ReqCapabilities(ctx context.Context, tName string)

func (*App) SetRequest

func (a *App) SetRequest(ctx context.Context, tName string, req *gnmi.SetRequest)

func (*App) SetRun

func (a *App) SetRun(cmd *cobra.Command, args []string) error

func (*App) SubscribeRun

func (a *App) SubscribeRun(cmd *cobra.Command, args []string) error

func (*App) SubscribeRunONCE

func (a *App) SubscribeRunONCE(cmd *cobra.Command, args []string) error

func (*App) SubscribeRunPoll

func (a *App) SubscribeRunPoll(cmd *cobra.Command, args []string) error

func (*App) SubscribeRunPrompt

func (a *App) SubscribeRunPrompt(cmd *cobra.Command, args []string) error

func (*App) VersionRun

func (a *App) VersionRun(cmd *cobra.Command, args []string)

func (*App) VersionUpgradeRun

func (a *App) VersionUpgradeRun(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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