testcommon

package
v0.0.0-...-69cf067 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testcommon implements common helpers that can be used throughout the gRIBIgo package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSCreds

func TLSCreds() (string, string)

TLSCreds returns the path for the testcommon/testdata file for all other tests to use.

Types

type TLSCred

type TLSCred struct {
	C credentials.TransportCredentials
}

TLSCreds returns TLS credentials that can be used for a device.

func TLSCredsFromFile

func TLSCredsFromFile(certFile, keyFile string) (*TLSCred, error)

TLSCredsFromFile loads the credentials from the specified cert and key file and returns them such that they can be used for the gNMI and gRIBI servers.

Jump to

Keyboard shortcuts

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