grpcget_cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientTransportCredentials

func ClientTransportCredentials(insecureSkipVerify bool, cacertFile, clientCertFile, clientKeyFile string) (credentials.TransportCredentials, error)

ClientTransportCredentials builds transport credentials for a GRPC client using the given properties. If cacertFile is blank, only standard trusted certs are used to verify the server certs. If clientCertFile is blank, the client will not use a client certificate. If clientCertFile is not blank then clientKeyFile must not be blank.

Types

type Cmd

type Cmd struct {
	App             *cli.App
	GrpcGet         *grpcget.GrpcGet
	GrpcDialOptions []grpc.DialOption
	Metatada        metadata.MD
	Override        CmdOverride
}

func NewCmd

func NewCmd() *Cmd

func (*Cmd) CmdDescribe

func (c *Cmd) CmdDescribe(ctx *cli.Context) error

DESCRIBE

func (*Cmd) CmdInvoke

func (c *Cmd) CmdInvoke(ctx *cli.Context) error

INVOKE

func (*Cmd) CmdList

func (c *Cmd) CmdList(ctx *cli.Context) error

LIST

func (*Cmd) InitialCheck

func (c *Cmd) InitialCheck(ctx *cli.Context) error

func (*Cmd) Run

func (c *Cmd) Run() error

type CmdOverride

type CmdOverride interface {
	OverrideTargetAddress(target string) string
	OverrideServiceName(service string) string
	OverrideDescribeSymbolName(symbol string) string
	OverrideInvokeMethodName(method string) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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