LEFT | RIGHT |
1 package ec2 | 1 package ec2 |
2 | 2 |
3 import ( | 3 import ( |
4 "bytes" | 4 "bytes" |
5 "fmt" | 5 "fmt" |
6 "io" | 6 "io" |
7 "io/ioutil" | 7 "io/ioutil" |
8 "launchpad.net/goamz/s3" | 8 "launchpad.net/goamz/s3" |
9 "launchpad.net/goyaml" | 9 "launchpad.net/goyaml" |
10 "launchpad.net/juju/go/version" | 10 "launchpad.net/juju/go/version" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return nil | 94 return nil |
95 } | 95 } |
96 return err | 96 return err |
97 } | 97 } |
98 | 98 |
99 func (e *environ) bucket() *s3.Bucket { | 99 func (e *environ) bucket() *s3.Bucket { |
100 return e.s3.Bucket(e.config.bucket) | 100 return e.s3.Bucket(e.config.bucket) |
101 } | 101 } |
102 | 102 |
103 func (*environ) UploadTools(r io.Reader, length int64, version version.Version)
error { | 103 func (*environ) UploadTools(r io.Reader, length int64, version version.Version)
error { |
104 » return fmt.Errorf("ec2 environ does not support executable upload") | 104 » return fmt.Errorf("ec2 environment does not support executable upload") |
105 } | 105 } |
LEFT | RIGHT |