Documentation ¶
Overview ¶
Package provider provides functionality for the keploy provider.\
Index ¶
- Variables
- func GenerateDockerEnvs(config DockerConfigStruct) string
- func Get(ctx context.Context, cmd string, cfg *config.Config, logger *zap.Logger, ...) (interface{}, error)
- func LogExample(example string) string
- func PrintLogo(disableANSI bool)
- func RunInDocker(ctx context.Context, logger *zap.Logger) error
- func StartInDocker(ctx context.Context, logger *zap.Logger, conf *config.Config) error
- type CmdConfigurator
- func (c *CmdConfigurator) AddFlags(cmd *cobra.Command) error
- func (c *CmdConfigurator) AddUncommonFlags(cmd *cobra.Command)
- func (c *CmdConfigurator) CreateConfigFile(ctx context.Context, defaultCfg config.Config) error
- func (c *CmdConfigurator) PreProcessFlags(cmd *cobra.Command) error
- func (c *CmdConfigurator) UpdateConfigData(defaultCfg config.Config) config.Config
- func (c *CmdConfigurator) Validate(ctx context.Context, cmd *cobra.Command) error
- func (c *CmdConfigurator) ValidateFlags(ctx context.Context, cmd *cobra.Command) error
- type CommonInternalService
- type DockerConfigStruct
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomHelpTemplate = `` /* 375-byte string literal not displayed */
View Source
var DockerConfig = DockerConfigStruct{
DockerImage: "ghcr.io/keploy/keploy",
}
View Source
var ExampleOneClickInstall = `` /* 741-byte string literal not displayed */
View Source
var Examples = `` /* 1183-byte string literal not displayed */
View Source
var IsConfigFileFound = true
View Source
var Logo = `` /* 663-byte string literal not displayed */
View Source
var RootCustomHelpTemplate = `` /* 712-byte string literal not displayed */
View Source
var RootExamples = `` /* 379-byte string literal not displayed */
View Source
var TeleGlobalMap = make(map[string]interface{})
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 GenerateDockerEnvs ¶
func GenerateDockerEnvs(config DockerConfigStruct) string
func LogExample ¶
func StartInDocker ¶
StartInDocker will check if the docker command is provided as an input then start the Keploy as a docker container and run the command should also return a boolean if the execution is moved to docker
Types ¶
type CmdConfigurator ¶
type CmdConfigurator struct {
// contains filtered or unexported fields
}
func NewCmdConfigurator ¶
func NewCmdConfigurator(logger *zap.Logger, config *config.Config) *CmdConfigurator
func (*CmdConfigurator) AddUncommonFlags ¶
func (c *CmdConfigurator) AddUncommonFlags(cmd *cobra.Command)
func (*CmdConfigurator) CreateConfigFile ¶
func (*CmdConfigurator) PreProcessFlags ¶
func (c *CmdConfigurator) PreProcessFlags(cmd *cobra.Command) error
func (*CmdConfigurator) UpdateConfigData ¶
func (c *CmdConfigurator) UpdateConfigData(defaultCfg config.Config) config.Config
func (*CmdConfigurator) ValidateFlags ¶
type CommonInternalService ¶
type CommonInternalService struct { Instrumentation *core.Core // contains filtered or unexported fields }
func GetCommonServices ¶
type DockerConfigStruct ¶
type ServiceProvider ¶
type ServiceProvider struct {
// contains filtered or unexported fields
}
func NewServiceProvider ¶
func (*ServiceProvider) GetService ¶
func (n *ServiceProvider) GetService(ctx context.Context, cmd string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.