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
Click to show internal directories.
Click to hide internal directories.