noop

package
v0.0.0-...-69999d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package noop contains a compute backend that does nothing, for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	events.Computer
}

Backend is a scheduler backend that doesn't do anything which is useful for testing.

func NewBackend

func NewBackend() *Backend

NewBackend returns a new noop Backend instance.

func (Backend) CheckBackendParameterSupport

func (b Backend) CheckBackendParameterSupport(task *tes.Task) error

func (*Backend) Close

func (b *Backend) Close()

func (*Backend) WriteEvent

func (b *Backend) WriteEvent(context.Context, *events.Event) error

WriteEvent is a noop and returns nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL