fake

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package fake provides a process-local agent backend for development and provider contract tests. It deliberately stores no secret values.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDesiredState = errors.New("invalid desired state")
)

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *Backend

func (*Backend) DeleteInstance

func (*Backend) DeletePool

func (*Backend) GetPoolUtilization

func (*Backend) ObservePool

func (*Backend) ReconcileInstance

func (*Backend) ReconcilePool

func (*Backend) Subscribe

func (b *Backend) Subscribe(ctx context.Context, handler func(context.Context, agentbackend.Event) error) error

type Config

type Config struct {
	TransitionDelay time.Duration
	Now             func() time.Time
}

Jump to

Keyboard shortcuts

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