access_key.go raw
1 package auth
2
3 import "net/http"
4
5 type AccessKeyOnly struct {
6 // auth config may contain an access key without being authenticated
7 AccessKey string
8 }
9
10 // NewNoAuth return an auth with no authentication method
11 func NewAccessKeyOnly(accessKey string) *AccessKeyOnly {
12 return &AccessKeyOnly{accessKey}
13 }
14
15 func (t *AccessKeyOnly) Headers() http.Header {
16 return http.Header{}
17 }
18
19 func (t *AccessKeyOnly) AnonymizedHeaders() http.Header {
20 return http.Header{}
21 }
22