inventory

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 5 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(ctx context.Context) error
	Open(ctx context.Context) error
	AddHarness(ctx context.Context, id Harness) (bool, error)
	AddFeature(ctx context.Context, f Feature) (bool, error)
	GetFeatures(ctx context.Context, id Harness) ([]Feature, error)
	RemoveHarness(ctx context.Context, h Harness) error
	RemoveFeature(ctx context.Context, f 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