Affected by GO-2025-3381
and 1 other vulnerabilities
GO-2025-3381: notation-go's timestamp signature generation lacks certificate revocation check in github.com/notaryproject/notation-go
GO-2025-3382: notation-go has an OS error when setting CRL cache leads to denial of signature verification in github.com/notaryproject/notation-go
package
Version:
v1.3.0-rc.1
Opens a new window with list of versions in this module.
Published: Sep 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Set is a map as a set data structure.
New creates an empty Set for elements of type T.
NewWithSize creates an empty Set of fixed size for elements of type T.
func (s Set[T]) Add(elem T)
Add adds the element of type T into the Set.
func (s Set[T]) Contains(elem T) bool
Contains checks if element exists in the Set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.