withlistval

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package withlistval is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema. The generated paths are based on a compressed form of the schema.

This package was generated by ygnmi version: (devel): (ygot: v0.25.4) using the following YANG input files:

  • ../pathgen/testdata/yang/openconfig-simple.yang
  • ../pathgen/testdata/yang/openconfig-withlistval.yang
  • ../pathgen/testdata/yang/openconfig-nested.yang

Imported modules were sourced from:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelPath

type ModelPath struct {
	*ygnmi.NodePath
}

ModelPath represents the /openconfig-withlistval/model YANG schema element.

func (*ModelPath) Config

func (n *ModelPath) Config() ygnmi.ConfigQuery[*oc.Model]

Config returns a Query that can be used in gNMI operations.

func (*ModelPath) MultiKey

func (n *ModelPath) MultiKey(Key1 uint32, Key2 uint64) *Model_MultiKeyPath

MultiKey (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "b/multi-key"
Path from root:       "/model/b/multi-key"

Key1: uint32
Key2: uint64

func (*ModelPath) MultiKeyAny

func (n *ModelPath) MultiKeyAny() *Model_MultiKeyPathAny

MultiKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "b/multi-key"
Path from root:       "/model/b/multi-key"

func (*ModelPath) NoKeyAny added in v0.5.0

func (n *ModelPath) NoKeyAny() *Model_NoKeyPathAny

NoKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "c/no-key"
Path from root:       "/model/c/no-key"

func (*ModelPath) SingleKey

func (n *ModelPath) SingleKey(Key string) *Model_SingleKeyPath

SingleKey (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "a/single-key"
Path from root:       "/model/a/single-key"

Key: string

func (*ModelPath) SingleKeyAny

func (n *ModelPath) SingleKeyAny() *Model_SingleKeyPathAny

SingleKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "a/single-key"
Path from root:       "/model/a/single-key"

func (*ModelPath) State

func (n *ModelPath) State() ygnmi.SingletonQuery[*oc.Model]

State returns a Query that can be used in gNMI operations.

type ModelPathAny

type ModelPathAny struct {
	*ygnmi.NodePath
}

ModelPathAny represents the wildcard version of the /openconfig-withlistval/model YANG schema element.

func (*ModelPathAny) Config

func (n *ModelPathAny) Config() ygnmi.WildcardQuery[*oc.Model]

Config returns a Query that can be used in gNMI operations.

func (*ModelPathAny) MultiKey

func (n *ModelPathAny) MultiKey(Key1 uint32, Key2 uint64) *Model_MultiKeyPathAny

MultiKey (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "b/multi-key"
Path from root:       "/model/b/multi-key"

Key1: uint32
Key2: uint64

func (*ModelPathAny) MultiKeyAny

func (n *ModelPathAny) MultiKeyAny() *Model_MultiKeyPathAny

MultiKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "b/multi-key"
Path from root:       "/model/b/multi-key"

func (*ModelPathAny) NoKeyAny added in v0.5.0

func (n *ModelPathAny) NoKeyAny() *Model_NoKeyPathAny

NoKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "c/no-key"
Path from root:       "/model/c/no-key"

func (*ModelPathAny) SingleKey

func (n *ModelPathAny) SingleKey(Key string) *Model_SingleKeyPathAny

SingleKey (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "a/single-key"
Path from root:       "/model/a/single-key"

Key: string

func (*ModelPathAny) SingleKeyAny

func (n *ModelPathAny) SingleKeyAny() *Model_SingleKeyPathAny

SingleKeyAny (list):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "a/single-key"
Path from root:       "/model/a/single-key"

func (*ModelPathAny) State

func (n *ModelPathAny) State() ygnmi.WildcardQuery[*oc.Model]

State returns a Query that can be used in gNMI operations.

type Model_MultiKeyPath

type Model_MultiKeyPath struct {
	*ygnmi.NodePath
}

Model_MultiKeyPath represents the /openconfig-withlistval/model/b/multi-key YANG schema element.

func (*Model_MultiKeyPath) Config

Config returns a Query that can be used in gNMI operations.

func (*Model_MultiKeyPath) Key1

Key1 (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key1"
Path from root:       "/model/b/multi-key/*/key1"

func (*Model_MultiKeyPath) Key2

Key2 (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key2"
Path from root:       "/model/b/multi-key/*/key2"

func (*Model_MultiKeyPath) State

State returns a Query that can be used in gNMI operations.

type Model_MultiKeyPathAny

type Model_MultiKeyPathAny struct {
	*ygnmi.NodePath
}

Model_MultiKeyPathAny represents the wildcard version of the /openconfig-withlistval/model/b/multi-key YANG schema element.

func (*Model_MultiKeyPathAny) Config

Config returns a Query that can be used in gNMI operations.

func (*Model_MultiKeyPathAny) Key1

Key1 (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key1"
Path from root:       "/model/b/multi-key/*/key1"

func (*Model_MultiKeyPathAny) Key2

Key2 (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key2"
Path from root:       "/model/b/multi-key/*/key2"

func (*Model_MultiKeyPathAny) State

State returns a Query that can be used in gNMI operations.

func (*Model_MultiKeyPathAny) WithKey1

WithKey1 sets Model_MultiKeyPathAny's key "key1" to the specified value. Key1: uint32

func (*Model_MultiKeyPathAny) WithKey2

WithKey2 sets Model_MultiKeyPathAny's key "key2" to the specified value. Key2: uint64

type Model_MultiKey_Key1Path

type Model_MultiKey_Key1Path struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_MultiKey_Key1Path represents the /openconfig-withlistval/model/b/multi-key/state/key1 YANG schema element.

func (*Model_MultiKey_Key1Path) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key1"
Path from root:       "/model/b/multi-key/config/key1"

func (*Model_MultiKey_Key1Path) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key1"
Path from root:       "/model/b/multi-key/state/key1"

type Model_MultiKey_Key1PathAny

type Model_MultiKey_Key1PathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_MultiKey_Key1PathAny represents the wildcard version of the /openconfig-withlistval/model/b/multi-key/state/key1 YANG schema element.

func (*Model_MultiKey_Key1PathAny) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key1"
Path from root:       "/model/b/multi-key/config/key1"

func (*Model_MultiKey_Key1PathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key1"
Path from root:       "/model/b/multi-key/state/key1"

type Model_MultiKey_Key2Path

type Model_MultiKey_Key2Path struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_MultiKey_Key2Path represents the /openconfig-withlistval/model/b/multi-key/state/key2 YANG schema element.

func (*Model_MultiKey_Key2Path) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key2"
Path from root:       "/model/b/multi-key/config/key2"

func (*Model_MultiKey_Key2Path) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key2"
Path from root:       "/model/b/multi-key/state/key2"

type Model_MultiKey_Key2PathAny

type Model_MultiKey_Key2PathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_MultiKey_Key2PathAny represents the wildcard version of the /openconfig-withlistval/model/b/multi-key/state/key2 YANG schema element.

func (*Model_MultiKey_Key2PathAny) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key2"
Path from root:       "/model/b/multi-key/config/key2"

func (*Model_MultiKey_Key2PathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key2"
Path from root:       "/model/b/multi-key/state/key2"

type Model_NoKeyPath added in v0.5.0

type Model_NoKeyPath struct {
	*ygnmi.NodePath
}

Model_NoKeyPath represents the /openconfig-withlistval/model/c/no-key YANG schema element.

func (*Model_NoKeyPath) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

type Model_NoKeyPathAny added in v0.5.0

type Model_NoKeyPathAny struct {
	*ygnmi.NodePath
}

Model_NoKeyPathAny represents the wildcard version of the /openconfig-withlistval/model/c/no-key YANG schema element.

func (*Model_NoKeyPathAny) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

type Model_NoKey_FooPath added in v0.5.0

type Model_NoKey_FooPath struct {
	*ygnmi.NodePath
}

Model_NoKey_FooPath represents the /openconfig-withlistval/model/c/no-key/foo YANG schema element.

func (*Model_NoKey_FooPath) Key added in v0.5.0

Key (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/c/no-key/foo/state/key"

func (*Model_NoKey_FooPath) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

func (*Model_NoKey_FooPath) Value added in v0.5.0

Value (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/c/no-key/foo/state/value"

type Model_NoKey_FooPathAny added in v0.5.0

type Model_NoKey_FooPathAny struct {
	*ygnmi.NodePath
}

Model_NoKey_FooPathAny represents the wildcard version of the /openconfig-withlistval/model/c/no-key/foo YANG schema element.

func (*Model_NoKey_FooPathAny) Key added in v0.5.0

Key (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/c/no-key/foo/state/key"

func (*Model_NoKey_FooPathAny) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

func (*Model_NoKey_FooPathAny) Value added in v0.5.0

Value (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/c/no-key/foo/state/value"

type Model_NoKey_Foo_KeyPath added in v0.5.0

type Model_NoKey_Foo_KeyPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_NoKey_Foo_KeyPath represents the /openconfig-withlistval/model/c/no-key/foo/state/key YANG schema element.

func (*Model_NoKey_Foo_KeyPath) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/c/no-key/foo/state/key"

type Model_NoKey_Foo_KeyPathAny added in v0.5.0

type Model_NoKey_Foo_KeyPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_NoKey_Foo_KeyPathAny represents the wildcard version of the /openconfig-withlistval/model/c/no-key/foo/state/key YANG schema element.

func (*Model_NoKey_Foo_KeyPathAny) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/c/no-key/foo/state/key"

type Model_NoKey_Foo_ValuePath added in v0.5.0

type Model_NoKey_Foo_ValuePath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_NoKey_Foo_ValuePath represents the /openconfig-withlistval/model/c/no-key/foo/state/value YANG schema element.

func (*Model_NoKey_Foo_ValuePath) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/c/no-key/foo/state/value"

type Model_NoKey_Foo_ValuePathAny added in v0.5.0

type Model_NoKey_Foo_ValuePathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_NoKey_Foo_ValuePathAny represents the wildcard version of the /openconfig-withlistval/model/c/no-key/foo/state/value YANG schema element.

func (*Model_NoKey_Foo_ValuePathAny) State added in v0.5.0

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/c/no-key/foo/state/value"

type Model_SingleKeyPath

type Model_SingleKeyPath struct {
	*ygnmi.NodePath
}

Model_SingleKeyPath represents the /openconfig-withlistval/model/a/single-key YANG schema element.

func (*Model_SingleKeyPath) Config

Config returns a Query that can be used in gNMI operations.

func (*Model_SingleKeyPath) Key

Key (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key"
Path from root:       "/model/a/single-key/*/key"

func (*Model_SingleKeyPath) State

State returns a Query that can be used in gNMI operations.

func (*Model_SingleKeyPath) Value

Value (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/value"
Path from root:       "/model/a/single-key/*/value"

type Model_SingleKeyPathAny

type Model_SingleKeyPathAny struct {
	*ygnmi.NodePath
}

Model_SingleKeyPathAny represents the wildcard version of the /openconfig-withlistval/model/a/single-key YANG schema element.

func (*Model_SingleKeyPathAny) Config

Config returns a Query that can be used in gNMI operations.

func (*Model_SingleKeyPathAny) Key

Key (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/key"
Path from root:       "/model/a/single-key/*/key"

func (*Model_SingleKeyPathAny) State

State returns a Query that can be used in gNMI operations.

func (*Model_SingleKeyPathAny) Value

Value (leaf):

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "*/value"
Path from root:       "/model/a/single-key/*/value"

type Model_SingleKey_KeyPath

type Model_SingleKey_KeyPath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_SingleKey_KeyPath represents the /openconfig-withlistval/model/a/single-key/state/key YANG schema element.

func (*Model_SingleKey_KeyPath) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key"
Path from root:       "/model/a/single-key/config/key"

func (*Model_SingleKey_KeyPath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/a/single-key/state/key"

type Model_SingleKey_KeyPathAny

type Model_SingleKey_KeyPathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_SingleKey_KeyPathAny represents the wildcard version of the /openconfig-withlistval/model/a/single-key/state/key YANG schema element.

func (*Model_SingleKey_KeyPathAny) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/key"
Path from root:       "/model/a/single-key/config/key"

func (*Model_SingleKey_KeyPathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/key"
Path from root:       "/model/a/single-key/state/key"

type Model_SingleKey_ValuePath

type Model_SingleKey_ValuePath struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_SingleKey_ValuePath represents the /openconfig-withlistval/model/a/single-key/state/value YANG schema element.

func (*Model_SingleKey_ValuePath) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/value"
Path from root:       "/model/a/single-key/config/value"

func (*Model_SingleKey_ValuePath) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/a/single-key/state/value"

type Model_SingleKey_ValuePathAny

type Model_SingleKey_ValuePathAny struct {
	*ygnmi.NodePath
	// contains filtered or unexported fields
}

Model_SingleKey_ValuePathAny represents the wildcard version of the /openconfig-withlistval/model/a/single-key/state/value YANG schema element.

func (*Model_SingleKey_ValuePathAny) Config

Config returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "config/value"
Path from root:       "/model/a/single-key/config/value"

func (*Model_SingleKey_ValuePathAny) State

State returns a Query that can be used in gNMI operations.

Defining module:      "openconfig-withlistval"
Instantiating module: "openconfig-withlistval"
Path from parent:     "state/value"
Path from root:       "/model/a/single-key/state/value"

Jump to

Keyboard shortcuts

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