provider

package
v2.1.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package provider provides functionality for the keploy provider.\

Index

Constants

This section is empty.

Variables

View Source
var CustomHelpTemplate = `` /* 375-byte string literal not displayed */
View Source
var ExampleOneClickInstall = `` /* 741-byte string literal not displayed */
View Source
var Examples = `` /* 1182-byte string literal not displayed */
View Source
var RootCustomHelpTemplate = `` /* 712-byte string literal not displayed */
View Source
var RootExamples = `` /* 387-byte string literal not displayed */
View Source
var VersionTemplate = `{{with .Version}}{{printf "Keploy %s" .}}{{end}}{{"\n"}}`
View Source
var WithoutexampleOneClickInstall = `
Note: If installed keploy without One Click Install, use "keploy example --customSetup true"
`

Functions

func LogExample

func LogExample(example string) string

Types

type CmdConfigurator

type CmdConfigurator struct {
	// contains filtered or unexported fields
}

func NewCmdConfigurator

func NewCmdConfigurator(logger *zap.Logger, config *config.Config) *CmdConfigurator

func (*CmdConfigurator) AddFlags

func (c *CmdConfigurator) AddFlags(cmd *cobra.Command) error

func (CmdConfigurator) ValidateFlags

func (c CmdConfigurator) ValidateFlags(ctx context.Context, cmd *cobra.Command) error

type CommonInternalService

type CommonInternalService struct {
	YamlTestDB      *testdb.TestYaml
	YamlMockDb      *mockdb.MockYaml
	YamlReportDb    *reportdb.TestReport
	Instrumentation *core.Core
}

type ServiceProvider

type ServiceProvider struct {
	// contains filtered or unexported fields
}

func NewServiceProvider

func NewServiceProvider(logger *zap.Logger, configDb *configdb.ConfigDb, cfg *config.Config) *ServiceProvider

func (*ServiceProvider) GetCommonServices

func (n *ServiceProvider) GetCommonServices(config config.Config) *CommonInternalService

func (*ServiceProvider) GetService

func (n *ServiceProvider) GetService(ctx context.Context, cmd string) (interface{}, error)

func (*ServiceProvider) GetTelemetryService

func (n *ServiceProvider) GetTelemetryService(ctx context.Context, config config.Config) (*telemetry.Telemetry, error)

Jump to

Keyboard shortcuts

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