Versions in this module Expand all Collapse all v0 v0.0.1 Oct 31, 2024 Changes in this version + var ErrJobNotFound = errors.New("The job can't be found") + type CiBuilderParams struct + BuilderConfig contracts.BuilderConfig + EnvironmentVariables map[string]string + JobResources database.JobResources + OperatingSystem manifest.OperatingSystem + func (cbp *CiBuilderParams) GetFullRepoPath() string + type Client interface + CancelCiBuilderJob func(ctx context.Context, jobName string) (err error) + CreateCiBuilderJob func(ctx context.Context, params CiBuilderParams) (job *batchv1.Job, err error) + GetJobName func(ctx context.Context, jobType contracts.JobType, repoOwner, repoName, id string) (jobname string) + RemoveCiBuilderConfigMap func(ctx context.Context, configmapName string) (err error) + RemoveCiBuilderImagePullSecret func(ctx context.Context, secretName string) (err error) + RemoveCiBuilderJob func(ctx context.Context, jobName string) (err error) + RemoveCiBuilderSecret func(ctx context.Context, secretName string) (err error) + TailCiBuilderJobLogs func(ctx context.Context, jobName string, logChannel chan contracts.TailLogLine) (err error) + func NewClient(config *api.APIConfig, encryptedConfig *api.APIConfig, ...) Client + func NewLoggingClient(c Client) Client + func NewMetricsClient(c Client, requestCount metrics.Counter, requestLatency metrics.Histogram) Client + func NewTracingClient(c Client) Client + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) CancelCiBuilderJob(ctx context.Context, jobName string) error + func (m *MockClient) CreateCiBuilderJob(ctx context.Context, params CiBuilderParams) (*v1.Job, error) + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) GetJobName(ctx context.Context, jobType estafette_ci_contracts.JobType, ...) string + func (m *MockClient) RemoveCiBuilderConfigMap(ctx context.Context, configmapName string) error + func (m *MockClient) RemoveCiBuilderImagePullSecret(ctx context.Context, secretName string) error + func (m *MockClient) RemoveCiBuilderJob(ctx context.Context, jobName string) error + func (m *MockClient) RemoveCiBuilderSecret(ctx context.Context, secretName string) error + func (m *MockClient) TailCiBuilderJobLogs(ctx context.Context, jobName string, ...) error + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) CancelCiBuilderJob(ctx, jobName interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CreateCiBuilderJob(ctx, params interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetJobName(ctx, jobType, repoOwner, repoName, id interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveCiBuilderConfigMap(ctx, configmapName interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveCiBuilderImagePullSecret(ctx, secretName interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveCiBuilderJob(ctx, jobName interface{}) *gomock.Call + func (mr *MockClientMockRecorder) RemoveCiBuilderSecret(ctx, secretName interface{}) *gomock.Call + func (mr *MockClientMockRecorder) TailCiBuilderJobLogs(ctx, jobName, logChannel interface{}) *gomock.Call + type ZeroLogLine struct + TailLogLine *contracts.TailLogLine