Affected by GO-2025-3495
and 3 other vulnerabilities
GO-2025-3495: MinIO SFTP authentication bypass due to improperly trusted SSH key in github.com/minio/minio
GO-2026-4779: MinIO has JWT Algorithm Confusion in OIDC Authentication in github.com/minio/minio
GO-2026-4803: MinIO LDAP login brute-force via user enumeration and missing rate limit in github.com/minio/minio
GO-2026-4896: MinIO is Vulnerable to SSE Metadata Injection via Replication Headers in github.com/minio/minio
package
Version:
v0.0.0-...-7aac2a2
Opens a new window with list of versions in this module.
Published: Feb 12, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Init represents the structure.
Do is similar to sync.Once.Do - makes one successful
call to the function. ie, it invokes the function
if it is not successful yet.
DoWithContext is similar to Do except that it accepts a context as an argument to be passed.
type Singleton[T any] struct {
}
Singleton contains a pointer to T that must be set once.
Until the value is set all Get() calls will block.
NewSingleton creates a new unset singleton.
Get will return the singleton value.
GetNonBlocking will return the singleton value or nil if not set yet.
IsSet will return whether the singleton has been set.
Set the value and unblock all Get requests.
This may only be called once, a second call will panic.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.