Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 22

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 (
	// optional string gnoi_version = 1002;
	E_GnoiVersion = &file_github_com_openconfig_gnoi_types_types_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_github_com_openconfig_gnoi_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 valid to be assigned to Password:
	//
	//	*Credentials_Cleartext
	//	*Credentials_Hashed
	Password isCredentials_Password `protobuf_oneof:"password"`
	// contains filtered or unexported fields
}

func (*Credentials) Descriptor 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 (x *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
}

func (*HashType) Descriptor 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

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
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

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"`
	Elem   []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor 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"`
	Key  map[string]string `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PathElem) Descriptor 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

Jump to

Keyboard shortcuts

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