Documentation ¶
Index ¶
- Constants
- Variables
- func CheckResourceLinks(t *testing.T, expected, actual schema.ResourceLinks)
- func DefaultDevsimResourceLinks() schema.ResourceLinks
- func DefaultSwitchResourceLink(id string) schema.ResourceLink
- func FindDeviceByName(ctx context.Context, name string) (deviceID string, _ error)
- func FindDeviceEndpoints(ctx context.Context, deviceName string, ipType IPType) (schema.Endpoints, error)
- func FindDeviceIP(ctx context.Context, deviceName string, ipType IPType) (string, error)
- func GenerateIdentityCert(deviceID string) tls.Certificate
- func MakeSwitchResourceData(overrides map[string]interface{}) map[string]interface{}
- func MakeSwitchResourceDefaultData() map[string]interface{}
- func MustFindDeviceByName(name string) string
- func MustFindDeviceIP(name string, ipType IPType) (ip string)
- func MustGetHostname() string
- func NewIdentityCertificateSigner(caCert []*x509.Certificate, caKey crypto.PrivateKey, validNotBefore time.Time, ...) core.CertificateSigner
- func TestResourceLightInstanceHref(id string) string
- func TestResourceSwitchesInstanceHref(id string) string
- type IPType
Constants ¶
View Source
const (
TestResourceSwitchesHref = "/switches"
)
Variables ¶
View Source
var ( DevsimName string TestDevsimResources schema.ResourceLinks TestDevsimPrivateResources schema.ResourceLinks TestDevsimSecResources schema.ResourceLinks )
View Source
var ( MfgCert = loadFileFromEnv("MFG_CRT") MfgKey = loadFileFromEnv("MFG_KEY") RootCACrt = loadFileFromEnv("ROOT_CA_CRT") RootCAKey = loadFileFromEnv("ROOT_CA_KEY") IdentityIntermediateCA = loadFileFromEnv("INTERMEDIATE_CA_CRT") IdentityIntermediateCAKey = loadFileFromEnv("INTERMEDIATE_CA_KEY") )
Functions ¶
func CheckResourceLinks ¶
func CheckResourceLinks(t *testing.T, expected, actual schema.ResourceLinks)
func DefaultDevsimResourceLinks ¶
func DefaultDevsimResourceLinks() schema.ResourceLinks
func DefaultSwitchResourceLink ¶
func DefaultSwitchResourceLink(id string) schema.ResourceLink
func FindDeviceByName ¶
func FindDeviceEndpoints ¶ added in v2.0.2
func FindDeviceIP ¶
func GenerateIdentityCert ¶
func GenerateIdentityCert(deviceID string) tls.Certificate
func MakeSwitchResourceData ¶
func MakeSwitchResourceDefaultData ¶
func MakeSwitchResourceDefaultData() map[string]interface{}
func MustFindDeviceByName ¶
func MustFindDeviceIP ¶
func MustGetHostname ¶
func MustGetHostname() string
func NewIdentityCertificateSigner ¶
func NewIdentityCertificateSigner(caCert []*x509.Certificate, caKey crypto.PrivateKey, validNotBefore time.Time, validNotAfter time.Time) core.CertificateSigner
Types ¶
Click to show internal directories.
Click to hide internal directories.