realm

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Overview

Package realm contains utilities for applications operating on specific control domain realms

Index

Constants

View Source
const (
	// LabelFlag command option
	LabelFlag = "realm-label"
	// ValueFlag command option
	ValueFlag = "realm-value"
	// LabelDefault option default
	LabelDefault = "realm"
	// ValueDefault option default
	ValueDefault = "*"
)

Variables

This section is empty.

Functions

func AddRealmFlags

func AddRealmFlags(cmd *cobra.Command, name string)

AddRealmFlags injects standard realm label/value flags to the given command

Types

type Options

type Options struct {
	Label string
	Value string
}

Options holds onos-topo label/value for querying devices in specific control domain realms

func ExtractOptions

func ExtractOptions(cmd *cobra.Command) *Options

ExtractOptions extracts realm options from the specified command usage

func (*Options) QueryFilter

func (ro *Options) QueryFilter(aspects ...string) *topo.Filters

QueryFilter returns query filter for entities with the given realm label/value and the specified aspects

Jump to

Keyboard shortcuts

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