Documentation
¶
Index ¶
- Constants
- type GlobalPluginRepository
- type GlobalPluginRepositoryImpl
- func (impl *GlobalPluginRepositoryImpl) GetAllFilteredPluginParentMetadata(searchKey string, tags []string) ([]*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginMetaData() ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginMinData() ([]*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginMinDataByType(pluginType string) ([]*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginTagRelations() ([]*PluginTagRelation, error)
- func (impl *GlobalPluginRepositoryImpl) GetAllPluginTags() ([]*PluginTag, error)
- func (impl *GlobalPluginRepositoryImpl) GetConditionsByPluginId(pluginId int) ([]*PluginStepCondition, error)
- func (impl *GlobalPluginRepositoryImpl) GetConditionsByStepId(stepId int) ([]*PluginStepCondition, error)
- func (impl *GlobalPluginRepositoryImpl) GetConnection() (dbConnection *pg.DB)
- 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) GetMetaDataByPluginIds(pluginIds []int) ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins(excludeDeprecated bool) ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetMetaDataForPluginWithStageType(stageType int) ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginByName(pluginName string) ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginMetadataByPluginIdentifier(identifier string) (*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginParentMetadataByIdentifier(pluginIdentifier string) (*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginParentMetadataByIds(ids []int) ([]*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginParentMinDataById(id int) (*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginParentsMetadataByIdentifiers(pluginIdentifiers ...string) ([]*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginStageMappingByPluginId(pluginId int) (*PluginStageMapping, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginStepsByPluginId(pluginId int) ([]*PluginStep, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginTagByNames(tagNames []string) ([]*PluginTag, error)
- func (impl *GlobalPluginRepositoryImpl) GetPluginVersionsByParentId(parentPluginId int) ([]*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptDetailById(id int) (*PluginPipelineScript, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptDetailByIds(ids []int) ([]*PluginPipelineScript, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error)
- func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptIds(scriptIds []int) ([]*ScriptPathArgPortMapping, error)
- func (impl *GlobalPluginRepositoryImpl) GetStepsByPluginIds(pluginIds []int) ([]*PluginStep, error)
- func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepIds(stepIds []int) ([]*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) MarkPreviousPluginVersionLatestFalse(pluginParentId int) error
- func (impl *GlobalPluginRepositoryImpl) SavePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) (*PluginMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginParentMetadata(tx *pg.Tx, pluginParentMetadata *PluginParentMetadata) (*PluginParentMetadata, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) (*PluginPipelineScript, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) (*PluginStageMapping, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) (*PluginStepCondition, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) (*PluginStepVariable, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginSteps(pluginStep *PluginStep, tx *pg.Tx) (*PluginStep, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginTag(pluginTags *PluginTag, tx *pg.Tx) (*PluginTag, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginTagInBulk(pluginTag []*PluginTag, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) SavePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) (*PluginTagRelation, error)
- func (impl *GlobalPluginRepositoryImpl) SavePluginTagRelationInBulk(pluginTagRelation []*PluginTagRelation, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginStepConditions(pluginStepConditions []*PluginStepCondition, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginStepVariables(pluginStepVariables []*PluginStepVariable, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginSteps(pluginSteps []*PluginStep, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginMetadataInBulk(pluginsMetadata []*PluginMetadata, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginSteps(pluginStep *PluginStep, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginTag(pluginTag *PluginTag, tx *pg.Tx) error
- func (impl *GlobalPluginRepositoryImpl) UpdatePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) error
- type PluginMetadata
- func (r *PluginMetadata) CreateAuditLog(userId int32) *PluginMetadata
- func (r *PluginMetadata) WithBasicMetadata(name, description, pluginVersion, docLink string, isExposed *bool) *PluginMetadata
- func (r *PluginMetadata) WithIsLatestFlag(isLatest bool) *PluginMetadata
- func (r *PluginMetadata) WithPluginParentMetadataId(parentId int) *PluginMetadata
- type PluginParentMetadata
- func (r *PluginParentMetadata) CreateAndSetPluginIdentifier(pluginName string, pluginId int, isIdentifierDuplicated bool) *PluginParentMetadata
- func (r *PluginParentMetadata) CreateAuditLog(userId int32) *PluginParentMetadata
- func (r *PluginParentMetadata) SetParentPluginMetadata(pluginMetadata *PluginMetadata) *PluginParentMetadata
- func (r *PluginParentMetadata) WithBasicMetadata(name, identifier, description, icon string, pluginType PluginType, ...) *PluginParentMetadata
- func (r *PluginParentMetadata) WithIsExposed(isExposed bool) *PluginParentMetadata
- type PluginPipelineScript
- type PluginStageMapping
- 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" )
View Source
const ( CI = 1 CD = 2 CI_CD = 3 SCANNER = 4 CD_STAGE_TYPE = "cd" CI_STAGE_TYPE = "ci" CI_CD_STAGE_TYPE = "ci_cd" SCANNER_STAGE_TYPE = "scanner" EXISTING_TAG_TYPE = "existing_tags" NEW_TAG_TYPE = "new_tags" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalPluginRepository ¶
type GlobalPluginRepository interface {
GetMetaDataForAllPlugins(excludeDeprecated bool) ([]*PluginMetadata, error)
GetMetaDataForPluginWithStageType(stageType int) ([]*PluginMetadata, error)
GetMetaDataByPluginId(pluginId int) (*PluginMetadata, error)
GetMetaDataByPluginIds(pluginIds []int) ([]*PluginMetadata, error)
GetAllPluginTags() ([]*PluginTag, error)
GetPluginTagByNames(tagNames []string) ([]*PluginTag, error)
GetAllPluginTagRelations() ([]*PluginTagRelation, error)
GetScriptDetailById(id int) (*PluginPipelineScript, error)
GetScriptDetailByIds(ids []int) ([]*PluginPipelineScript, error)
GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error)
GetScriptMappingDetailByScriptIds(scriptIds []int) ([]*ScriptPathArgPortMapping, error)
GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error)
GetVariablesByStepIds(stepIds []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)
GetPluginByName(pluginName string) ([]*PluginMetadata, error)
GetAllPluginMetaData() ([]*PluginMetadata, error)
GetPluginStepsByPluginId(pluginId int) ([]*PluginStep, error)
GetConditionsByPluginId(pluginId int) ([]*PluginStepCondition, error)
GetPluginStageMappingByPluginId(pluginId int) (*PluginStageMapping, error)
GetConnection() (dbConnection *pg.DB)
GetPluginVersionsByParentId(parentPluginId int) ([]*PluginMetadata, error)
GetPluginParentMetadataByIdentifier(pluginIdentifier string) (*PluginParentMetadata, error)
GetPluginParentsMetadataByIdentifiers(pluginIdentifiers ...string) ([]*PluginParentMetadata, error)
GetAllFilteredPluginParentMetadata(searchKey string, tags []string) ([]*PluginParentMetadata, error)
GetPluginParentMetadataByIds(ids []int) ([]*PluginParentMetadata, error)
GetAllPluginMinData() ([]*PluginParentMetadata, error)
GetAllPluginMinDataByType(pluginType string) ([]*PluginParentMetadata, error)
GetPluginParentMinDataById(id int) (*PluginParentMetadata, error)
MarkPreviousPluginVersionLatestFalse(pluginParentId int) error
GetPluginMetadataByPluginIdentifier(identifier string) (*PluginMetadata, error)
SavePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) (*PluginMetadata, error)
SavePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) (*PluginStageMapping, error)
SavePluginSteps(pluginStep *PluginStep, tx *pg.Tx) (*PluginStep, error)
SavePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) (*PluginPipelineScript, error)
SavePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) (*PluginStepVariable, error)
SavePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) (*PluginStepCondition, error)
SavePluginTag(pluginTag *PluginTag, tx *pg.Tx) (*PluginTag, error)
SavePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) (*PluginTagRelation, error)
SavePluginTagInBulk(pluginTag []*PluginTag, tx *pg.Tx) error
SavePluginTagRelationInBulk(pluginTagRelation []*PluginTagRelation, tx *pg.Tx) error
//SavePluginParentMetadataInBulk(tx *pg.Tx, pluginParentMetadata []*PluginParentMetadata) error
SavePluginParentMetadata(tx *pg.Tx, pluginParentMetadata *PluginParentMetadata) (*PluginParentMetadata, error)
UpdatePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) error
UpdatePluginMetadataInBulk(pluginsMetadata []*PluginMetadata, tx *pg.Tx) error
UpdatePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) error
UpdatePluginSteps(pluginStep *PluginStep, tx *pg.Tx) error
UpdatePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) error
UpdatePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) error
UpdatePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) error
UpdatePluginTag(pluginTag *PluginTag, tx *pg.Tx) error
UpdatePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) error
UpdateInBulkPluginSteps(pluginSteps []*PluginStep, tx *pg.Tx) error
UpdateInBulkPluginStepVariables(pluginStepVariables []*PluginStepVariable, tx *pg.Tx) error
UpdateInBulkPluginStepConditions(pluginStepConditions []*PluginStepCondition, tx *pg.Tx) error
}
type GlobalPluginRepositoryImpl ¶
type GlobalPluginRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewGlobalPluginRepository ¶
func NewGlobalPluginRepository(logger *zap.SugaredLogger, dbConnection *pg.DB) *GlobalPluginRepositoryImpl
func (*GlobalPluginRepositoryImpl) GetAllFilteredPluginParentMetadata ¶ added in v0.7.2
func (impl *GlobalPluginRepositoryImpl) GetAllFilteredPluginParentMetadata(searchKey string, tags []string) ([]*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginMetaData ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetAllPluginMetaData() ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginMinData ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) GetAllPluginMinData() ([]*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginMinDataByType ¶ added in v1.1.0
func (impl *GlobalPluginRepositoryImpl) GetAllPluginMinDataByType(pluginType string) ([]*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginTagRelations ¶
func (impl *GlobalPluginRepositoryImpl) GetAllPluginTagRelations() ([]*PluginTagRelation, error)
func (*GlobalPluginRepositoryImpl) GetAllPluginTags ¶
func (impl *GlobalPluginRepositoryImpl) GetAllPluginTags() ([]*PluginTag, error)
func (*GlobalPluginRepositoryImpl) GetConditionsByPluginId ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetConditionsByPluginId(pluginId int) ([]*PluginStepCondition, error)
GetConditionsByPluginId fetches plugin step variable conditions by plugin id
func (*GlobalPluginRepositoryImpl) GetConditionsByStepId ¶
func (impl *GlobalPluginRepositoryImpl) GetConditionsByStepId(stepId int) ([]*PluginStepCondition, error)
func (*GlobalPluginRepositoryImpl) GetConnection ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetConnection() (dbConnection *pg.DB)
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) GetMetaDataByPluginIds ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) GetMetaDataByPluginIds(pluginIds []int) ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins ¶
func (impl *GlobalPluginRepositoryImpl) GetMetaDataForAllPlugins(excludeDeprecated bool) ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetMetaDataForPluginWithStageType ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetMetaDataForPluginWithStageType(stageType int) ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginByName ¶ added in v0.6.24
func (impl *GlobalPluginRepositoryImpl) GetPluginByName(pluginName string) ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginMetadataByPluginIdentifier ¶ added in v1.2.2
func (impl *GlobalPluginRepositoryImpl) GetPluginMetadataByPluginIdentifier(identifier string) (*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginParentMetadataByIdentifier ¶ added in v0.7.2
func (impl *GlobalPluginRepositoryImpl) GetPluginParentMetadataByIdentifier(pluginIdentifier string) (*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginParentMetadataByIds ¶ added in v0.7.2
func (impl *GlobalPluginRepositoryImpl) GetPluginParentMetadataByIds(ids []int) ([]*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginParentMinDataById ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) GetPluginParentMinDataById(id int) (*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginParentsMetadataByIdentifiers ¶ added in v1.1.0
func (impl *GlobalPluginRepositoryImpl) GetPluginParentsMetadataByIdentifiers(pluginIdentifiers ...string) ([]*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) GetPluginStageMappingByPluginId ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetPluginStageMappingByPluginId(pluginId int) (*PluginStageMapping, error)
func (*GlobalPluginRepositoryImpl) GetPluginStepsByPluginId ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) GetPluginStepsByPluginId(pluginId int) ([]*PluginStep, error)
func (*GlobalPluginRepositoryImpl) GetPluginTagByNames ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) GetPluginTagByNames(tagNames []string) ([]*PluginTag, error)
func (*GlobalPluginRepositoryImpl) GetPluginVersionsByParentId ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) GetPluginVersionsByParentId(parentPluginId int) ([]*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) GetScriptDetailById ¶
func (impl *GlobalPluginRepositoryImpl) GetScriptDetailById(id int) (*PluginPipelineScript, error)
func (*GlobalPluginRepositoryImpl) GetScriptDetailByIds ¶ added in v1.2.2
func (impl *GlobalPluginRepositoryImpl) GetScriptDetailByIds(ids []int) ([]*PluginPipelineScript, error)
func (*GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId ¶
func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptId(scriptId int) ([]*ScriptPathArgPortMapping, error)
func (*GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptIds ¶ added in v1.2.2
func (impl *GlobalPluginRepositoryImpl) GetScriptMappingDetailByScriptIds(scriptIds []int) ([]*ScriptPathArgPortMapping, error)
func (*GlobalPluginRepositoryImpl) GetStepsByPluginIds ¶
func (impl *GlobalPluginRepositoryImpl) GetStepsByPluginIds(pluginIds []int) ([]*PluginStep, error)
func (*GlobalPluginRepositoryImpl) GetVariablesByStepId ¶
func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepId(stepId int) ([]*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) GetVariablesByStepIds ¶ added in v1.2.2
func (impl *GlobalPluginRepositoryImpl) GetVariablesByStepIds(stepIds []int) ([]*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) MarkPreviousPluginVersionLatestFalse ¶ added in v0.7.3
func (impl *GlobalPluginRepositoryImpl) MarkPreviousPluginVersionLatestFalse(pluginParentId int) error
func (*GlobalPluginRepositoryImpl) SavePluginMetadata ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) (*PluginMetadata, error)
func (*GlobalPluginRepositoryImpl) SavePluginParentMetadata ¶ added in v0.7.2
func (impl *GlobalPluginRepositoryImpl) SavePluginParentMetadata(tx *pg.Tx, pluginParentMetadata *PluginParentMetadata) (*PluginParentMetadata, error)
func (*GlobalPluginRepositoryImpl) SavePluginPipelineScript ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) (*PluginPipelineScript, error)
func (*GlobalPluginRepositoryImpl) SavePluginStageMapping ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) (*PluginStageMapping, error)
func (*GlobalPluginRepositoryImpl) SavePluginStepConditions ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) (*PluginStepCondition, error)
func (*GlobalPluginRepositoryImpl) SavePluginStepVariables ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) (*PluginStepVariable, error)
func (*GlobalPluginRepositoryImpl) SavePluginSteps ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginSteps(pluginStep *PluginStep, tx *pg.Tx) (*PluginStep, error)
func (*GlobalPluginRepositoryImpl) SavePluginTag ¶ added in v0.6.26
func (*GlobalPluginRepositoryImpl) SavePluginTagInBulk ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginTagInBulk(pluginTag []*PluginTag, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) SavePluginTagRelation ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) (*PluginTagRelation, error)
func (*GlobalPluginRepositoryImpl) SavePluginTagRelationInBulk ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) SavePluginTagRelationInBulk(pluginTagRelation []*PluginTagRelation, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdateInBulkPluginStepConditions ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginStepConditions(pluginStepConditions []*PluginStepCondition, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdateInBulkPluginStepVariables ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginStepVariables(pluginStepVariables []*PluginStepVariable, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdateInBulkPluginSteps ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdateInBulkPluginSteps(pluginSteps []*PluginStep, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginMetadata ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginMetadata(pluginMetadata *PluginMetadata, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginMetadataInBulk ¶ added in v0.7.2
func (impl *GlobalPluginRepositoryImpl) UpdatePluginMetadataInBulk(pluginsMetadata []*PluginMetadata, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginPipelineScript ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginPipelineScript(pluginPipelineScript *PluginPipelineScript, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginStageMapping ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginStageMapping(pluginStageMapping *PluginStageMapping, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginStepConditions ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginStepConditions(pluginStepConditions *PluginStepCondition, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginStepVariables ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginStepVariables(pluginStepVariables *PluginStepVariable, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginSteps ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginSteps(pluginStep *PluginStep, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginTag ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginTag(pluginTag *PluginTag, tx *pg.Tx) error
func (*GlobalPluginRepositoryImpl) UpdatePluginTagRelation ¶ added in v0.6.26
func (impl *GlobalPluginRepositoryImpl) UpdatePluginTagRelation(pluginTagRelation *PluginTagRelation, tx *pg.Tx) error
type PluginMetadata ¶
type PluginMetadata struct {
Id int `sql:"id,pk"`
Name string `sql:"name"`
Description string `sql:"description"`
Type PluginType `sql:"type"` //deprecated
Icon string `sql:"icon"` //deprecated
Deleted bool `sql:"deleted, notnull"`
PluginParentMetadataId int `sql:"plugin_parent_metadata_id"`
PluginVersion string `sql:"plugin_version, notnull"`
IsDeprecated bool `sql:"is_deprecated, notnull"`
DocLink string `sql:"doc_link"`
IsLatest bool `sql:"is_latest, notnull"`
IsExposed bool `sql:"is_exposed, notnull"` // it's not user driven, used internally to make decision weather to show plugin or not in plugin list
sql.AuditLog
// contains filtered or unexported fields
}
func NewPluginVersionMetadata ¶ added in v0.7.3
func NewPluginVersionMetadata() *PluginMetadata
func (*PluginMetadata) CreateAuditLog ¶ added in v0.7.3
func (r *PluginMetadata) CreateAuditLog(userId int32) *PluginMetadata
func (*PluginMetadata) WithBasicMetadata ¶ added in v0.7.3
func (r *PluginMetadata) WithBasicMetadata(name, description, pluginVersion, docLink string, isExposed *bool) *PluginMetadata
func (*PluginMetadata) WithIsLatestFlag ¶ added in v0.7.3
func (r *PluginMetadata) WithIsLatestFlag(isLatest bool) *PluginMetadata
func (*PluginMetadata) WithPluginParentMetadataId ¶ added in v0.7.3
func (r *PluginMetadata) WithPluginParentMetadataId(parentId int) *PluginMetadata
type PluginParentMetadata ¶ added in v0.7.2
type PluginParentMetadata struct {
Id int `sql:"id,pk"`
Name string `sql:"name, notnull"`
Identifier string `sql:"identifier, notnull"`
Description string `sql:"description"`
Type PluginType `sql:"type"`
Icon string `sql:"icon"`
Deleted bool `sql:"deleted, notnull"`
IsExposed bool `sql:"is_exposed, notnull"` // it's not user driven, used internally to make decision weather to show plugin or not in plugin list
sql.AuditLog
// contains filtered or unexported fields
}
func NewPluginParentMetadata ¶ added in v0.7.2
func NewPluginParentMetadata() *PluginParentMetadata
func (*PluginParentMetadata) CreateAndSetPluginIdentifier ¶ added in v0.7.2
func (r *PluginParentMetadata) CreateAndSetPluginIdentifier(pluginName string, pluginId int, isIdentifierDuplicated bool) *PluginParentMetadata
func (*PluginParentMetadata) CreateAuditLog ¶ added in v0.7.2
func (r *PluginParentMetadata) CreateAuditLog(userId int32) *PluginParentMetadata
func (*PluginParentMetadata) SetParentPluginMetadata ¶ added in v0.7.2
func (r *PluginParentMetadata) SetParentPluginMetadata(pluginMetadata *PluginMetadata) *PluginParentMetadata
SetParentPluginMetadata method signature used only for migration purposes, sets pluginVersionsMetadata into plugin_parent_metadata
func (*PluginParentMetadata) WithBasicMetadata ¶ added in v0.7.3
func (r *PluginParentMetadata) WithBasicMetadata(name, identifier, description, icon string, pluginType PluginType, isExposed *bool) *PluginParentMetadata
func (*PluginParentMetadata) WithIsExposed ¶ added in v1.2.2
func (r *PluginParentMetadata) WithIsExposed(isExposed bool) *PluginParentMetadata
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 PluginStageMapping ¶ added in v0.6.21
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,notnull"`
ConditionVariableId int `sql:"condition_variable_id,notnull"` //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,notnull"`
VariableStepIndex int `sql:"variable_step_index,notnull"`
VariableStepIndexInPlugin int `sql:"variable_step_index_in_plugin,notnull"` // 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
func (PluginStepVariableFormatType) String ¶ added in v1.1.0
func (p PluginStepVariableFormatType) String() string
type PluginStepVariableType ¶
type PluginStepVariableType string
func (PluginStepVariableType) IsOutput ¶ added in v1.1.0
func (p PluginStepVariableType) IsOutput() bool
type PluginStepVariableValueType ¶
type PluginStepVariableValueType string
func (PluginStepVariableValueType) IsGlobalDefinedValue ¶ added in v1.1.0
func (p PluginStepVariableValueType) IsGlobalDefinedValue() bool
func (PluginStepVariableValueType) IsPreviousOutputDefinedValue ¶ added in v1.1.0
func (p PluginStepVariableValueType) IsPreviousOutputDefinedValue() bool
func (PluginStepVariableValueType) String ¶ added in v1.1.0
func (p PluginStepVariableValueType) String() string
type PluginTag ¶
type PluginTag struct {
Id int `sql:"id,pk"`
Name string `sql:"name"`
Deleted bool `sql:"deleted, notnull"`
sql.AuditLog
// contains filtered or unexported fields
}
func NewPluginTag ¶ added in v0.7.3
func NewPluginTag() *PluginTag
func (*PluginTag) CreateAuditLog ¶ added in v0.7.3
type PluginTagRelation ¶
type PluginTagRelation struct {
Id int `sql:"id,pk"`
TagId int `sql:"tag_id"`
PluginId int `sql:"plugin_id"`
sql.AuditLog
// contains filtered or unexported fields
}
func NewPluginTagRelation ¶ added in v0.7.3
func NewPluginTagRelation() *PluginTagRelation
func (*PluginTagRelation) CreateAuditLog ¶ added in v0.7.3
func (r *PluginTagRelation) CreateAuditLog(userId int32) *PluginTagRelation
func (*PluginTagRelation) WithTagAndPluginId ¶ added in v0.7.3
func (r *PluginTagRelation) WithTagAndPluginId(tagId, pluginId int) *PluginTagRelation
type PluginType ¶
type PluginType string
func (PluginType) ToString ¶ added in v1.1.0
func (p PluginType) ToString() 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.