- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for PortRange (0.79 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/net/port_range.go
"fmt" "strconv" "strings" ) // PortRange represents a range of TCP/UDP ports. To represent a single port, // set Size to 1. type PortRange struct { Base int Size int } // Contains tests whether a given port falls within the PortRange. func (pr *PortRange) Contains(p int) bool { return (p >= pr.Base) && ((p - pr.Base) < pr.Size) } // String converts the PortRange to a string representation, which can be
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 10 01:27:56 UTC 2020 - 3.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/strict/testdata/invalid_duplicate_field_kubeproxycfg.yaml
apiVersion: kubeproxy.config.k8s.io/v1alpha1 kind: KubeProxyConfiguration portRange: ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 16 00:21:31 UTC 2018 - 102 bytes - Viewed (0) -
pkg/registry/core/service/portallocator/controller/repair.go
) // See ipallocator/controller/repair.go; this is a copy for ports. type Repair struct { interval time.Duration serviceClient corev1client.ServicesGetter portRange net.PortRange alloc rangeallocation.RangeRegistry leaks map[int]int // counter per leaked port broadcaster events.EventBroadcaster recorder events.EventRecorder }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 30 15:46:06 UTC 2023 - 10.4K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/allocator.go
} type PortAllocator struct { portRange net.PortRange alloc allocator.Interface // metrics is a metrics recorder that can be disabled metrics metricsRecorderInterface } // PortAllocator implements Interface and Snapshottable var _ Interface = &PortAllocator{} // New creates a PortAllocator over a net.PortRange, calling allocatorFactory to construct the backing store.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/allocator_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 14K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset_test.go
func Test_validatePortRange(t *testing.T) { testCases := []struct { portRange string expectErr bool desc string }{ { // case[0] portRange: "a-b", expectErr: true, desc: "invalid port number", }, { // case[1] portRange: "1-2", expectErr: false, desc: "valid", }, { // case[2] portRange: "90-1", expectErr: false,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 41.5K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset.go
func validatePortRange(portRange string) error { strs := strings.Split(portRange, "-") if len(strs) != 2 { return fmt.Errorf("invalid PortRange: %q", portRange) } for i := range strs { num, err := strconv.Atoi(strs[i]) if err != nil { return fmt.Errorf("invalid PortRange: %q", portRange) } if num < 0 { return fmt.Errorf("invalid PortRange: %q", portRange) } } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/util/ports/AbstractPortAllocatorTest.groovy
static ReservedPortRange getPortRange(PortDetector portDetector, int startPort, int endPort) { ReservedPortRange portRange = new ReservedPortRange(startPort, endPort) portRange.portDetector = portDetector return portRange } static boolean isReservedInList(List<ReservedPortRange> reservationList, int startPort, int endPort) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 01 14:49:56 UTC 2016 - 1.7K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy
reservePortRange() } } private ReservedPortRange reservePortRange() { def portRange = getNextPortRange(reservations.size()) ReservedPortRange range = portRangeFactory.getReservedPortRange(portRange.left, portRange.right) reservations.add(range) return range } protected abstract Pair<Integer, Integer> getNextPortRange(int rangeNumber)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 05 16:58:31 UTC 2022 - 3.1K bytes - Viewed (0) -
cmd/ftp-server.go
if serverDebugLog { fmt.Printf("%s < %d %s\n", sessionID, code, message) } } func startFTPServer(args []string) { var ( port int publicIP string portRange string tlsPrivateKey string tlsPublicCert string ) var err error for _, arg := range args { tokens := strings.SplitN(arg, "=", 2) if len(tokens) != 2 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 4.8K bytes - Viewed (0)