types

package
Version: v0.0.0-...-d6d0463 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	L3Protocol_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "IPV4",
		2: "IPV6",
	}
	L3Protocol_value = map[string]int32{
		"UNSPECIFIED": 0,
		"IPV4":        1,
		"IPV6":        2,
	}
)

Enum value maps for L3Protocol.

View Source
var (
	HashType_HashMethod_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SHA256",
		2: "SHA512",
		3: "MD5",
	}
	HashType_HashMethod_value = map[string]int32{
		"UNSPECIFIED": 0,
		"SHA256":      1,
		"SHA512":      2,
		"MD5":         3,
	}
)

Enum value maps for HashType_HashMethod.

View Source
var (
	// The gNOI service semantic version.
	//
	// optional string gnoi_version = 1002;
	E_GnoiVersion = &file_types_types_proto_extTypes[0]
)

Extension fields to descriptor.FileOptions.

View Source
var File_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// Types that are assignable to Password:
	//	*Credentials_Cleartext
	//	*Credentials_Hashed
	Password isCredentials_Password `protobuf_oneof:"password"`
	// contains filtered or unexported fields
}

Credentials defines credentials needed to perform authentication on a device.

func (*Credentials) Descriptor deprecated

This method has been deprecated.
func (*Credentials) Descriptor() ([]byte, []int)

Deprecated: Use Credentials.ProtoReflect.Descriptor instead.

func (*Credentials) GetCleartext

func (x *Credentials) GetCleartext() string

func (*Credentials) GetHashed

func (x *Credentials) GetHashed() *HashType

func (*Credentials) GetPassword

func (m *Credentials) GetPassword() isCredentials_Password

func (*Credentials) GetUsername

func (x *Credentials) GetUsername() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) ProtoReflect

func (x *Credentials) ProtoReflect() protoreflect.Message

func (*Credentials) Reset

func (x *Credentials) Reset()

func (*Credentials) String

func (x *Credentials) String() string

type Credentials_Cleartext

type Credentials_Cleartext struct {
	Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"`
}

type Credentials_Hashed

type Credentials_Hashed struct {
	Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"`
}

type HashType

type HashType struct {
	Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"`
	Hash   []byte              `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

HashType defines the valid hash methods for data verification. UNSPECIFIED should be treated an error.

func (*HashType) Descriptor deprecated

This method has been deprecated.
func (*HashType) Descriptor() ([]byte, []int)

Deprecated: Use HashType.ProtoReflect.Descriptor instead.

func (*HashType) GetHash

func (x *HashType) GetHash() []byte

func (*HashType) GetMethod

func (x *HashType) GetMethod() HashType_HashMethod

func (*HashType) ProtoMessage

func (*HashType) ProtoMessage()

func (*HashType) ProtoReflect

func (x *HashType) ProtoReflect() protoreflect.Message

func (*HashType) Reset

func (x *HashType) Reset()

func (*HashType) String

func (x *HashType) String() string

type HashType_HashMethod

type HashType_HashMethod int32
const (
	HashType_UNSPECIFIED HashType_HashMethod = 0
	HashType_SHA256      HashType_HashMethod = 1
	HashType_SHA512      HashType_HashMethod = 2
	HashType_MD5         HashType_HashMethod = 3
)

func (HashType_HashMethod) Descriptor

func (HashType_HashMethod) Enum

func (HashType_HashMethod) EnumDescriptor deprecated

This method has been deprecated.
func (HashType_HashMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashType_HashMethod.Descriptor instead.

func (HashType_HashMethod) Number

func (HashType_HashMethod) String

func (x HashType_HashMethod) String() string

func (HashType_HashMethod) Type

type L3Protocol

type L3Protocol int32

Generic Layer 3 Protocol enumeration.

const (
	L3Protocol_UNSPECIFIED L3Protocol = 0
	L3Protocol_IPV4        L3Protocol = 1
	L3Protocol_IPV6        L3Protocol = 2
)

func (L3Protocol) Descriptor

func (L3Protocol) Descriptor() protoreflect.EnumDescriptor

func (L3Protocol) Enum

func (x L3Protocol) Enum() *L3Protocol

func (L3Protocol) EnumDescriptor deprecated

This method has been deprecated.
func (L3Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use L3Protocol.Descriptor instead.

func (L3Protocol) Number

func (x L3Protocol) Number() protoreflect.EnumNumber

func (L3Protocol) String

func (x L3Protocol) String() string

func (L3Protocol) Type

type Path

type Path struct {
	Origin string      `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` // Label to disambiguate path.
	Elem   []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"`     // Elements of the path.
	// contains filtered or unexported fields
}

Path encodes a data tree path as a series of repeated strings, with each element of the path representing a data tree node name and the associated attributes. Reference: gNMI Specification Section 2.2.2.

func (*Path) Descriptor deprecated

This method has been deprecated.
func (*Path) Descriptor() ([]byte, []int)

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetElem

func (x *Path) GetElem() []*PathElem

func (*Path) GetOrigin

func (x *Path) GetOrigin() string

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

func (x *Path) ProtoReflect() protoreflect.Message

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

type PathElem

type PathElem struct {
	Name string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the element in the path.
	Key  map[string]string ``                                                              // Map of key (attribute) name to value.
	/* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

PathElem encodes an element of a gNMI path, along with any attributes (keys) that may be associated with it. Reference: gNMI Specification Section 2.2.2.

func (*PathElem) Descriptor deprecated

This method has been deprecated.
func (*PathElem) Descriptor() ([]byte, []int)

Deprecated: Use PathElem.ProtoReflect.Descriptor instead.

func (*PathElem) GetKey

func (x *PathElem) GetKey() map[string]string

func (*PathElem) GetName

func (x *PathElem) GetName() string

func (*PathElem) ProtoMessage

func (*PathElem) ProtoMessage()

func (*PathElem) ProtoReflect

func (x *PathElem) ProtoReflect() protoreflect.Message

func (*PathElem) Reset

func (x *PathElem) Reset()

func (*PathElem) String

func (x *PathElem) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL