provider

package
v2.2.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 32 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 = `` /* 744-byte string literal not displayed */
View Source
var Examples = `` /* 1186-byte string literal not displayed */
View Source
var RootCustomHelpTemplate = `` /* 712-byte string literal not displayed */
View Source
var RootExamples = `` /* 378-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 Get

func Get(ctx context.Context, cmd string, cfg *config.Config, logger *zap.Logger, tel *telemetry.Telemetry) (interface{}, error)

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) Validate

func (c *CmdConfigurator) Validate(ctx context.Context, 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
	YamlTestSetDB   *testset.Db[*models.TestSet]
	Instrumentation *core.Core
}

func GetCommonServices

func GetCommonServices(ctx context.Context, c *config.Config, logger *zap.Logger) (*CommonInternalService, error)

type ServiceProvider

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

func NewServiceProvider

func NewServiceProvider(logger *zap.Logger, userDb *user.Db, cfg *config.Config) *ServiceProvider

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