Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeJobReader ¶
type FakeJobReader struct { ReadJobFn func(ctx context.Context, id string) (job.Job, error) PollJobFn func(ctx context.Context, id string, interval time.Duration) (job.Job, error) GetJobAssetFileContentFn func(ctx context.Context, jobID, fileName string) ([]byte, error) }
FakeJobReader resto mock
func (*FakeJobReader) GetJobAssetFileContent ¶
func (fjr *FakeJobReader) GetJobAssetFileContent(ctx context.Context, jobID, fileName string) ([]byte, error)
GetJobAssetFileContent mock function
type FakeJobStarter ¶
type FakeJobStarter struct { StartJobFn func(ctx context.Context, opts job.StartOptions) (jobID string, err error) CheckFrameworkAvailabilitySuccess bool }
FakeJobStarter resto mock
func (*FakeJobStarter) CheckFrameworkAvailability ¶
func (fjs *FakeJobStarter) CheckFrameworkAvailability(ctx context.Context, frameworkName string) error
CheckFrameworkAvailability mock function
func (*FakeJobStarter) StartJob ¶
func (fjs *FakeJobStarter) StartJob(ctx context.Context, opts job.StartOptions) (jobID string, err error)
StartJob mock function
type FakeProjectUploader ¶
type FakeProjectUploader struct {
UploadSuccess bool
}
FakeProjectUploader mock struct
func (*FakeProjectUploader) Upload ¶
func (fpu *FakeProjectUploader) Upload(name string) (storage.ArtifactMeta, error)
Upload mock function
Click to show internal directories.
Click to hide internal directories.