Documentation
¶
Overview ¶
Package utils implements utilities for gnxi.
Package utils implements utilities for gnxi.
Index ¶
- func GNMIFullPath(prefix, path *gpb.Path) *gpb.Path
- func GetFlag(name string, defValue interface{}) interface{}
- func GetMetadata(ctx context.Context) (map[string]string, bool)
- func IsSchemaPath(prefix, path *gpb.Path) bool
- func PrintProto(m proto.Message)
- func PrintStruct(value interface{}, excludedField ...string)
- func QueryAddr(ctx context.Context) (net.Addr, net.Addr, bool)
- func QueryMetadata(ctx context.Context, name string) (string, bool)
- func SprintStructInline(value interface{}, excludedField ...string) string
- func ValidateGNMIFullPath(prefix, path *gpb.Path) error
- func ValidateGNMIPath(path *gpb.Path) error
- type QueryAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GNMIFullPath ¶
GNMIFullPath builds the full path from the prefix and path.
func GetFlag ¶
func GetFlag(name string, defValue interface{}) interface{}
GetFlag - Get the flag defined in another package.
func GetMetadata ¶
GetMetadata checks for valid credentials in the context Metadata.
func IsSchemaPath ¶
IsSchemaPath - returns the path is schema path.
func PrintStruct ¶
func PrintStruct(value interface{}, excludedField ...string)
PrintStruct - print the type and value of the input structure with well-formed display.
func QueryMetadata ¶
QueryMetadata checks for valid credentials in the context Metadata.
func SprintStructInline ¶
SprintStructInline - print the type and value of the input structure with well-formed display.
func ValidateGNMIFullPath ¶
ValidateGNMIFullPath - check the validation of the gNMI full path
func ValidateGNMIPath ¶
ValidateGNMIPath - checks the validation of the gNMI path.
Types ¶
type QueryAddress ¶
type QueryAddress struct {
// contains filtered or unexported fields
}
func (QueryAddress) Network ¶
func (a QueryAddress) Network() string
func (QueryAddress) String ¶
func (a QueryAddress) String() string
Directories
¶
Path | Synopsis |
---|---|
Package credentials loads certificates and validates user credentials.
|
Package credentials loads certificates and validates user credentials. |
Package entity provides a lightweight method for generating certificates.
|
Package entity provides a lightweight method for generating certificates. |
Package xpath parses xpath string into gnmi Path struct.
|
Package xpath parses xpath string into gnmi Path struct. |