Documentation ¶
Index ¶
- Constants
- type GlobalPluginRepository
- type GlobalPluginRepositoryImpl
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginTagRelations() ([]*PluginTagRelation, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginTags() ([]*PluginTag, error)
- func (impl *GlobalPluginRepositoryImpl) GetConditionsByStepId(stepId int) ([]*PluginStepCondition, error)
- func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesByPluginId(pluginId int) ([]*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesByPluginIdAndVariableType(pluginId int, variableType PluginStepVariableType) ([]*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesForAllPlugins() ([]*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) GetMetaDataByPluginId(pluginId int) (*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins() ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptDetailById(id int) (*PluginPipelineScript, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error)
- func (impl *GlobalPluginRepositoryImpl) GetStepsByPluginIds(pluginIds []int) ([]*PluginStep, error)
- func (impl *GlobalPluginRepositoryImpl) GetTagsByPluginId(pluginId int) ([]string, error)
- func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error)
- type PluginMetadata
- type PluginPipelineScript
- type PluginStep
- type PluginStepCondition
- type PluginStepConditionType
- type PluginStepType
- type PluginStepVariable
- type PluginStepVariableFormatType
- type PluginStepVariableType
- type PluginStepVariableValueType
- type PluginTag
- type PluginTagRelation
- type PluginType
- type ScriptImagePullSecretType
- type ScriptMappingType
- type ScriptPathArgPortMapping
- type ScriptType
Constants ¶
View Source
const ( PLUGIN_TYPE_SHARED PluginType = "SHARED" PLUGIN_TYPE_PRESET PluginType = "PRESET" SCRIPT_TYPE_SHELL ScriptType = "SHELL" SCRIPT_TYPE_DOCKERFILE ScriptType = "DOCKERFILE" SCRIPT_TYPE_CONTAINER_IMAGE ScriptType = "CONTAINER_IMAGE" IMAGE_PULL_TYPE_CONTAINER_REGISTRY ScriptImagePullSecretType = "CONTAINER_REGISTRY" IMAGE_PULL_TYPE_SECRET_PATH ScriptImagePullSecretType = "SECRET_PATH" SCRIPT_MAPPING_TYPE_FILE_PATH ScriptMappingType = "FILE_PATH" SCRIPT_MAPPING_TYPE_DOCKER_ARG ScriptMappingType = "DOCKER_ARG" SCRIPT_MAPPING_TYPE_PORT ScriptMappingType = "PORT" PLUGIN_STEP_TYPE_INLINE PluginStepType = "INLINE" PLUGIN_STEP_TYPE_REF_PLUGIN PluginStepType = "REF_PLUGIN" PLUGIN_VARIABLE_TYPE_INPUT PluginStepVariableType = "INPUT" PLUGIN_VARIABLE_TYPE_OUTPUT PluginStepVariableType = "OUTPUT" PLUGIN_VARIABLE_VALUE_TYPE_NEW PluginStepVariableValueType = "NEW" PLUGIN_VARIABLE_VALUE_TYPE_PREVIOUS PluginStepVariableValueType = "FROM_PREVIOUS_STEP" PLUGIN_VARIABLE_VALUE_TYPE_GLOBAL PluginStepVariableValueType = "GLOBAL" PLUGIN_CONDITION_TYPE_SKIP PluginStepConditionType = "SKIP" PLUGIN_CONDITION_TYPE_TRIGGER PluginStepConditionType = "TRIGGER" PLUGIN_CONDITION_TYPE_SUCCESS PluginStepConditionType = "SUCCESS" PLUGIN_CONDITION_TYPE_FAIL PluginStepConditionType = "FAIL" PLUGIN_VARIABLE_FORMAT_TYPE_STRING PluginStepVariableFormatType = "STRING" PLUGIN_VARIABLE_FORMAT_TYPE_NUMBER PluginStepVariableFormatType = "NUMBER" PLUGIN_VARIABLE_FORMAT_TYPE_BOOL PluginStepVariableFormatType = "BOOL" PLUGIN_VARIABLE_FORMAT_TYPE_DATE PluginStepVariableFormatType = "DATE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalPluginRepository ¶
type GlobalPluginRepository interface { GetMetaDataForAllPlugins() ([]*PluginMetadata, error) GetMetaDataByPluginId(pluginId int) (*PluginMetadata, error) GetAllPluginTags() ([]*PluginTag, error) GetAllPluginTagRelations() ([]*PluginTagRelation, error) GetTagsByPluginId(pluginId int) ([]string, error) GetScriptDetailById(id int) (*PluginPipelineScript, error) GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error) GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error) GetStepsByPluginIds(pluginIds []int) ([]*PluginStep, error) GetExposedVariablesByPluginIdAndVariableType(pluginId int, variableType PluginStepVariableType) ([]*PluginStepVariable, error) GetExposedVariablesByPluginId(pluginId int) ([]*PluginStepVariable, error) GetExposedVariablesForAllPlugins() ([]*PluginStepVariable, error) GetConditionsByStepId(stepId int) ([]*PluginStepCondition, error) }
type GlobalPluginRepositoryImpl ¶
type GlobalPluginRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewGlobalPluginRepository ¶
func NewGlobalPluginRepository(logger *zap.SugaredLogger, dbConnection *pg.DB) *GlobalPluginRepositoryImpl
func (*GlobalPluginRepositoryImpl) GetAllPluginTagRelations ¶
func (impl *GlobalPluginRepositoryImpl) GetAllPluginTagRelations() ([]*PluginTagRelation, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginTags ¶
func (impl *GlobalPluginRepositoryImpl) GetAllPluginTags() ([]*PluginTag, error)
func (*GlobalPluginRepositoryImpl) GetConditionsByStepId ¶
func (impl *GlobalPluginRepositoryImpl) GetConditionsByStepId(stepId int) ([]*PluginStepCondition, error)
func (*GlobalPluginRepositoryImpl) GetExposedVariablesByPluginId ¶
func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesByPluginId(pluginId int) ([]*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) GetExposedVariablesByPluginIdAndVariableType ¶
func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesByPluginIdAndVariableType(pluginId int, variableType PluginStepVariableType) ([]*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) GetExposedVariablesForAllPlugins ¶ added in v0.6.19
func (impl *GlobalPluginRepositoryImpl) GetExposedVariablesForAllPlugins() ([]*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) GetMetaDataByPluginId ¶
func (impl *GlobalPluginRepositoryImpl) GetMetaDataByPluginId(pluginId int) (*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins ¶
func (impl *GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins() ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetScriptDetailById ¶
func (impl *GlobalPluginRepositoryImpl) GetScriptDetailById(id int) (*PluginPipelineScript, error)
func (*GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId ¶
func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error)
func (*GlobalPluginRepositoryImpl) GetStepsByPluginIds ¶
func (impl *GlobalPluginRepositoryImpl) GetStepsByPluginIds(pluginIds []int) ([]*PluginStep, error)
func (*GlobalPluginRepositoryImpl) GetTagsByPluginId ¶
func (impl *GlobalPluginRepositoryImpl) GetTagsByPluginId(pluginId int) ([]string, error)
func (*GlobalPluginRepositoryImpl) GetVariablesByStepId ¶
func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error)
type PluginMetadata ¶
type PluginPipelineScript ¶
type PluginPipelineScript struct { Id int `sql:"id,pk"` Script string `sql:"script"` StoreScriptAt string `sql:"store_script_at"` Type ScriptType `sql:"type"` DockerfileExists bool `sql:"dockerfile_exists, notnull"` MountPath string `sql:"mount_path"` MountCodeToContainer bool `sql:"mount_code_to_container,notnull"` MountCodeToContainerPath string `sql:"mount_code_to_container_path"` MountDirectoryFromHost bool `sql:"mount_directory_from_host,notnull"` ContainerImagePath string `sql:"container_image_path"` ImagePullSecretType ScriptImagePullSecretType `sql:"image_pull_secret_type"` ImagePullSecret string `sql:"image_pull_secret"` Deleted bool `sql:"deleted, notnull"` sql.AuditLog // contains filtered or unexported fields }
type PluginStep ¶
type PluginStep struct { Id int `sql:"id,pk"` PluginId int `sql:"plugin_id"` //id of plugin - parent of this step Name string `sql:"name"` Description string `sql:"description"` Index int `sql:"index"` StepType PluginStepType `sql:"step_type"` ScriptId int `sql:"script_id"` RefPluginId int `sql:"ref_plugin_id"` //id of plugin used as reference OutputDirectoryPath []string `sql:"output_directory_path" pg:",array"` DependentOnStep string `sql:"dependent_on_step"` Deleted bool `sql:"deleted,notnull"` sql.AuditLog // contains filtered or unexported fields }
type PluginStepCondition ¶
type PluginStepCondition struct { Id int `sql:"id,pk"` PluginStepId int `sql:"plugin_step_id"` ConditionVariableId int `sql:"condition_variable_id"` //id of variable on which condition is written ConditionType PluginStepConditionType `sql:"condition_type"` ConditionalOperator string `sql:"conditional_operator"` ConditionalValue string `sql:"conditional_value"` Deleted bool `sql:"deleted,notnull"` sql.AuditLog // contains filtered or unexported fields }
type PluginStepConditionType ¶
type PluginStepConditionType string
type PluginStepType ¶
type PluginStepType string
type PluginStepVariable ¶
type PluginStepVariable struct { Id int `sql:"id,pk"` PluginStepId int `sql:"plugin_step_id"` Name string `sql:"name"` Format PluginStepVariableFormatType `sql:"format"` Description string `sql:"description"` IsExposed bool `sql:"is_exposed,notnull"` AllowEmptyValue bool `sql:"allow_empty_value,notnull"` DefaultValue string `sql:"default_value"` Value string `sql:"value"` VariableType PluginStepVariableType `sql:"variable_type"` ValueType PluginStepVariableValueType `sql:"value_type"` PreviousStepIndex int `sql:"previous_step_index"` VariableStepIndex int `sql:"variable_step_index"` VariableStepIndexInPlugin int `sql:"variable_step_index_in_plugin"` // will contain stepIndex of variable in case of refPlugin ReferenceVariableName string `sql:"reference_variable_name"` Deleted bool `sql:"deleted,notnull"` sql.AuditLog PluginMetadataId int `sql:"-"` // contains filtered or unexported fields }
type PluginStepVariableFormatType ¶
type PluginStepVariableFormatType string
type PluginStepVariableType ¶
type PluginStepVariableType string
type PluginStepVariableValueType ¶
type PluginStepVariableValueType string
type PluginTagRelation ¶
type PluginType ¶
type PluginType string
type ScriptImagePullSecretType ¶
type ScriptImagePullSecretType string
type ScriptMappingType ¶
type ScriptMappingType string
type ScriptPathArgPortMapping ¶
type ScriptPathArgPortMapping struct { Id int `sql:"id,pk"` TypeOfMapping ScriptMappingType `sql:"type_of_mapping"` FilePathOnDisk string `sql:"file_path_on_disk"` FilePathOnContainer string `sql:"file_path_on_container"` Command string `sql:"command"` Args []string `sql:"args" pg:",array"` PortOnLocal int `sql:"port_on_local"` PortOnContainer int `sql:"port_on_container"` ScriptId int `sql:"script_id"` sql.AuditLog // contains filtered or unexported fields }
type ScriptType ¶
type ScriptType string
Click to show internal directories.
Click to hide internal directories.