commit
						972a95f077
					
				| 
						 | 
					@ -18,6 +18,7 @@ import (
 | 
				
			||||||
	"github.com/docker/distribution/registry"
 | 
						"github.com/docker/distribution/registry"
 | 
				
			||||||
	_ "github.com/docker/distribution/storagedriver/filesystem"
 | 
						_ "github.com/docker/distribution/storagedriver/filesystem"
 | 
				
			||||||
	_ "github.com/docker/distribution/storagedriver/inmemory"
 | 
						_ "github.com/docker/distribution/storagedriver/inmemory"
 | 
				
			||||||
 | 
						_ "github.com/docker/distribution/storagedriver/s3"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -168,7 +168,9 @@ func New(params DriverParameters) (*Driver, error) {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if _, err := bucket.List("", "", "", 1); err != nil {
 | 
						// Validate that the given credentials have at least read permissions in the
 | 
				
			||||||
 | 
						// given bucket scope.
 | 
				
			||||||
 | 
						if _, err := bucket.List(strings.TrimRight(params.RootDirectory, "/"), "", "", 1); err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue