objectdevice

package
v3.0.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L

type L []T

func NewList

func NewList() L

func (L) Add

func (t L) Add(more ...interface{}) L

func (L) Render

func (t L) Render() string

type Role

type Role int
const (
	RoleExposed Role = 1 << iota
	RoleSub
	RoleBase
	RoleClaimed
)

func ParseRoles

func ParseRoles(s string) Role

func (Role) MarshalJSON

func (t Role) MarshalJSON() ([]byte, error)

MarshalJSON marshals the data as a quoted json string

func (Role) String

func (t Role) String() string

func (*Role) UnmarshalJSON

func (t *Role) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to value

type T

type T struct {
	Device     device.T    `json:"device"`
	Role       Role        `json:"role"`
	RID        string      `json:"rid"`
	DriverID   driver.ID   `json:"driver"`
	ObjectPath naming.Path `json:"path"`
}

func (T) Unstructured

func (t T) Unstructured() map[string]any

Jump to

Keyboard shortcuts

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