inventory

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	Id      string            `json:"id"`
	Labels  map[string]string `json:"labels"`
	Harness Harness           `json:"harness"`
}

type Harness

type Harness string

type Inventory

type Inventory interface {
	Create(context.Context) error
	Open(context.Context) error
	AddHarness(context.Context, Harness) (bool, error)
	AddFeature(context.Context, Feature) (bool, error)
	GetFeatures(context.Context, Harness) ([]Feature, error)
	RemoveHarness(context.Context, Harness) error
	RemoveFeature(context.Context, Feature) ([]Feature, error)
}

func NewFile

func NewFile(path string) Inventory

type InventoryModel

type InventoryModel map[Harness][]Feature

Jump to

Keyboard shortcuts

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