Documentation ¶
Index ¶
- Constants
- func CopyFile(src, dst string, remove bool) error
- func CreateBitriseConfigFromCLIParams(bitriseConfigBase64Data, bitriseConfigPath string) (models.BitriseDataModel, []string, error)
- func CreateInventoryFromCLIParams(inventoryBase64Data, inventoryPath string) ([]envmanModels.EnvironmentItemModel, error)
- func GetBitriseConfigFilePath(bitriseConfigPath string) (string, error)
- func GetBitriseConfigFromBase64Data(configBase64Str string) (models.BitriseDataModel, []string, error)
- func GetInventoryFilePath(inventoryPath string) (string, error)
- func GetInventoryFromBase64Data(inventoryBase64Str string) ([]envmanModels.EnvironmentItemModel, error)
- func Run()
- type DockerManager
- type Formatable
- type JSONLogger
- type Logger
- type RawLogger
- type RunAndTriggerParamsModel
- type RunConfig
- type ValidateResponseModel
- type ValidationItemModel
- type ValidationModel
- type VersionOutputModel
- type WorkflowListOutputModel
- type WorkflowRunner
Constants ¶
View Source
const ( JSONParamsKey = "json-params" JSONParamsBase64Key = "json-params-base64" WorkflowKey = "workflow" PatternKey = "pattern" PushBranchKey = "push-branch" PRSourceBranchKey = "pr-source-branch" PRTargetBranchKey = "pr-target-branch" PRReadyStateKey = "pr-ready-state" ConfigKey = "config" InventoryKey = "inventory" OuputFormatKey = "format" )
Flags ...
View Source
const ( CollectionPathEnvKey = "STEPMAN_COLLECTION" CIKey = "ci" PRKey = "pr" DebugModeKey = "debug" VersionKey = "version" CollectionKey = "collection" InventoryBase64Key = "inventory-base64" ConfigBase64Key = "config-base64" HelpKey = "help" MinimalModeKey = "minimal" FullModeKey = "full" OuputPathKey = "outpath" PrettyFormatKey = "pretty" IDKey = "id" ShortKey = "short" StepYMLKey = "step-yml" TagKey = "tag" GitKey = "git" StepIDKey = "stepid" )
View Source
const ( // DefaultBitriseConfigFileName ... DefaultBitriseConfigFileName = "bitrise.yml" // DefaultSecretsFileName ... DefaultSecretsFileName = ".bitrise.secrets.yml" OutputFormatKey = "output-format" )
Variables ¶
This section is empty.
Functions ¶
func CreateBitriseConfigFromCLIParams ¶
func CreateBitriseConfigFromCLIParams(bitriseConfigBase64Data, bitriseConfigPath string) (models.BitriseDataModel, []string, error)
CreateBitriseConfigFromCLIParams ...
func CreateInventoryFromCLIParams ¶
func CreateInventoryFromCLIParams(inventoryBase64Data, inventoryPath string) ([]envmanModels.EnvironmentItemModel, error)
CreateInventoryFromCLIParams ...
func GetBitriseConfigFilePath ¶
GetBitriseConfigFilePath ...
func GetBitriseConfigFromBase64Data ¶
func GetBitriseConfigFromBase64Data(configBase64Str string) (models.BitriseDataModel, []string, error)
GetBitriseConfigFromBase64Data ...
func GetInventoryFilePath ¶
GetInventoryFilePath ...
func GetInventoryFromBase64Data ¶
func GetInventoryFromBase64Data(inventoryBase64Str string) ([]envmanModels.EnvironmentItemModel, error)
GetInventoryFromBase64Data ...
Types ¶
type DockerManager ¶
type DockerManager interface { Login(models.Container, map[string]string) error StartWorkflowContainer(models.Container, string, map[string]string) (*docker.RunningContainer, error) StartServiceContainers(services map[string]models.Container, workflowID string, envs map[string]string) ([]*docker.RunningContainer, error) GetWorkflowContainer(string) *docker.RunningContainer GetServiceContainers(string) []*docker.RunningContainer DestroyAllContainers() error }
type JSONLogger ¶
type JSONLogger struct {
// contains filtered or unexported fields
}
JSONLogger ...
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 ValidateResponseModel ¶
type ValidateResponseModel struct { Data *ValidationModel `json:"data,omitempty" yaml:"data,omitempty"` Error string `json:"error,omitempty" yaml:"error,omitempty"` Warnings []string `json:"warnings,omitempty" yaml:"warnings,omitempty"` }
ValidateResponseModel ...
func NewValidationError ¶
func NewValidationError(err string, warnings ...string) ValidateResponseModel
NewValidationError ...
func NewValidationResponse ¶
func NewValidationResponse(validation ValidationModel, warnings ...string) ValidateResponseModel
NewValidationResponse ...
func (ValidateResponseModel) String ¶
func (v ValidateResponseModel) String() string
type ValidationItemModel ¶
type ValidationItemModel struct { IsValid bool `json:"is_valid" yaml:"is_valid"` Error string `json:"error,omitempty" yaml:"error,omitempty"` Warnings []string `json:"warnings,omitempty" yaml:"warnings,omitempty"` }
ValidationItemModel ...
type ValidationModel ¶
type ValidationModel struct { Config *ValidationItemModel `json:"config,omitempty" yaml:"config,omitempty"` Secrets *ValidationItemModel `json:"secrets,omitempty" yaml:"secrets,omitempty"` }
ValidationModel ...
type VersionOutputModel ¶
type VersionOutputModel struct { Version string `json:"version"` FormatVersion string `json:"format_version"` OS string `json:"os"` GO string `json:"go"` BuildNumber string `json:"build_number"` Commit string `json:"commit"` }
VersionOutputModel ...
type WorkflowListOutputModel ¶
type WorkflowListOutputModel struct { Data map[string]map[string]string `json:"data,omitempty" yml:"data,omitempty"` Warnings []string `json:"warnings,omitempty" yml:"warnings,omitempty"` Error string `json:"error,omitempty" yml:"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) WorkflowRunner
func (WorkflowRunner) RunWorkflowsWithSetupAndCheckForUpdate ¶
func (r WorkflowRunner) RunWorkflowsWithSetupAndCheckForUpdate() (int, error)
Source Files ¶
- agent.go
- analytics.go
- build_run_result_collector.go
- cli.go
- commands.go
- flags.go
- help.go
- init.go
- json_output.go
- plugin.go
- plugin_delete.go
- plugin_info.go
- plugin_install.go
- plugin_list.go
- plugin_update.go
- run.go
- run_config.go
- run_trigger_params.go
- run_util.go
- setup.go
- share.go
- share_audit.go
- share_create.go
- share_finish.go
- share_start.go
- step_activator.go
- step_environment.go
- tools.go
- trigger.go
- trigger_check.go
- update.go
- validate.go
- version.go
- workflow_list.go
Click to show internal directories.
Click to hide internal directories.