Documentation ¶
Index ¶
- Constants
- Variables
- func CollectApiBuilds(taskCtx core.SubTaskContext) error
- func CollectApiJobs(taskCtx core.SubTaskContext) error
- func ConvertBuilds(taskCtx core.SubTaskContext) error
- func ConvertJobs(taskCtx core.SubTaskContext) error
- func CreateApiClient(taskCtx core.TaskContext, connection *models.JenkinsConnection) (*helper.ApiAsyncClient, error)
- func ExtractApiBuilds(taskCtx core.SubTaskContext) error
- func ExtractApiJobs(taskCtx core.SubTaskContext) error
- type JenkinsApiParams
- type JenkinsOptions
- type JenkinsTaskData
- type SimpleJob
Constants ¶
View Source
const RAW_BUILD_TABLE = "jenkins_api_builds"
View Source
const RAW_JOB_TABLE = "jenkins_api_jobs"
Variables ¶
View Source
var CollectApiBuildsMeta = core.SubTaskMeta{ Name: "collectApiBuilds", EntryPoint: CollectApiBuilds, EnabledByDefault: true, Description: "Collect builds data from jenkins api", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
View Source
var CollectApiJobsMeta = core.SubTaskMeta{ Name: "collectApiJobs", EntryPoint: CollectApiJobs, EnabledByDefault: true, Description: "Collect jobs data from jenkins api", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
View Source
var ConvertBuildsMeta = core.SubTaskMeta{ Name: "convertBuilds", EntryPoint: ConvertBuilds, EnabledByDefault: true, Description: "Convert tool layer table jenkins_builds into domain layer table builds", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
View Source
var ConvertJobsMeta = core.SubTaskMeta{ Name: "convertJobs", EntryPoint: ConvertJobs, EnabledByDefault: true, Description: "Convert tool layer table jenkins_jobs into domain layer table jobs", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
View Source
var ExtractApiBuildsMeta = core.SubTaskMeta{ Name: "extractApiBuilds", EntryPoint: ExtractApiBuilds, EnabledByDefault: true, Description: "Extract raw builds data into tool layer table jenkins_builds", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
View Source
var ExtractApiJobsMeta = core.SubTaskMeta{ Name: "extractApiJobs", EntryPoint: ExtractApiJobs, EnabledByDefault: true, Description: "Extract raw jobs data into tool layer table jenkins_jobs", DomainTypes: []string{core.DOMAIN_TYPE_CICD}, }
Functions ¶
func CollectApiBuilds ¶
func CollectApiBuilds(taskCtx core.SubTaskContext) error
func CollectApiJobs ¶
func CollectApiJobs(taskCtx core.SubTaskContext) error
func ConvertBuilds ¶
func ConvertBuilds(taskCtx core.SubTaskContext) error
func ConvertJobs ¶
func ConvertJobs(taskCtx core.SubTaskContext) error
func CreateApiClient ¶
func CreateApiClient(taskCtx core.TaskContext, connection *models.JenkinsConnection) (*helper.ApiAsyncClient, error)
func ExtractApiBuilds ¶
func ExtractApiBuilds(taskCtx core.SubTaskContext) error
func ExtractApiJobs ¶
func ExtractApiJobs(taskCtx core.SubTaskContext) error
Types ¶
type JenkinsApiParams ¶ added in v0.12.0
type JenkinsApiParams struct {
ConnectionId uint64
}
type JenkinsOptions ¶
type JenkinsOptions struct { ConnectionId uint64 `json:"connectionId"` Since string Tasks []string `json:"tasks,omitempty"` }
func DecodeAndValidateTaskOptions ¶ added in v0.12.0
func DecodeAndValidateTaskOptions(options map[string]interface{}) (*JenkinsOptions, error)
type JenkinsTaskData ¶
type JenkinsTaskData struct { Options *JenkinsOptions ApiClient *helper.ApiAsyncClient Connection *models.JenkinsConnection Since *time.Time }
Click to show internal directories.
Click to hide internal directories.