Accessible build logs

Adding option to retrieve logs form a build.
Usage:
        `kube buildLogs --id="buildID"`
I'm more referencing the need to build the url correctly instead of the self link itself


> On Sep 30, 2014, at 9:45 AM, jhadvig <notifications@github.com> wrote:
> 
> In pkg/build/registry/buildlog/rest.go:
> 
> > +// Redirector implementation
> > +func (r *REST) ResourceLocation(id string) (string, error) {
> > +	build, err := r.BuildRegistry.GetBuild(id)
> > +	if err != nil {
> > +		return "", fmt.Errorf("No such build")
> > +	}
> > +	pod, err := r.PodClient.GetPod(build.PodID)
> > +	if err != nil {
> > +		return "", fmt.Errorf("No such pod")
> > +	}
> > +
> > +	buildPodID := build.PodID
> > +	buildHost  := pod.CurrentState.Host
> > +	// Build will take place only in one container 
> > +	buildContainerName := pod.DesiredState.Manifest.Containers[0].Name
> > +	location, err := url.Parse("/proxy/minion/" + buildHost + "/containerLogs/" + buildPodID + "/" + buildContainerName)
> @smarterclayton dont there needs to be an API object, to which you can assign the selfLink ?
> 
> —
> Reply to this email directly or view it on GitHub.