Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkg/set/int.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// Package set provides a thread-safe set of unsigned integers.
// It is used by the network modules to track allocated ports and
// prevent conflicts when multiple workloads request port reservations
// concurrently.
package set

import (
"fmt"
"sync"
)

// ErrConflict is return when trying to add a port
// in the set that is already present
// ErrConflict is returned when trying to add a value
// that is already present in the set.
type ErrConflict struct {
Port uint
}
Expand Down
Loading