mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-04 07:49:35 +00:00 
			
		
		
		
	Update Azure Go SDK to v55.0.0
This commit is contained in:
		
							
								
								
									
										5
									
								
								vendor/github.com/josharian/intern/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/josharian/intern/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
Docs: https://godoc.org/github.com/josharian/intern
 | 
			
		||||
 | 
			
		||||
See also [Go issue 5160](https://golang.org/issue/5160).
 | 
			
		||||
 | 
			
		||||
License: MIT
 | 
			
		||||
							
								
								
									
										3
									
								
								vendor/github.com/josharian/intern/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/josharian/intern/go.mod
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
module github.com/josharian/intern
 | 
			
		||||
 | 
			
		||||
go 1.5
 | 
			
		||||
							
								
								
									
										44
									
								
								vendor/github.com/josharian/intern/intern.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								vendor/github.com/josharian/intern/intern.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
// Package intern interns strings.
 | 
			
		||||
// Interning is best effort only.
 | 
			
		||||
// Interned strings may be removed automatically
 | 
			
		||||
// at any time without notification.
 | 
			
		||||
// All functions may be called concurrently
 | 
			
		||||
// with themselves and each other.
 | 
			
		||||
package intern
 | 
			
		||||
 | 
			
		||||
import "sync"
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	pool sync.Pool = sync.Pool{
 | 
			
		||||
		New: func() interface{} {
 | 
			
		||||
			return make(map[string]string)
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// String returns s, interned.
 | 
			
		||||
func String(s string) string {
 | 
			
		||||
	m := pool.Get().(map[string]string)
 | 
			
		||||
	c, ok := m[s]
 | 
			
		||||
	if ok {
 | 
			
		||||
		pool.Put(m)
 | 
			
		||||
		return c
 | 
			
		||||
	}
 | 
			
		||||
	m[s] = s
 | 
			
		||||
	pool.Put(m)
 | 
			
		||||
	return s
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Bytes returns b converted to a string, interned.
 | 
			
		||||
func Bytes(b []byte) string {
 | 
			
		||||
	m := pool.Get().(map[string]string)
 | 
			
		||||
	c, ok := m[string(b)]
 | 
			
		||||
	if ok {
 | 
			
		||||
		pool.Put(m)
 | 
			
		||||
		return c
 | 
			
		||||
	}
 | 
			
		||||
	s := string(b)
 | 
			
		||||
	m[s] = s
 | 
			
		||||
	pool.Put(m)
 | 
			
		||||
	return s
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										21
									
								
								vendor/github.com/josharian/intern/license.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								vendor/github.com/josharian/intern/license.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
MIT License
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2019 Josh Bleecher Snyder
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
in the Software without restriction, including without limitation the rights
 | 
			
		||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 | 
			
		||||
SOFTWARE.
 | 
			
		||||
		Reference in New Issue
	
	Block a user