Add simple service redirection

This commit is contained in:
Daniel Smith
2014-08-25 14:36:15 -07:00
parent dcf9f30592
commit 4de254444e
11 changed files with 229 additions and 25 deletions

View File

@@ -55,3 +55,9 @@ type ResourceWatcher interface {
// particular version.
Watch(label, field labels.Selector, resourceVersion uint64) (watch.Interface, error)
}
// Redirectors know how to return a remote resource's location.
type Redirector interface {
// ResourceLocation should return the remote location of the given resource, or an error.
ResourceLocation(id string) (remoteLocation string, err error)
}