bmreqs

package
v0.0.0-...-3be6dbe Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ObjectSet is the set-alike requirements
	ObjectSet = uint8(0) + iota
	ObjectMax
)

Requirements types

View Source
const (
	OpAdd = uint8(0) + iota
	OpCheck
	OpGet
	OpDump
	OpClone
)

Requirements operations

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportedReq

type ExportedReq struct {
	Node string
	Type uint8
	Name string
	Req  string
}

type ExportedReqs

type ExportedReqs []ExportedReq

type ReqRequest

type ReqRequest struct {
	Node  string
	Name  string
	T     uint8
	Op    uint8
	Value string
}

type ReqResponse

type ReqResponse struct {
	Value string
	Error error
}

type ReqRoot

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

ReqRoot is the entry point data structure for all the bmreqs operations

func Import

func Import(r *ExportedReqs) (*ReqRoot, error)

func NewReqRoot

func NewReqRoot() *ReqRoot

NewReqRoot creates a new *ReqGroup object

func (*ReqRoot) Clone

func (rg *ReqRoot) Clone(node string, nodeDes string) error

func (*ReqRoot) Close

func (rg *ReqRoot) Close()

func (*ReqRoot) Export

func (rg *ReqRoot) Export(r *ExportedReqs, node string) error

func (*ReqRoot) Requirement

func (rg *ReqRoot) Requirement(req ReqRequest) ReqResponse

Jump to

Keyboard shortcuts

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