cli

package
v0.0.0-...-0d671b9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EndpointFlag is the global flag name used to store the api endpoint url
	EndpointFlag = "endpoint"
	// CertFlag is the global flag name used to store the api certificate path
	CertFlag = "cert"
)

Variables

View Source
var (
	// ErrEndpointFlagUndefined is returned when the endpoint flag cannot be found on given command
	ErrEndpointFlagUndefined = errors.New("cannot retrieve endpoint flag on given cobra command")
	// ErrCertFlagUndefined is returned when the cert flag cannot be found on given command
	ErrCertFlagUndefined = errors.New("cannot retrieve cert flag on given cobra command")
)

Functions

This section is empty.

Types

type APIClientFactory

type APIClientFactory interface {
	NewClient(cmd *cobra.Command) (C2AutomationEngineClient, error)
}

APIClientFactory allows to create pb.C2AutomationEngineClient instances

func NewAPIClientFactory

func NewAPIClientFactory() APIClientFactory

NewAPIClientFactory creates a new C2AutomationEngineClient factory

type C2AutomationEngineClient

type C2AutomationEngineClient interface {
	pb.C2AutomationEngineClient
	Close() error
}

C2AutomationEngineClient override the protobuf client definition to offer a Close method for the grpc connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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