kops/vendor/github.com/scaleway/scaleway-sdk-go/internal/auth/access_key.go

22 lines
459 B
Go

package auth
import "net/http"
type AccessKeyOnly struct {
// auth config may contain an access key without being authenticated
AccessKey string
}
// NewNoAuth return an auth with no authentication method
func NewAccessKeyOnly(accessKey string) *AccessKeyOnly {
return &AccessKeyOnly{accessKey}
}
func (t *AccessKeyOnly) Headers() http.Header {
return http.Header{}
}
func (t *AccessKeyOnly) AnonymizedHeaders() http.Header {
return http.Header{}
}