resource

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package resource provides the definition of a test Resource and a test resource Builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	// Build builds a new test resource.
	// TODO: replace loader.TestResource with a dedicated type.
	Build(logger logr.Logger, testResource *loader.TestResource) (Resource, error)
}

Builder allows to build new test resource.

type Resource

type Resource interface {
	// Name returns the resource name.
	Name() string
	// Create creates the resource.
	Create(ctx context.Context) error
	// Destroy destroys the resource.
	Destroy(ctx context.Context) error
	field.Retriever
}

Resource represents a single resource in a test.

Directories

Path Synopsis
Package builder provides an implementation of resource.Builder.
Package builder provides an implementation of resource.Builder.
Package clientserver provides the implementation of a clientServer test resource.
Package clientserver provides the implementation of a clientServer test resource.
fd
directory
Package directory provides the implementation of a directory fd test resource.
Package directory provides the implementation of a directory fd test resource.
epoll
Package epoll provides the implementation of an eventpoll fd test resource.
Package epoll provides the implementation of an eventpoll fd test resource.
event
Package event provides the implementation of an event fd test resource.
Package event provides the implementation of an event fd test resource.
file
Package file provides the implementation of a regular file fd test resource.
Package file provides the implementation of a regular file fd test resource.
inotify
Package inotify provides the implementation of an inotify fd test resource.
Package inotify provides the implementation of an inotify fd test resource.
mem
Package mem provides the implementation of a memfd fd test resource.
Package mem provides the implementation of a memfd fd test resource.
pipe
Package pipe provides the implementation of a pipe fd test resource.
Package pipe provides the implementation of a pipe fd test resource.
signal
Package signal provides the implementation of a signal fd test resource.
Package signal provides the implementation of a signal fd test resource.
Package process provides the implementation of a process test resource.
Package process provides the implementation of a process test resource.

Jump to

Keyboard shortcuts

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