GO-2024-2703: Kopia: Storage connection credentials written to console on "repository status" CLI command with JSON output in github.com/kopia/kopia
package
Version:
v0.13.0-rc1
Opens a new window with list of versions in this module.
Published: Apr 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package freepool manages a free pool of objects that are expensive to create.
type Pool[T any] struct {
}
Pool is a small pool of recently returned objects with built-in cleanup.
func New[T any](makeNew func() *T, clean func(v *T)) *Pool[T]
New returns a new free pool.
func NewStruct[T any](cleanItem T) *Pool[T]
NewStruct returns a pool that produces provided clean structures.
func (p *Pool[T]) Return(v *T)
Return returns an item to the pool after cleaning it.
func (p *Pool[T]) Take() *T
Take returns an item from the pool, and if not available makes a new one.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.