Documentation
¶
Index ¶
- func RunOnboardingWizard() error
- type BaseStep
- type Communication
- type Config
- type ConfirmStep
- type DockerCompose
- type DockerSetupStep
- func (DockerSetupStep) Clear(m *Model)
- func (DockerSetupStep) Default(*Model) string
- func (DockerSetupStep) Description(*Model) string
- func (DockerSetupStep) Help(*Model) string
- func (DockerSetupStep) ID() onboardStep
- func (DockerSetupStep) InputIndex() int
- func (DockerSetupStep) Question(*Model) string
- type DockerTypeStep
- func (DockerTypeStep) Default(*Model) string
- func (DockerTypeStep) Description(*Model) string
- func (DockerTypeStep) Help(*Model) string
- func (DockerTypeStep) ID() onboardStep
- func (DockerTypeStep) InputIndex() int
- func (DockerTypeStep) Question(*Model) string
- func (DockerTypeStep) ShouldSkip(m *Model) bool
- type DoneStep
- type Flow
- type IntroStep
- type Model
- type Readiness
- type ReadinessCommandStep
- func (ReadinessCommandStep) Apply(m *Model, v string)
- func (ReadinessCommandStep) Clear(m *Model)
- func (s ReadinessCommandStep) Default(m *Model) string
- func (ReadinessCommandStep) Description(*Model) string
- func (ReadinessCommandStep) ID() onboardStep
- func (ReadinessCommandStep) InputIndex() int
- func (ReadinessCommandStep) Question(*Model) string
- type ReadinessIntervalStep
- func (ReadinessIntervalStep) Apply(m *Model, v string)
- func (ReadinessIntervalStep) Clear(m *Model)
- func (ReadinessIntervalStep) Default(*Model) string
- func (ReadinessIntervalStep) Description(*Model) string
- func (ReadinessIntervalStep) ID() onboardStep
- func (ReadinessIntervalStep) InputIndex() int
- func (ReadinessIntervalStep) Question(*Model) string
- type ReadinessTimeoutStep
- func (ReadinessTimeoutStep) Apply(m *Model, v string)
- func (ReadinessTimeoutStep) Clear(m *Model)
- func (ReadinessTimeoutStep) Default(*Model) string
- func (ReadinessTimeoutStep) Description(*Model) string
- func (ReadinessTimeoutStep) ID() onboardStep
- func (ReadinessTimeoutStep) InputIndex() int
- func (ReadinessTimeoutStep) Question(*Model) string
- type Recording
- type RecordingIntroStep
- type RecordingSamplingRateStep
- func (RecordingSamplingRateStep) Apply(m *Model, v string)
- func (RecordingSamplingRateStep) Clear(m *Model)
- func (RecordingSamplingRateStep) Default(*Model) string
- func (RecordingSamplingRateStep) Description(*Model) string
- func (RecordingSamplingRateStep) ID() onboardStep
- func (RecordingSamplingRateStep) InputIndex() int
- func (RecordingSamplingRateStep) Question(*Model) string
- func (RecordingSamplingRateStep) Validate(_ *Model, v string) error
- type ReplayIntroStep
- type SDKCompatibilityStep
- func (SDKCompatibilityStep) Clear(m *Model)
- func (SDKCompatibilityStep) Default(*Model) string
- func (SDKCompatibilityStep) Description(*Model) string
- func (SDKCompatibilityStep) Help(*Model) string
- func (SDKCompatibilityStep) ID() onboardStep
- func (SDKCompatibilityStep) InputIndex() int
- func (SDKCompatibilityStep) Question(*Model) string
- type Service
- type ServiceNameStep
- func (ServiceNameStep) Apply(m *Model, v string)
- func (ServiceNameStep) Clear(m *Model)
- func (s ServiceNameStep) Default(m *Model) string
- func (ServiceNameStep) Description(*Model) string
- func (ServiceNameStep) ID() onboardStep
- func (ServiceNameStep) InputIndex() int
- func (ServiceNameStep) Question(*Model) string
- type ServicePortStep
- func (ServicePortStep) Apply(m *Model, v string)
- func (ServicePortStep) Clear(m *Model)
- func (s ServicePortStep) Default(m *Model) string
- func (ServicePortStep) Description(*Model) string
- func (ServicePortStep) ID() onboardStep
- func (ServicePortStep) InputIndex() int
- func (ServicePortStep) Question(*Model) string
- func (ServicePortStep) Validate(_ *Model, v string) error
- type Start
- type StartCommandStep
- func (StartCommandStep) Apply(m *Model, v string)
- func (StartCommandStep) Clear(m *Model)
- func (s StartCommandStep) Default(m *Model) string
- func (s StartCommandStep) Description(m *Model) string
- func (StartCommandStep) ID() onboardStep
- func (StartCommandStep) InputIndex() int
- func (s StartCommandStep) Question(m *Model) string
- type Step
- type Stop
- type StopCommandStep
- func (StopCommandStep) Apply(m *Model, v string)
- func (StopCommandStep) Clear(m *Model)
- func (s StopCommandStep) Default(m *Model) string
- func (StopCommandStep) Description(*Model) string
- func (StopCommandStep) ID() onboardStep
- func (StopCommandStep) InputIndex() int
- func (StopCommandStep) Question(*Model) string
- func (StopCommandStep) ShouldSkip(m *Model) bool
- type TestExecution
- type Traces
- type TuskAPI
- type ValidateRepoStep
- func (ValidateRepoStep) Default(*Model) string
- func (ValidateRepoStep) Description(*Model) string
- func (ValidateRepoStep) Help(*Model) string
- func (ValidateRepoStep) ID() onboardStep
- func (ValidateRepoStep) InputIndex() int
- func (ValidateRepoStep) Question(*Model) string
- func (ValidateRepoStep) ShouldSkip(*Model) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunOnboardingWizard ¶
func RunOnboardingWizard() error
Types ¶
type Communication ¶
type Config ¶
type Config struct {
Service Service `yaml:"service"`
Traces Traces `yaml:"traces"`
TestExecution TestExecution `yaml:"test_execution"`
Recording Recording `yaml:"recording"`
TuskAPI *TuskAPI `yaml:"tusk_api,omitempty"`
}
type ConfirmStep ¶
type ConfirmStep struct{ BaseStep }
func (ConfirmStep) Default ¶
func (ConfirmStep) Default(*Model) string
func (ConfirmStep) Description ¶
func (ConfirmStep) Description(*Model) string
func (ConfirmStep) Help ¶
func (ConfirmStep) Help(*Model) string
func (ConfirmStep) ID ¶
func (ConfirmStep) ID() onboardStep
func (ConfirmStep) InputIndex ¶
func (ConfirmStep) InputIndex() int
func (ConfirmStep) Question ¶
func (ConfirmStep) Question(*Model) string
type DockerCompose ¶
type DockerSetupStep ¶
type DockerSetupStep struct{ BaseStep }
func (DockerSetupStep) Clear ¶
func (DockerSetupStep) Clear(m *Model)
func (DockerSetupStep) Default ¶
func (DockerSetupStep) Default(*Model) string
func (DockerSetupStep) Description ¶
func (DockerSetupStep) Description(*Model) string
func (DockerSetupStep) Help ¶
func (DockerSetupStep) Help(*Model) string
func (DockerSetupStep) ID ¶
func (DockerSetupStep) ID() onboardStep
func (DockerSetupStep) InputIndex ¶
func (DockerSetupStep) InputIndex() int
func (DockerSetupStep) Question ¶
func (DockerSetupStep) Question(*Model) string
type DockerTypeStep ¶
type DockerTypeStep struct{ BaseStep }
func (DockerTypeStep) Default ¶
func (DockerTypeStep) Default(*Model) string
func (DockerTypeStep) Description ¶
func (DockerTypeStep) Description(*Model) string
func (DockerTypeStep) Help ¶
func (DockerTypeStep) Help(*Model) string
func (DockerTypeStep) ID ¶
func (DockerTypeStep) ID() onboardStep
func (DockerTypeStep) InputIndex ¶
func (DockerTypeStep) InputIndex() int
func (DockerTypeStep) Question ¶
func (DockerTypeStep) Question(*Model) string
func (DockerTypeStep) ShouldSkip ¶
func (DockerTypeStep) ShouldSkip(m *Model) bool
type DoneStep ¶
type DoneStep struct{ BaseStep }
func (DoneStep) Description ¶
func (DoneStep) InputIndex ¶
type IntroStep ¶
type IntroStep struct{ BaseStep }
func (IntroStep) Description ¶
func (IntroStep) InputIndex ¶
type Model ¶
type Model struct {
// State
ServiceName string
ServicePort string
StartCmd string
StopCmd string
ReadinessCmd string
ReadinessTimeout string
ReadinessInterval string
SamplingRate string
UseDocker bool
DockerType dockerType
DockerImageName string
DockerAppName string
DockerComposeServiceName string // For docker compose override, may not be the same as ServiceName
SDKCompatible bool
Err error
ValidationErr error
// contains filtered or unexported fields
}
type ReadinessCommandStep ¶
type ReadinessCommandStep struct{ BaseStep }
func (ReadinessCommandStep) Apply ¶
func (ReadinessCommandStep) Apply(m *Model, v string)
func (ReadinessCommandStep) Clear ¶
func (ReadinessCommandStep) Clear(m *Model)
func (ReadinessCommandStep) Default ¶
func (s ReadinessCommandStep) Default(m *Model) string
func (ReadinessCommandStep) Description ¶
func (ReadinessCommandStep) Description(*Model) string
func (ReadinessCommandStep) ID ¶
func (ReadinessCommandStep) ID() onboardStep
func (ReadinessCommandStep) InputIndex ¶
func (ReadinessCommandStep) InputIndex() int
func (ReadinessCommandStep) Question ¶
func (ReadinessCommandStep) Question(*Model) string
type ReadinessIntervalStep ¶
type ReadinessIntervalStep struct{ BaseStep }
func (ReadinessIntervalStep) Apply ¶
func (ReadinessIntervalStep) Apply(m *Model, v string)
func (ReadinessIntervalStep) Clear ¶
func (ReadinessIntervalStep) Clear(m *Model)
func (ReadinessIntervalStep) Default ¶
func (ReadinessIntervalStep) Default(*Model) string
func (ReadinessIntervalStep) Description ¶
func (ReadinessIntervalStep) Description(*Model) string
func (ReadinessIntervalStep) ID ¶
func (ReadinessIntervalStep) ID() onboardStep
func (ReadinessIntervalStep) InputIndex ¶
func (ReadinessIntervalStep) InputIndex() int
func (ReadinessIntervalStep) Question ¶
func (ReadinessIntervalStep) Question(*Model) string
type ReadinessTimeoutStep ¶
type ReadinessTimeoutStep struct{ BaseStep }
func (ReadinessTimeoutStep) Apply ¶
func (ReadinessTimeoutStep) Apply(m *Model, v string)
func (ReadinessTimeoutStep) Clear ¶
func (ReadinessTimeoutStep) Clear(m *Model)
func (ReadinessTimeoutStep) Default ¶
func (ReadinessTimeoutStep) Default(*Model) string
func (ReadinessTimeoutStep) Description ¶
func (ReadinessTimeoutStep) Description(*Model) string
func (ReadinessTimeoutStep) ID ¶
func (ReadinessTimeoutStep) ID() onboardStep
func (ReadinessTimeoutStep) InputIndex ¶
func (ReadinessTimeoutStep) InputIndex() int
func (ReadinessTimeoutStep) Question ¶
func (ReadinessTimeoutStep) Question(*Model) string
type RecordingIntroStep ¶
type RecordingIntroStep struct{ BaseStep }
func (RecordingIntroStep) Default ¶
func (RecordingIntroStep) Default(*Model) string
func (RecordingIntroStep) Description ¶
func (RecordingIntroStep) Description(*Model) string
func (RecordingIntroStep) Help ¶
func (RecordingIntroStep) Help(*Model) string
func (RecordingIntroStep) ID ¶
func (RecordingIntroStep) ID() onboardStep
func (RecordingIntroStep) InputIndex ¶
func (RecordingIntroStep) InputIndex() int
func (RecordingIntroStep) Question ¶
func (RecordingIntroStep) Question(*Model) string
type RecordingSamplingRateStep ¶
type RecordingSamplingRateStep struct{ BaseStep }
func (RecordingSamplingRateStep) Apply ¶
func (RecordingSamplingRateStep) Apply(m *Model, v string)
func (RecordingSamplingRateStep) Clear ¶
func (RecordingSamplingRateStep) Clear(m *Model)
func (RecordingSamplingRateStep) Default ¶
func (RecordingSamplingRateStep) Default(*Model) string
func (RecordingSamplingRateStep) Description ¶
func (RecordingSamplingRateStep) Description(*Model) string
func (RecordingSamplingRateStep) ID ¶
func (RecordingSamplingRateStep) ID() onboardStep
func (RecordingSamplingRateStep) InputIndex ¶
func (RecordingSamplingRateStep) InputIndex() int
func (RecordingSamplingRateStep) Question ¶
func (RecordingSamplingRateStep) Question(*Model) string
type ReplayIntroStep ¶
type ReplayIntroStep struct{ BaseStep }
func (ReplayIntroStep) Default ¶
func (ReplayIntroStep) Default(*Model) string
func (ReplayIntroStep) Description ¶
func (ReplayIntroStep) Description(*Model) string
func (ReplayIntroStep) Help ¶
func (ReplayIntroStep) Help(*Model) string
func (ReplayIntroStep) ID ¶
func (ReplayIntroStep) ID() onboardStep
func (ReplayIntroStep) InputIndex ¶
func (ReplayIntroStep) InputIndex() int
func (ReplayIntroStep) Question ¶
func (ReplayIntroStep) Question(*Model) string
type SDKCompatibilityStep ¶
type SDKCompatibilityStep struct{ BaseStep }
func (SDKCompatibilityStep) Clear ¶
func (SDKCompatibilityStep) Clear(m *Model)
func (SDKCompatibilityStep) Default ¶
func (SDKCompatibilityStep) Default(*Model) string
func (SDKCompatibilityStep) Description ¶
func (SDKCompatibilityStep) Description(*Model) string
func (SDKCompatibilityStep) Help ¶
func (SDKCompatibilityStep) Help(*Model) string
func (SDKCompatibilityStep) ID ¶
func (SDKCompatibilityStep) ID() onboardStep
func (SDKCompatibilityStep) InputIndex ¶
func (SDKCompatibilityStep) InputIndex() int
func (SDKCompatibilityStep) Question ¶
func (SDKCompatibilityStep) Question(*Model) string
type ServiceNameStep ¶
type ServiceNameStep struct{ BaseStep }
func (ServiceNameStep) Apply ¶
func (ServiceNameStep) Apply(m *Model, v string)
func (ServiceNameStep) Clear ¶
func (ServiceNameStep) Clear(m *Model)
func (ServiceNameStep) Default ¶
func (s ServiceNameStep) Default(m *Model) string
func (ServiceNameStep) Description ¶
func (ServiceNameStep) Description(*Model) string
func (ServiceNameStep) ID ¶
func (ServiceNameStep) ID() onboardStep
func (ServiceNameStep) InputIndex ¶
func (ServiceNameStep) InputIndex() int
func (ServiceNameStep) Question ¶
func (ServiceNameStep) Question(*Model) string
type ServicePortStep ¶
type ServicePortStep struct{ BaseStep }
func (ServicePortStep) Apply ¶
func (ServicePortStep) Apply(m *Model, v string)
func (ServicePortStep) Clear ¶
func (ServicePortStep) Clear(m *Model)
func (ServicePortStep) Default ¶
func (s ServicePortStep) Default(m *Model) string
func (ServicePortStep) Description ¶
func (ServicePortStep) Description(*Model) string
func (ServicePortStep) ID ¶
func (ServicePortStep) ID() onboardStep
func (ServicePortStep) InputIndex ¶
func (ServicePortStep) InputIndex() int
func (ServicePortStep) Question ¶
func (ServicePortStep) Question(*Model) string
type StartCommandStep ¶
type StartCommandStep struct{ BaseStep }
func (StartCommandStep) Apply ¶
func (StartCommandStep) Apply(m *Model, v string)
func (StartCommandStep) Clear ¶
func (StartCommandStep) Clear(m *Model)
func (StartCommandStep) Default ¶
func (s StartCommandStep) Default(m *Model) string
func (StartCommandStep) Description ¶
func (s StartCommandStep) Description(m *Model) string
func (StartCommandStep) ID ¶
func (StartCommandStep) ID() onboardStep
func (StartCommandStep) InputIndex ¶
func (StartCommandStep) InputIndex() int
func (StartCommandStep) Question ¶
func (s StartCommandStep) Question(m *Model) string
type Step ¶
type Step interface {
ID() onboardStep
InputIndex() int // Index of the input field (0-based) for this step, -1 if no input is required
Question(*Model) string // Prompt for the user
Description(*Model) string // Additional information displayed below the question
Default(*Model) string // Default input value (empty string if not applicable)
Validate(*Model, string) error // User input validation (returns nil if valid, error if invalid)
Apply(*Model, string) // Updates the model with the accepted user input. Called after validation succeeds.
Help(*Model) string // Help text displayed in the footer for the current step. Back navigation keys will be dynamically added.
ShouldSkip(*Model) bool // Whether the step should be skipped (based on current state)
Clear(*Model) // Clears the current step's state
}
type StopCommandStep ¶
type StopCommandStep struct{ BaseStep }
func (StopCommandStep) Apply ¶
func (StopCommandStep) Apply(m *Model, v string)
func (StopCommandStep) Clear ¶
func (StopCommandStep) Clear(m *Model)
func (StopCommandStep) Default ¶
func (s StopCommandStep) Default(m *Model) string
func (StopCommandStep) Description ¶
func (StopCommandStep) Description(*Model) string
func (StopCommandStep) ID ¶
func (StopCommandStep) ID() onboardStep
func (StopCommandStep) InputIndex ¶
func (StopCommandStep) InputIndex() int
func (StopCommandStep) Question ¶
func (StopCommandStep) Question(*Model) string
func (StopCommandStep) ShouldSkip ¶
func (StopCommandStep) ShouldSkip(m *Model) bool
type TestExecution ¶
type TestExecution struct {
Timeout string `yaml:"timeout"`
}
type ValidateRepoStep ¶
type ValidateRepoStep struct{ BaseStep }
func (ValidateRepoStep) Default ¶
func (ValidateRepoStep) Default(*Model) string
func (ValidateRepoStep) Description ¶
func (ValidateRepoStep) Description(*Model) string
func (ValidateRepoStep) Help ¶
func (ValidateRepoStep) Help(*Model) string
func (ValidateRepoStep) ID ¶
func (ValidateRepoStep) ID() onboardStep
func (ValidateRepoStep) InputIndex ¶
func (ValidateRepoStep) InputIndex() int
func (ValidateRepoStep) Question ¶
func (ValidateRepoStep) Question(*Model) string
func (ValidateRepoStep) ShouldSkip ¶
func (ValidateRepoStep) ShouldSkip(*Model) bool
Click to show internal directories.
Click to hide internal directories.