Documentation
¶
Index ¶
- func NewCmd() *cobra.Command
- func NewInitCommand() *cobra.Command
- func NewRunCommand() *cobra.Command
- func NewSetupCommand() *cobra.Command
- func NewToolsCommand() *cobra.Command
- func NewTriggerCommand() *cobra.Command
- func NewWorkflowListCommand() *cobra.Command
- type RunAndTriggerParamsModel
- type RunConfig
- type WorkflowListOutputModel
- type WorkflowRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkflowListCommand ¶
NewWorkflowListCommand ...
Types ¶
type RunAndTriggerParamsModel ¶
type RunAndTriggerParamsModel struct {
// Run Params
WorkflowToRunID string `json:"workflow"`
// Trigger Params
TriggerPattern string `json:"pattern"`
PushBranch string `json:"push-branch"`
PRSourceBranch string `json:"pr-source-branch"`
PRTargetBranch string `json:"pr-target-branch"`
PRReadyState models.PullRequestReadyState `json:"pr-ready-state"`
Tag string `json:"tag"`
// Trigger Check Params
Format string `json:"format"`
// Bitrise Config Params
BitriseConfigPath string `json:"config"`
BitriseConfigBase64Data string `json:"config-base64"`
InventoryPath string `json:"inventory"`
InventoryBase64Data string `json:"inventory-base64"`
}
RunAndTriggerParamsModel ...
type RunConfig ¶
type RunConfig struct {
Modes models.WorkflowRunModes
Config models.BitriseDataModel
Workflow string
Secrets []envmanModels.EnvironmentItemModel
}
type WorkflowListOutputModel ¶
type WorkflowListOutputModel struct {
Data map[string]map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
Warnings []string `json:"warnings,omitempty" yaml:"warnings,omitempty"`
Error string `json:"error,omitempty" yaml:"error,omitempty"`
}
WorkflowListOutputModel ...
func NewErrorOutput ¶
func NewErrorOutput(err string, warnings ...string) WorkflowListOutputModel
NewErrorOutput ...
func NewOutput ¶
func NewOutput(data map[string]map[string]string, warnings ...string) WorkflowListOutputModel
NewOutput ...
func (WorkflowListOutputModel) String ¶
func (output WorkflowListOutputModel) String() string
String ...
type WorkflowRunner ¶
type WorkflowRunner struct {
// contains filtered or unexported fields
}
func NewWorkflowRunner ¶
func NewWorkflowRunner(config RunConfig, agentConfig *configs.AgentConfig, tracker analytics.Tracker) WorkflowRunner
func (WorkflowRunner) RunWorkflowsWithSetupAndCheckForUpdate ¶
func (r WorkflowRunner) RunWorkflowsWithSetupAndCheckForUpdate() (int, error)
Click to show internal directories.
Click to hide internal directories.