mydiscovery

package
v0.61.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mydiscovery implements a discovery that returns some fake components.

Index

Constants

This section is empty.

Variables

View Source
var Model = resource.NewModel("acme", "demo", "mydiscovery")

Model is the full model definition.

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.

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