File: no_auth.go

package info (click to toggle)
golang-github-scaleway-scaleway-sdk-go 1.0.0~beta12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,000 kB
  • sloc: javascript: 160; sh: 70; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package auth

import "net/http"

type NoAuth struct {
}

// NewNoAuth return an auth with no authentication method
func NewNoAuth() *NoAuth {
	return &NoAuth{}
}

func (t *NoAuth) Headers() http.Header {
	return http.Header{}
}

func (t *NoAuth) AnonymizedHeaders() http.Header {
	return http.Header{}
}