fake

package
v0.62.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fake implements a fake discovery service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	resource.Named
	resource.TriviallyReconfigurable
	resource.TriviallyCloseable
	// contains filtered or unexported fields
}

Discovery is a fake Discovery service that returns.

func (*Discovery) DiscoverResources

func (dis *Discovery) DiscoverResources(context.Context, map[string]any) ([]resource.Config, error)

DiscoverResources returns the discovered resources.

func (*Discovery) DoCommand

func (dis *Discovery) DoCommand(ctx context.Context, cmd map[string]interface{}) (map[string]interface{}, error)

DoCommand echos input back to the caller.

Jump to

Keyboard shortcuts

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