Documentation ¶
Index ¶
- type OffloadNodeStatusRepo
- func (_m *OffloadNodeStatusRepo) Delete(uid string, version string) error
- func (_m *OffloadNodeStatusRepo) Get(uid string, version string) (v1alpha1.Nodes, error)
- func (_m *OffloadNodeStatusRepo) IsEnabled() bool
- func (_m *OffloadNodeStatusRepo) List(namespace string) (map[sqldb.UUIDVersion]v1alpha1.Nodes, error)
- func (_m *OffloadNodeStatusRepo) ListOldOffloads(namespace string) (map[string][]string, error)
- func (_m *OffloadNodeStatusRepo) Save(uid string, namespace string, nodes v1alpha1.Nodes) (string, error)
- type WorkflowArchive
- func (_m *WorkflowArchive) ArchiveWorkflow(wf *v1alpha1.Workflow) error
- func (_m *WorkflowArchive) CountWorkflows(options utils.ListOptions) (int64, error)
- func (_m *WorkflowArchive) DeleteExpiredWorkflows(ttl time.Duration) error
- func (_m *WorkflowArchive) DeleteWorkflow(uid string) error
- func (_m *WorkflowArchive) GetWorkflow(uid string, namespace string, name string) (*v1alpha1.Workflow, error)
- func (_m *WorkflowArchive) GetWorkflowForEstimator(namespace string, requirements []labels.Requirement) (*v1alpha1.Workflow, error)
- func (_m *WorkflowArchive) IsEnabled() bool
- func (_m *WorkflowArchive) ListWorkflows(options utils.ListOptions) (v1alpha1.Workflows, error)
- func (_m *WorkflowArchive) ListWorkflowsLabelKeys() (*v1alpha1.LabelKeys, error)
- func (_m *WorkflowArchive) ListWorkflowsLabelValues(key string) (*v1alpha1.LabelValues, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OffloadNodeStatusRepo ¶
OffloadNodeStatusRepo is an autogenerated mock type for the OffloadNodeStatusRepo type
func (*OffloadNodeStatusRepo) Delete ¶
func (_m *OffloadNodeStatusRepo) Delete(uid string, version string) error
Delete provides a mock function with given fields: uid, version
func (*OffloadNodeStatusRepo) IsEnabled ¶
func (_m *OffloadNodeStatusRepo) IsEnabled() bool
IsEnabled provides a mock function with given fields:
func (*OffloadNodeStatusRepo) List ¶
func (_m *OffloadNodeStatusRepo) List(namespace string) (map[sqldb.UUIDVersion]v1alpha1.Nodes, error)
List provides a mock function with given fields: namespace
func (*OffloadNodeStatusRepo) ListOldOffloads ¶
func (_m *OffloadNodeStatusRepo) ListOldOffloads(namespace string) (map[string][]string, error)
ListOldOffloads provides a mock function with given fields: namespace
type WorkflowArchive ¶
WorkflowArchive is an autogenerated mock type for the WorkflowArchive type
func NewWorkflowArchive ¶ added in v3.4.8
func NewWorkflowArchive(t interface { mock.TestingT Cleanup(func()) }) *WorkflowArchive
NewWorkflowArchive creates a new instance of WorkflowArchive. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WorkflowArchive) ArchiveWorkflow ¶
func (_m *WorkflowArchive) ArchiveWorkflow(wf *v1alpha1.Workflow) error
ArchiveWorkflow provides a mock function with given fields: wf
func (*WorkflowArchive) CountWorkflows ¶ added in v3.4.0
func (_m *WorkflowArchive) CountWorkflows(options utils.ListOptions) (int64, error)
CountWorkflows provides a mock function with given fields: options
func (*WorkflowArchive) DeleteExpiredWorkflows ¶
func (_m *WorkflowArchive) DeleteExpiredWorkflows(ttl time.Duration) error
DeleteExpiredWorkflows provides a mock function with given fields: ttl
func (*WorkflowArchive) DeleteWorkflow ¶
func (_m *WorkflowArchive) DeleteWorkflow(uid string) error
DeleteWorkflow provides a mock function with given fields: uid
func (*WorkflowArchive) GetWorkflow ¶
func (_m *WorkflowArchive) GetWorkflow(uid string, namespace string, name string) (*v1alpha1.Workflow, error)
GetWorkflow provides a mock function with given fields: uid, namespace, name
func (*WorkflowArchive) GetWorkflowForEstimator ¶ added in v3.5.9
func (_m *WorkflowArchive) GetWorkflowForEstimator(namespace string, requirements []labels.Requirement) (*v1alpha1.Workflow, error)
GetWorkflowForEstimator provides a mock function with given fields: namespace, requirements
func (*WorkflowArchive) IsEnabled ¶
func (_m *WorkflowArchive) IsEnabled() bool
IsEnabled provides a mock function with given fields:
func (*WorkflowArchive) ListWorkflows ¶
func (_m *WorkflowArchive) ListWorkflows(options utils.ListOptions) (v1alpha1.Workflows, error)
ListWorkflows provides a mock function with given fields: options
func (*WorkflowArchive) ListWorkflowsLabelKeys ¶ added in v3.3.0
func (_m *WorkflowArchive) ListWorkflowsLabelKeys() (*v1alpha1.LabelKeys, error)
ListWorkflowsLabelKeys provides a mock function with given fields:
func (*WorkflowArchive) ListWorkflowsLabelValues ¶ added in v3.3.0
func (_m *WorkflowArchive) ListWorkflowsLabelValues(key string) (*v1alpha1.LabelValues, error)
ListWorkflowsLabelValues provides a mock function with given fields: key