commonv1

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta added in v0.0.137

type Meta struct {
	Group   string            `json:"group" validate:"required"`
	Name    string            `json:"name" validate:"required"`
	Labels  map[string]string `json:"labels,omitempty"`
	Runtime *Runtime          `json:"runtime"`
}

type Opts added in v0.0.137

type Opts struct {
	Name  string
	Value string
}

func (*Opts) IsEmpty added in v0.0.137

func (opt *Opts) IsEmpty() bool

type Owner

type Owner struct {
	Kind  string
	Group string
	Name  string
}

func (Owner) IsEmpty

func (owner Owner) IsEmpty() bool

func (Owner) IsEqual

func (owner Owner) IsEqual(o Owner) bool

type Runtime

type Runtime struct {
	Owner    Owner  `json:"owner"`
	Node     uint64 `json:"node"`
	NodeName string `json:"nodeName"`
}

func (*Runtime) GetNode

func (runtime *Runtime) GetNode() uint64

func (*Runtime) GetNodeName added in v0.0.128

func (runtime *Runtime) GetNodeName() string

func (*Runtime) GetOwner

func (runtime *Runtime) GetOwner() Owner

func (*Runtime) SetNode

func (runtime *Runtime) SetNode(node uint64)

func (*Runtime) SetNodeName added in v0.0.128

func (runtime *Runtime) SetNodeName(nodeName string)

func (*Runtime) SetOwner

func (runtime *Runtime) SetOwner(kind string, group string, name string)

type State added in v0.0.137

type State struct {
	Options []*Opts
}

func (*State) AddOpt added in v0.0.137

func (state *State) AddOpt(name string, value string)

func (*State) GetOpt added in v0.0.137

func (state *State) GetOpt(name string) *Opts

Jump to

Keyboard shortcuts

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