MCPcopy Create free account
hub / github.com/zalando/skipper / LoadAll

Method LoadAll

eskipfile/remote.go:104–123  ·  view source on GitHub ↗

LoadAll returns the parsed route definitions found in the file.

()

Source from the content-addressed store, hash-verified

102
103// LoadAll returns the parsed route definitions found in the file.
104func (client *remoteEskipFile) LoadAll() ([]*eskip.Route, error) {
105 var err error = nil
106
107 if client.preloaded {
108 client.preloaded = false
109 } else {
110 err = client.DownloadRemoteFile()
111 }
112
113 if err != nil {
114 log.Errorf("LoadAll from remote %s failed. Continue using the last loaded routes", client.remotePath)
115 return nil, err
116 }
117
118 if client.verbose {
119 log.Infof("New routes file %s was downloaded", client.remotePath)
120 }
121
122 return client.eskipFileClient.LoadAll()
123}
124
125// LoadUpdate returns differential updates when a remote file has changed.
126func (client *remoteEskipFile) LoadUpdate() ([]*eskip.Route, []string, error) {

Callers

nothing calls this directly

Calls 4

DownloadRemoteFileMethod · 0.95
ErrorfMethod · 0.65
InfofMethod · 0.65
LoadAllMethod · 0.65

Tested by

no test coverage detected