addresses

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package addresses provides utilities for parsing HTCondor addresses and handling different connection types including shared port connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidSharedPortID

func IsValidSharedPortID(id string) bool

IsValidSharedPortID validates a shared port ID according to HTCondor rules The ID must contain only alphanumeric characters, dots, dashes, and underscores

Types

type SharedPortInfo

type SharedPortInfo struct {
	ServerAddr   string // The address of the shared port server
	SharedPortID string // The shared port ID
	IsSharedPort bool   // True if this is a shared port address
}

SharedPortInfo contains information extracted from a shared port address

func ParseHTCondorAddress

func ParseHTCondorAddress(address string) SharedPortInfo

ParseHTCondorAddress parses HTCondor addresses that may contain shared port information

HTCondor addresses with shared port info look like: - "<host:port?sock=shared_port_id>" - "host:port?sock=shared_port_id"

HTCondor addresses may also contain other query parameters (e.g., addrs, alias, CCBID) which should be stripped from the server address: - "<127.0.0.1:41919?addrs=127.0.0.1-41919&alias=hostname>"

Returns SharedPortInfo with the parsed information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL