mirror of https://github.com/kubernetes/kops.git
				
				
				
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			459 B
		
	
	
	
		
			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{}
 | 
						|
}
 |