objectdevice

package
v3.0.0-rc71 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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