Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3 storage listobject bugs #46

Open
shijunLee opened this issue Jul 7, 2020 · 0 comments
Open

s3 storage listobject bugs #46

shijunLee opened this issue Jul 7, 2020 · 0 comments

Comments

@shijunLee
Copy link

shijunLee commented Jul 7, 2020

while the s3 bucket have object like this

test-0.0.1.tgz
test/consul-0.0.1.tgz

user the S3Backend list object method test

func Test_ListObjects(t *testing.T) {
        backend := NewAmazonS3Backend("a-bucket-test", "", "ap-southeast-1", "s3-ap-southeast-1.amazonaws.com", "")
	objects, err := backend.ListObjects("test")
	if err != nil {
		fmt.Println(err)
		t.Fail()
	}
	for _, obj := range objects {
		fmt.Println(obj.Path)
	}
}

while get he file result

test-0.0.1.tgz
test/consul-0.0.1.tgz

while get the repo index.yaml, will get no such key error from s3, it while get file test/test-0.0.1.tgz, but this key is not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant