network

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 21

Documentation

Index

Constants

View Source
const (
	DefaultRoutesCheckTimeout = 20000 // 20 second

)

Variables

View Source
var (
	ErrNoNetwork = errors.New("Networking not available to load resource")
	ErrNotFound  = errors.New("Failed to find resource")
)

Functions

func AllDefaultGWOK

func AllDefaultGWOK(timeout int) error

func GetConsoles

func GetConsoles(urls []string) ([]string, error)

func GetEngines

func GetEngines(urls []string) ([]string, error)

func GetServices

func GetServices(urls []string) ([]string, error)

func LoadFromNetwork

func LoadFromNetwork(location string) ([]byte, error)

func LoadFromNetworkWithCache

func LoadFromNetworkWithCache(location string) ([]byte, error)

func LoadMultiEngineResource

func LoadMultiEngineResource(name string) ([]byte, error)

func LoadResource

func LoadResource(location string, network bool) ([]byte, error)

func LoadServiceResource

func LoadServiceResource(name string, useNetwork bool, cfg *config.CloudConfig) ([]byte, error)

func SetProxyEnvironmentVariables

func SetProxyEnvironmentVariables()

func UpdateCache

func UpdateCache(location string) ([]byte, error)

func UpdateCaches

func UpdateCaches(urls []string, key string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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