Versions in this module Expand all Collapse all v0 v0.26.1 Nov 23, 2026 v0.26.0 Nov 23, 2026 Changes in this version + type SandboxOptions struct + OnJobCount func(count int) error + OnPreamble func(size int64, known bool) error type Schedd + func (s *Schedd) ReceiveJobSandboxWithOptions(ctx context.Context, constraint string, w io.Writer, opts SandboxOptions) <-chan error v0.25.0 Nov 21, 2026 Changes in this version + const AccountingAdType + const AddKrbMode + const AddOAuthMode + const AnyAdType + const AttrOCUID + const AttrOCUName + const AttrOCUState + const AttrOCUWanted + const AttrOCUWilling + const AttrStartupLimitBurst + const AttrStartupLimitCostAllowed + const AttrStartupLimitCostExpr + const AttrStartupLimitError + const AttrStartupLimitExpiration + const AttrStartupLimitExpr + const AttrStartupLimitIgnoredUsers + const AttrStartupLimitJobsAllowed + const AttrStartupLimitJobsSkipped + const AttrStartupLimitLastIgnored + const AttrStartupLimitMatchesIgnored + const AttrStartupLimitMaxBurstCost + const AttrStartupLimitName + const AttrStartupLimitRateCount + const AttrStartupLimitRateWindow + const AttrStartupLimitStatus + const AttrStartupLimitTag + const AttrStartupLimitUUID + const AvgBytesPerAttribute + const CONDOR_AbortTransaction + const CONDOR_BeginTransaction + const CONDOR_CloseSocket + const CONDOR_CommitTransaction + const CONDOR_CommitTransactionNoFlags + const CONDOR_DestroyCluster + const CONDOR_GetCapabilities + const CONDOR_NewCluster + const CONDOR_NewProc + const CONDOR_SetAttribute + const CONDOR_SetAttribute2 + const CONDOR_SetEffectiveOwner + const CkptServerAdType + const CollectorAdType + const CreddCheckCreds + const CreddGetToken + const DCChildAlive + const DCNopAdministrator + const DCNopAdvertiseMaster + const DCNopAdvertiseSchedd + const DCNopAdvertiseStartd + const DCNopConfig + const DCNopDaemon + const DCNopNegotiator + const DCNopOwner + const DCNopRead + const DCNopWrite + const DCQueryReady + const DCSetReady + const DefaultCCBLearnedTTL + const DefaultCollectorRaceStagger + const DefaultHistoryScanLimit + const DefaultMyAddress + const DefaultPeekMaxBytes + const DefaultRescheduleInterval + const DeleteKrbMode + const DeleteOAuthMode + const Failure + const FailureBadArgs + const FailureBadPassword + const FailureConfigError + const FailureCredMismatch + const FailureCredmonTimeout + const FailureJSONParse + const FailureNoImpersonate + const FailureNotAllowed + const FailureNotFound + const FailureNotSecure + const FailureProtocolMismatch + const FailureUntrustedHost + const GenericAdd + const GenericDelete + const GenericQuery + const GridAdType + const HADAdType + const HarnessTrustDomain + const LicenseAdType + const MasterAdType + const MaxAdvertiseBufferSize + const ModeMask + const NegotiatorAdType + const PlacementChannelCedar + const PlacementChannelMapfile + const PlacementChannelMigration + const PlacementEditCommand + const PlacementErrAuthorizationDenied + const PlacementErrDatabase + const PlacementErrDuplicate + const PlacementErrInvalidArgument + const PlacementErrMissingUserName + const PlacementErrNotEncrypted + const PlacementErrNotFound + const PlacementErrOwnedBySource + const PlacementErrProjectNotAuthorized + const PlacementErrRequesterMappingExpired + const PlacementErrRequesterNotInstructor + const PlacementErrRequesterUnknown + const PlacementErrSchedd + const PlacementErrStillReferenced + const PlacementErrUnknownType + const PlacementErrUserMappingExpired + const PlacementErrUserNotAuthorized + const PlacementErrVersionMismatch + const PlacementOpAdopt + const PlacementOpCreate + const PlacementOpDelete + const PlacementOpUpdate + const PlacementQueryAuthorizations + const PlacementQueryCommand + const PlacementQueryTokens + const PlacementQueryUsers + const PlacementSourceInternal + const PlacementSourceMapfile + const PlacementTargetAccount + const PlacementTargetAll + const PlacementTargetAuthorization + const PlacementTargetIdentity + const PlacementTargetMapfileStatus + const PlacementTargetModification + const PlacementTargetProject + const PlacementUserLogin + const PlacementdAPIVersionAttr + const PlacementdAPIVersionDirectory + const PlacementdAdType + const QMGMT_WRITE_CMD + const QueryKrbMode + const QueryOAuthMode + const ScheddAdType + const StartdAdType + const StartdPrivateAdType + const StorageAdType + const StoreCred + const StoreCredLegacy + const StoreCredUserKrb + const StoreCredUserOAuth + const SubmitMethodCondorSubmit + const SubmitMethodDAGMan + const SubmitMethodHTCDAGSubmit + const SubmitMethodHTCJobSubmit + const SubmitMethodHTCJobsetSubmit + const SubmitMethodMCP + const SubmitMethodPortal + const SubmitMethodPythonBindings + const SubmitMethodRESTAPI + const SubmitMethodUnset + const SubmitterAdType + const Success + const SuccessPending + const UniverseGrid + const UniverseJava + const UniverseLocal + const UniverseMPI + const UniverseMin + const UniverseParallel + const UniverseScheduler + const UniverseStandard + const UniverseVM + const UniverseVanilla + const UserRecordErrNotFound + var ErrCredentialNotFound = errors.New("credential not found") + var ErrInvalidTarEntry = errors.New("invalid tar entry name") + var ErrNoJobsMatched = errors.New("no jobs matched") + var ErrPaginationUnsupported = errors.New(...) + var ErrPlacementdAdNotFound = errors.New("no collector ad for this placementd") + func AddressFilePath(cfg *config.Config, subsys string) string + func ApplySSLClientTrust(cfg *config.Config, sc *security.SecurityConfig) + func DecodePageToken(token string) (int64, int64, error) + func DefaultCollectorProjection() []string + func DefaultEpochProjection() []string + func DefaultHistoryProjection() []string + func DefaultJobProjection() []string + func DefaultTransferProjection() []string + func DialSinful(ctx context.Context, address string, secConfig *security.SecurityConfig, ...) (*client.HTCondorClient, error) + func DigestKeywordIsPrunable(name string) bool + func DigestPrunableKeywordNames() []string + func EncodePageToken(clusterID, procID int64) string + func FileAddressResolver(path string) func() (string, error) + func GetAuthenticatedUserFromContext(ctx context.Context) string + func GetCommandCodes() struct + func GetDefaultConfig() *config.Config + func GetSecurityConfig(cfg *config.Config, command int, context string) (*security.SecurityConfig, error) + func GetSecurityConfigFromContext(ctx context.Context) (security.SecurityConfig, bool) + func GetSecurityConfigOrDefault(ctx context.Context, cfg *config.Config, command int, secContext string, ...) (*security.SecurityConfig, error) + func GetServerSecurityConfig(cfg *config.Config, command int, secContext string) (*security.SecurityConfig, error) + func IsDaemonFallbackRefused(err error) bool + func IsSystemExecutablePath(cmd string) bool + func LoadSigningKeys(cfg *config.Config) (map[string][]byte, error) + func LocalDaemonAddress(cfg *config.Config, subsys string) (func() (string, error), string, error) + func LookupSSLClientCredentials() (certFile, keyFile, caFile string, ok bool) + func LookupSSLClientCredentialsWithConfig(cfg *config.Config) (certFile, keyFile, caFile string, ok bool) + func NewClientSecurityConfig(ctx context.Context, token string, peerName string, command int, ...) (*security.SecurityConfig, error) + func NewClientSecurityConfigWithConfig(ctx context.Context, cfg *config.Config, token string, peerName string, ...) (*security.SecurityConfig, error) + func ParseAdvertiseCommand(cmd string) (commands.CommandType, bool) + func ParseJobID(s string) (int, int, error) + func PlacementErrorName(code int) string + func PlacementKeyAttr(targetType string) string + func PlacementdAPIVersion(ad *classad.ClassAd) int + func PlacementdAdProjection() []string + func QueryPlacementdAPIVersion(ctx context.Context, coll *Collector, address string) (int, error) + func QueryPlacementdAPIVersionMatching(ctx context.Context, coll *Collector, address string, ...) (int, error) + func ReadAddressFile(path string) (string, error) + func ReloadCertificateMapFile() + func ReloadDefaultConfig() + func ResetRescheduleLimiter() + func SSHToJobHarnessConfig() (string, bool) + func SSHToJobPrereqs() (sshd string, configTemplate string, ok bool) + func SciTokensMapper(cfg func() *config.Config) func(authName string) (string, bool) + func SelectPlacementdAd(ads []*classad.ClassAd, address string, accept func(*classad.ClassAd) bool) *classad.ClassAd + func SetUnmarkedOriginPolicy(p UnmarkedOriginPolicy) + func SetUnmarkedOriginReporter(fn func(command int, secContext, peerName string)) + func SpoolInputAllowSet(ad *classad.ClassAd) []string + func SubmitMethodFromContext(ctx context.Context) int + func SubmittedOnHold(ad *classad.ClassAd) bool + func TCPSessionDeadline(cfg *config.Config) time.Duration + func ValidateAttributeForEdit(attrName string, opts *EditJobOptions) error + func ValidateOAuthCredential(service string, cred []byte) error + func WithAuthenticatedUser(ctx context.Context, username string) context.Context + func WithDaemonCredential(ctx context.Context, reason string) context.Context + func WithRenewableSecurityConfig(ctx context.Context, secConfig *security.SecurityConfig, ...) context.Context + func WithSecurityConfig(ctx context.Context, secConfig *security.SecurityConfig) context.Context + func WithSubmitMethod(ctx context.Context, method int) context.Context + func WithSubmitParams(ctx context.Context, params SubmitParams) context.Context + func WithUserRequest(ctx context.Context, reason string) context.Context + func WithoutSecurityConfig(ctx context.Context) context.Context + type ActionResult int + const AR_ALREADY_DONE + const AR_BAD_STATUS + const AR_ERROR + const AR_LIMIT_EXCEEDED + const AR_NOT_FOUND + const AR_PERMISSION_DENIED + const AR_SUCCESS + type ActionResultType int + const AR_LONG + const AR_NONE + const AR_TOTALS + type AdResult struct + Ad *classad.ClassAd + Err error + type AdvertiseError struct + Failed map[string]error + Succeeded []string + func (e *AdvertiseError) AllFailed() bool + func (e *AdvertiseError) Error() string + func (e *AdvertiseError) Unwrap() []error + type AdvertiseOptions struct + Command commands.CommandType + PrivateAd *classad.ClassAd + UseTCP bool + WithAck bool + type AggregateRow struct + Count int64 + Group []string + type CCBDialer struct + func NewCCBDialer(cfg CCBDialerConfig) *CCBDialer + func (d *CCBDialer) Dial(ctx context.Context, address string, secConfig *security.SecurityConfig, ...) (*client.HTCondorClient, error) + func (d *CCBDialer) HasRouter() bool + func (d *CCBDialer) Streaming() bool + type CCBDialerConfig struct + LearnedTTL time.Duration + Logger *slog.Logger + PrivateNetworkName string + Router CCBReverseRouter + Streaming bool + type CCBReverseRouter interface + Register func() (net.Listener, string, error) + type CallerCredential struct + func CallerCredentialFromContext(ctx context.Context) (CallerCredential, bool) + func (c CallerCredential) Attach(ctx context.Context) context.Context + func (c CallerCredential) Renew(ctx context.Context) (CallerCredential, error) + func (c CallerCredential) Renewable() bool + func (c CallerCredential) Token() string + type CedarCredd struct + func NewCedarCredd(address string) *CedarCredd + func (c *CedarCredd) CheckCreds(ctx context.Context, requests []CredRequest) (string, error) + func (c *CedarCredd) DeleteServiceCred(ctx context.Context, credType CredType, service string, handle string, ...) error + func (c *CedarCredd) DeleteUserCred(ctx context.Context, credType CredType, user string) error + func (c *CedarCredd) GetCredential(ctx context.Context, credType CredType, service string, handle string, ...) ([]byte, error) + func (c *CedarCredd) GetServiceCredStatus(ctx context.Context, credType CredType, service string, handle string, ...) (CredentialStatus, error) + func (c *CedarCredd) GetUserCredStatus(ctx context.Context, credType CredType, user string) (CredentialStatus, error) + func (c *CedarCredd) ListServiceCreds(ctx context.Context, credType CredType, user string) ([]ServiceStatus, error) + func (c *CedarCredd) PutServiceCred(ctx context.Context, credType CredType, credential []byte, service string, ...) error + func (c *CedarCredd) PutUserCred(ctx context.Context, credType CredType, credential []byte, user string) error + func (c *CedarCredd) WithConfig(cfg *config.Config) *CedarCredd + type CheckCredsRefusal struct + Reason string + func (e *CheckCredsRefusal) Error() string + type Collector struct + func NewCollector(address string) *Collector + func (c *Collector) Address() string + func (c *Collector) Addresses() []string + func (c *Collector) Advertise(ctx context.Context, ad *classad.ClassAd, opts *AdvertiseOptions) error + func (c *Collector) AdvertiseMultiple(ctx context.Context, ads []*classad.ClassAd, opts *AdvertiseOptions) []error + func (c *Collector) LocateDaemon(ctx context.Context, daemonType DaemonType, name string) (*DaemonLocation, error) + func (c *Collector) Ping(ctx context.Context) (*PingResult, error) + func (c *Collector) PingWithOptions(ctx context.Context, opts *PingOptions) (*PingResult, error) + func (c *Collector) QueryAds(ctx context.Context, adType string, constraint string) ([]*classad.ClassAd, error) + func (c *Collector) QueryAdsStream(ctx context.Context, adType string, constraint string, projection []string, ...) (<-chan AdResult, error) + func (c *Collector) QueryAdsWithOptions(ctx context.Context, adType string, constraint string, opts *QueryOptions) ([]*classad.ClassAd, *PageInfo, error) + func (c *Collector) QueryAdsWithProjection(ctx context.Context, adType string, constraint string, projection []string) ([]*classad.ClassAd, error) + func (c *Collector) WatchAds(ctx context.Context, adType, constraint string, cursor []byte) (<-chan WatchEvent, error) + func (c *Collector) WithConfig(cfg *config.Config) *Collector + func (c *Collector) WithRaceStagger(stagger time.Duration) *Collector + type CondorTestHarness struct + func SetupCondorHarness(t TestingT) *CondorTestHarness + func SetupCondorHarnessWithConfig(t TestingT, extraConfig string) *CondorTestHarness + func (h *CondorTestHarness) GetCollectorAddr() string + func (h *CondorTestHarness) GetConfig() (*config.Config, error) + func (h *CondorTestHarness) GetConfigFile() string + func (h *CondorTestHarness) GetLockDir() string + func (h *CondorTestHarness) GetLogDir() string + func (h *CondorTestHarness) GetPasswordDir() string + func (h *CondorTestHarness) GetScheddName() string + func (h *CondorTestHarness) GetSigningKeyPath() string + func (h *CondorTestHarness) GetSpoolDir() string + func (h *CondorTestHarness) GetTrustDomain() string + func (h *CondorTestHarness) PrintCollectorLog() + func (h *CondorTestHarness) PrintScheddLog() + func (h *CondorTestHarness) PrintShadowLog() + func (h *CondorTestHarness) PrintStartdLog() + func (h *CondorTestHarness) PrintStarterLogs() + func (h *CondorTestHarness) Shutdown() + func (h *CondorTestHarness) WaitForDaemons() error + func (h *CondorTestHarness) WaitForSchedd(timeout time.Duration) error + func (h *CondorTestHarness) WaitForStartd(timeout time.Duration) error + type CredRequest struct + Audience string + Handle string + Scopes string + Service string + type CredType string + const CredTypeKerberos + const CredTypeOAuth + type CreddClient interface + CheckCreds func(ctx context.Context, requests []CredRequest) (string, error) + DeleteServiceCred func(ctx context.Context, credType CredType, service string, handle string, ...) error + DeleteUserCred func(ctx context.Context, credType CredType, user string) error + GetCredential func(ctx context.Context, credType CredType, service string, handle string, ...) ([]byte, error) + GetServiceCredStatus func(ctx context.Context, credType CredType, service string, handle string, ...) (CredentialStatus, error) + GetUserCredStatus func(ctx context.Context, credType CredType, user string) (CredentialStatus, error) + ListServiceCreds func(ctx context.Context, credType CredType, user string) ([]ServiceStatus, error) + PutServiceCred func(ctx context.Context, credType CredType, credential []byte, service string, ...) error + PutUserCred func(ctx context.Context, credType CredType, credential []byte, user string) error + type CredentialCache struct + func NewCredentialCache() *CredentialCache + func (c *CredentialCache) ListCredentialDir(path string) ([]os.DirEntry, error) + func (c *CredentialCache) ReadCredential(path string) ([]byte, error) + func (c *CredentialCache) Reload() + type CredentialOrigin int + const OriginDaemon + const OriginUnset + const OriginUser + func CredentialOriginFromContext(ctx context.Context) (CredentialOrigin, string) + func (o CredentialOrigin) String() string + type CredentialReloader interface + Reload func() + type CredentialStatus struct + Exists bool + Pending bool + UpdatedAt *time.Time + type DaemonLocation struct + Address string + Name string + Pool string + type DaemonType string + const DaemonCollector + const DaemonMaster + const DaemonNegotiator + const DaemonPlacementd + const DaemonSchedd + const DaemonStartd + type DialOptions struct + CCBRequireStreaming bool + CCBReturnAddr string + CCBReverseListener ccb.ReverseListenerFunc + Timeout time.Duration + type EditJobOptions struct + AllowProtectedAttrs bool + Force bool + type ErrDaemonFallbackRefused struct + Command int + Context string + Origin CredentialOrigin + PeerName string + Reason string + func (e *ErrDaemonFallbackRefused) Error() string + type FileTransferClient struct + func NewFileTransferClient(daemonAddr string, daemonPort int, transKey string) *FileTransferClient + func (ftc *FileTransferClient) DownloadFile(ctx context.Context, remotePath string, localPath string) error + func (ftc *FileTransferClient) UploadFile(ctx context.Context, item FileTransferItem) error + type FileTransferItem struct + Checksum string + ChecksumType string + DestPath string + FileMode uint32 + FileSize int64 + SrcPath string + type FileTransferServer struct + func NewFileTransferServer(transKey string, baseDir string) *FileTransferServer + func (fts *FileTransferServer) HandleDownload(_ context.Context, _ *stream.Stream) error + func (fts *FileTransferServer) HandleUpload(_ context.Context, _ *stream.Stream) error + type HistoryAdResult struct + Ad *classad.ClassAd + Err error + type HistoryQueryOptions struct + AdTypeFilter []string + Backwards bool + DaemonSubsystem string + Limit int + Projection []string + ReadFromDirectory bool + ScanLimit int + Since string + Source HistoryRecordSource + Stats *HistoryScanStats + StreamResults bool + TransferTypes []TransferType + func (opts *HistoryQueryOptions) ApplyDefaults() HistoryQueryOptions + func (opts *HistoryQueryOptions) GetEffectiveProjection() []string + func (opts *HistoryQueryOptions) IsUnlimited() bool + func (opts *HistoryQueryOptions) ShouldUseAllAttributes() bool + func (opts *HistoryQueryOptions) ShouldUseDefaultProjection() bool + type HistoryRecordSource string + const HistorySourceDaemon + const HistorySourceJobEpoch + const HistorySourceJobHistory + const HistorySourceStartd + const HistorySourceTransfer + type HistoryScanStats struct + MalformedAds int + Matches int + RecordsScanned int + Reported bool + ScanLimit int + ScanLimitReached bool + type InMemoryCredd struct + func NewInMemoryCredd() *InMemoryCredd + func (c *InMemoryCredd) CheckCreds(ctx context.Context, requests []CredRequest) (string, error) + func (c *InMemoryCredd) DeleteServiceCred(ctx context.Context, credType CredType, service string, handle string, ...) error + func (c *InMemoryCredd) DeleteUserCred(ctx context.Context, credType CredType, user string) error + func (c *InMemoryCredd) GetCredential(ctx context.Context, credType CredType, service string, handle string, ...) ([]byte, error) + func (c *InMemoryCredd) GetServiceCredStatus(ctx context.Context, credType CredType, service string, handle string, ...) (CredentialStatus, error) + func (c *InMemoryCredd) GetUserCredStatus(ctx context.Context, credType CredType, user string) (CredentialStatus, error) + func (c *InMemoryCredd) ListServiceCreds(ctx context.Context, credType CredType, user string) ([]ServiceStatus, error) + func (c *InMemoryCredd) PutServiceCred(ctx context.Context, credType CredType, credential []byte, service string, ...) error + func (c *InMemoryCredd) PutUserCred(ctx context.Context, credType CredType, credential []byte, user string) error + type JobAction int + const JA_CLEAR_DIRTY_JOB_ATTRS + const JA_CONTINUE_JOBS + const JA_ERROR + const JA_HOLD_JOBS + const JA_RELEASE_JOBS + const JA_REMOVE_JOBS + const JA_REMOVE_X_JOBS + const JA_SUSPEND_JOBS + const JA_TRANSFER_AND_REMOVE_JOBS + const JA_VACATE_FAST_JOBS + const JA_VACATE_JOBS + type JobActionRefusedError struct + Results *JobActionResults + func (e *JobActionRefusedError) Error() string + func (e *JobActionRefusedError) Is(target error) bool + type JobActionResults struct + AlreadyDone int + BadStatus int + Error int + LimitExceeded int + NotFound int + PermissionDenied int + ResultAd *classad.ClassAd + Success int + TotalJobs int + func (r *JobActionResults) Attempted() int + func (r *JobActionResults) Summary() string + type JobAdResult struct + Ad *classad.ClassAd + Err error + type JobConnectInfo struct + ClaimID string + RemoteHost string + StarterAddr string + StarterVersion string + func (info *JobConnectInfo) OpenSSH(ctx context.Context, opts *JobShellOptions) (*ssh.Client, error) + type JobFactory struct + ClusterID int + Items []string + MaxMaterialize int + TotalProcs int + Vars []string + func (f *JobFactory) Digest(itemsFilename string) (string, error) + type JobID struct + Cluster int + Proc int + type JobShellOptions struct + CCB *CCBDialer + HandshakeTimeout time.Duration + type KeepAliveOptions struct + DprintfLockDelay time.Duration + HangTimeout time.Duration + Interval time.Duration + type Master struct + func MasterFromEnv() (*Master, error) + func NewMaster(address string) *Master + func (m *Master) Address() string + func (m *Master) DaemonName() string + func (m *Master) ParentPID() int + func (m *Master) SendKeepAlive(ctx context.Context, opts *KeepAliveOptions) error + func (m *Master) SendReady(ctx context.Context, opts *ReadyOptions) error + func (m *Master) SetDaemonName(name string) + func (m *Master) StartKeepAlive(ctx context.Context, opts *KeepAliveOptions) (stop func(), errs <-chan error, err error) + func (m *Master) WithConfig(cfg *config.Config) *Master + type OCU struct + Ad *classad.ClassAd + ID int64 + Name string + Owner string + Project string + State string + func (o *OCU) Idle() bool + func (o *OCU) Running() bool + type OCURequest struct + Name string + Owner string + Project string + Request *classad.ClassAd + Submitter string + type OutputRemap struct + Destination string + IsURL bool + Source string + type PageInfo struct + HasMoreResults bool + NextPageToken string + TotalReturned int + type PeekRequest struct + CCB *CCBDialer + MaxBytes int64 + Stderr bool + StderrOffset int64 + Stdout bool + StdoutOffset int64 + type PeekResult struct + Stderr *PeekedStream + Stdout *PeekedStream + type PeekedStream struct + Bytes []byte + Offset int64 + type PingOptions struct + CheckPermission int + Command int + type PingResult struct + AuthMethod string + Authentication bool + Authorized bool + CommandNotFound bool + Encryption bool + Permission string + Reason string + SessionID string + User string + ValidCommands string + type PlacementAccount struct + Authorizations []string + DefaultProject string + Identities []string + Name string + Projects []string + type PlacementAuthorization struct + Color string + Description string + Label string + Name string + type PlacementAuthorizationRecord struct + Color string + Description string + Label string + Name string + Requestable bool + type PlacementEditOptions struct + Comment string + DryRun bool + OnBehalfOf string + type PlacementEditResult struct + Ad *classad.ClassAd + ErrorCode int + ErrorString string + ID string + Index int + Version int64 + Warning string + type PlacementEntityMeta struct + CreatedAt time.Time + ID string + ModificationID int64 + ModifiedBy string + Source string + UpdatedAt time.Time + Version int64 + type PlacementError struct + Code int + Message string + func (e *PlacementError) Error() string + func (e *PlacementError) Name() string + type PlacementFieldChange struct + New any + Old any + type PlacementIdentity struct + Account string + AccountID string + Authorizations []string + Comment string + DefaultProject string + DisplayName string + Expired bool + ExpiresAt time.Time + Identity string + LastTokenExpiration time.Time + Projects []string + type PlacementLoginRequest struct + Authorizations []string + Project string + Requester string + UserName string + type PlacementLoginResult struct + Ad *classad.ClassAd + Token string + type PlacementMapfileProblem struct + File string + Key string + Kind string + Line int + Message string + type PlacementMapfileStatus struct + APIVersion int + AuthorizationsMapfile string + Conflicts int + LoadAttemptTime time.Time + LoadTime time.Time + OK bool + Problems []PlacementMapfileProblem + Quarantined int + UserMapfile string + type PlacementModification struct + Actor string + Changes map[string]PlacementFieldChange + ChangesetID int64 + Channel string + Comment string + EntityID string + EntityType string + ID int64 + OnBehalfOf string + Operation string + PeerAddress string + Time time.Time + type PlacementObject struct + Account *PlacementAccount + Ad *classad.ClassAd + Authorization *PlacementAuthorizationRecord + Identity *PlacementIdentity + MapfileStatus *PlacementMapfileStatus + Modification *PlacementModification + Project *PlacementProject + Type string + type PlacementOp struct + Cascade bool + ExpectedVersion int64 + Fields map[string]any + ID string + Key string + Operation string + TargetType string + type PlacementProject struct + Accounts []string + Description string + Name string + type PlacementQuery struct + EntityID string + ID string + Key string + Limit int + Projection []string + Requirements string + TargetType string + type PlacementToken struct + APUserID string + Authorizations []string + Expiration time.Time + Project string + Requester string + TokenID string + UserName string + type PlacementTokenQuery struct + TokenID string + UserName string + ValidOnly bool + type PlacementUser struct + APUserID string + Authorizations []string + Authorized bool + MappedAccount string + MappingExpiration time.Time + Projects []string + TokenExpiration time.Time + UserName string + type Placementd struct + func NewPlacementd(address string) *Placementd + func (p *Placementd) Address() string + func (p *Placementd) Edit(ctx context.Context, ops []PlacementOp, opts PlacementEditOptions) ([]PlacementEditResult, error) + func (p *Placementd) Login(ctx context.Context, req PlacementLoginRequest) (*PlacementLoginResult, error) + func (p *Placementd) Query(ctx context.Context, q PlacementQuery) ([]PlacementObject, error) + func (p *Placementd) QueryAuthorizations(ctx context.Context, userName string) ([]PlacementAuthorization, error) + func (p *Placementd) QueryTokens(ctx context.Context, query PlacementTokenQuery) ([]PlacementToken, error) + func (p *Placementd) QueryUsers(ctx context.Context, userName string) ([]PlacementUser, error) + func (p *Placementd) Resolve(ctx context.Context) string + func (p *Placementd) WithConfig(cfg *config.Config) *Placementd + func (p *Placementd) WithResolver(resolve func(ctx context.Context) (string, error)) *Placementd + type PlacementdClient interface + Edit func(ctx context.Context, ops []PlacementOp, opts PlacementEditOptions) ([]PlacementEditResult, error) + Login func(ctx context.Context, req PlacementLoginRequest) (*PlacementLoginResult, error) + Query func(ctx context.Context, q PlacementQuery) ([]PlacementObject, error) + QueryAuthorizations func(ctx context.Context, userName string) ([]PlacementAuthorization, error) + QueryTokens func(ctx context.Context, query PlacementTokenQuery) ([]PlacementToken, error) + QueryUsers func(ctx context.Context, userName string) ([]PlacementUser, error) + type QmgmtConnection struct + func NewQmgmtConnection(ctx context.Context, address string) (*QmgmtConnection, error) + func (q *QmgmtConnection) AbortTransaction(ctx context.Context) error + func (q *QmgmtConnection) AllowsLateMaterialize() bool + func (q *QmgmtConnection) BeginTransaction(ctx context.Context) error + func (q *QmgmtConnection) Close() error + func (q *QmgmtConnection) CommitTransaction(ctx context.Context) error + func (q *QmgmtConnection) DestroyCluster(ctx context.Context, clusterID int) error + func (q *QmgmtConnection) LateMaterializeVersion() (int, bool) + func (q *QmgmtConnection) NewCluster(ctx context.Context) (int, error) + func (q *QmgmtConnection) NewProc(ctx context.Context, clusterID int) (int, error) + func (q *QmgmtConnection) SendClusterAttributes(ctx context.Context, clusterID int, ad *classad.ClassAd) error + func (q *QmgmtConnection) SendJobAttributes(ctx context.Context, clusterID, procID int, ad *classad.ClassAd) error + func (q *QmgmtConnection) SendMaterializeData(ctx context.Context, clusterID int, rows []string) (string, int, error) + func (q *QmgmtConnection) SendProcAttributes(ctx context.Context, clusterID, procID int, ad, clusterAd *classad.ClassAd) error + func (q *QmgmtConnection) SetAttribute(ctx context.Context, clusterID, procID int, attrName, attrValue string, ...) error + func (q *QmgmtConnection) SetAttributeInt(ctx context.Context, clusterID, procID int, attrName string, value int, ...) error + func (q *QmgmtConnection) SetEffectiveOwner(ctx context.Context, owner string) error + func (q *QmgmtConnection) SetJobFactory(ctx context.Context, clusterID, maxMaterialize int, filename, text string) error + type QueryFetchOpts int + const FetchIncludeClusterAd + const FetchIncludeJobsetAds + const FetchMyJobs + const FetchNoProcAds + const FetchNormal + const FetchSummaryOnly + type QueryOptions struct + FetchOpts QueryFetchOpts + Limit int + Owner string + PageToken string + PrivateAttributes bool + Projection []string + func (opts *QueryOptions) ApplyDefaults() QueryOptions + func (opts *QueryOptions) GetEffectiveProjection(defaultProj []string) []string + func (opts *QueryOptions) IsUnlimited() bool + func (opts *QueryOptions) ShouldUseAllAttributes() bool + func (opts *QueryOptions) ShouldUseDefaultProjection() bool + type ReadyOptions struct + Attributes map[string]any + Name string + State string + type RescheduleOptions struct + Force bool + MinInterval time.Duration + type Schedd struct + func NewSchedd(name string, address string) *Schedd + func (s *Schedd) Address() string + func (s *Schedd) AggregateJobs(ctx context.Context, constraint string, groupBy []string, opts *QueryOptions) ([]AggregateRow, error) + func (s *Schedd) ConfigVal(ctx context.Context, name string) (value string, ok bool, err error) + func (s *Schedd) CreateOCU(ctx context.Context, req *OCURequest) (ocu *OCU, err error) + func (s *Schedd) CreateStartupLimit(ctx context.Context, req *StartupLimitRequest) (string, error) + func (s *Schedd) DisableUserRecord(ctx context.Context, kind UserRecordKind, name, reason string) (*UserRecordActionResult, error) + func (s *Schedd) EditJob(ctx context.Context, clusterID, procID int, attributes map[string]string, ...) error + func (s *Schedd) EditJobAttributes(ctx context.Context, clusterID, procID int, attributes *classad.ClassAd, ...) error + func (s *Schedd) EditJobByID(ctx context.Context, jobID string, attributes map[string]string, ...) error + func (s *Schedd) EditJobs(ctx context.Context, constraint string, attributes map[string]string, ...) (int, error) + func (s *Schedd) EnableUserRecord(ctx context.Context, kind UserRecordKind, name string) (*UserRecordActionResult, error) + func (s *Schedd) GetJobConnectInfo(ctx context.Context, clusterID, procID int) (*JobConnectInfo, error) + func (s *Schedd) GetUserRecord(ctx context.Context, user string) (*UserRecord, error) + func (s *Schedd) HoldJobs(ctx context.Context, constraint string, reason string) (*JobActionResults, error) + func (s *Schedd) Name() string + func (s *Schedd) OCUsFor(ctx context.Context, owner, project string) ([]*OCU, error) + func (s *Schedd) OpenJobShell(ctx context.Context, clusterID, procID int, opts *JobShellOptions) (*ssh.Client, error) + func (s *Schedd) PeekJobOutput(ctx context.Context, cluster, proc int, req PeekRequest) (*PeekResult, error) + func (s *Schedd) Ping(ctx context.Context) (*PingResult, error) + func (s *Schedd) PingWithOptions(ctx context.Context, opts *PingOptions) (*PingResult, error) + func (s *Schedd) Query(ctx context.Context, constraint string, projection []string) ([]*classad.ClassAd, error) + func (s *Schedd) QueryHistory(ctx context.Context, constraint string, projection []string) ([]*classad.ClassAd, error) + func (s *Schedd) QueryHistoryStream(ctx context.Context, constraint string, opts *HistoryQueryOptions, ...) (<-chan HistoryAdResult, error) + func (s *Schedd) QueryHistoryWithOptions(ctx context.Context, constraint string, opts *HistoryQueryOptions) ([]*classad.ClassAd, error) + func (s *Schedd) QueryOCUs(ctx context.Context) (ocus []*OCU, err error) + func (s *Schedd) QueryProjectRecords(ctx context.Context, opts *UserRecordQueryOptions) ([]UserRecord, error) + func (s *Schedd) QueryStartupLimits(ctx context.Context, uuid, tag string) ([]*StartupLimit, error) + func (s *Schedd) QueryStream(ctx context.Context, constraint string, projection []string, ...) (<-chan JobAdResult, error) + func (s *Schedd) QueryStreamWithOptions(ctx context.Context, constraint string, opts *QueryOptions, ...) (<-chan JobAdResult, error) + func (s *Schedd) QueryUserRecords(ctx context.Context, opts *UserRecordQueryOptions) (records []UserRecord, err error) + func (s *Schedd) QueryWithOptions(ctx context.Context, constraint string, opts *QueryOptions) ([]*classad.ClassAd, *PageInfo, error) + func (s *Schedd) QueueSuperUsers(ctx context.Context) ([]string, error) + func (s *Schedd) ReceiveJobSandbox(ctx context.Context, constraint string, w io.Writer) <-chan error + func (s *Schedd) ReleaseJobs(ctx context.Context, constraint string, reason string) (*JobActionResults, error) + func (s *Schedd) RemoveJobs(ctx context.Context, constraint string, reason string) (*JobActionResults, error) + func (s *Schedd) RemoveJobsByID(ctx context.Context, ids []string, reason string) (*JobActionResults, error) + func (s *Schedd) RemoveOCU(ctx context.Context, id int64) error + func (s *Schedd) Reschedule(ctx context.Context) error + func (s *Schedd) RescheduleWithOptions(ctx context.Context, opts *RescheduleOptions) error + func (s *Schedd) SpoolJobFilesFromFS(ctx context.Context, jobAds []*classad.ClassAd, fsys fs.FS) error + func (s *Schedd) SpoolJobFilesFromTar(ctx context.Context, jobAds []*classad.ClassAd, r io.Reader) error + func (s *Schedd) Submit(ctx context.Context, submitFileContent string) (string, error) + func (s *Schedd) SubmitRemote(ctx context.Context, submitFileContent string) (clusterID int, procAds []*classad.ClassAd, err error) + func (s *Schedd) WithConfig(cfg *config.Config) *Schedd + func (s *Schedd) WithRateLimitKey(key string) *Schedd + type ScheddTarget struct + Host string + Name string + func ParseScheddHost(value string) ScheddTarget + func (t ScheddTarget) Address() string + func (t ScheddTarget) CollectorConstraint() string + func (t ScheddTarget) IsSet() bool + type SecurityConfigRenewer func(ctx context.Context) (*security.SecurityConfig, error) + type ServiceStatus struct + Exists bool + Handle string + Service string + UpdatedAt *time.Time + type SetAttributeFlags = qmgmt.SetAttributeFlags + const SetAttributeNoAck + type SimpleSubmitKeyword struct + Attr string + Key string + Opts int + func SimpleSubmitKeywords() []SimpleSubmitKeyword + func SimpleSubmitKeywordsFor(b SubmitBehavior) []SimpleSubmitKeyword + type Startd struct + func NewStartd(name string, address string) *Startd + func (s *Startd) Address() string + func (s *Startd) Name() string + func (s *Startd) QueryHistory(ctx context.Context, constraint string, projection []string) ([]*classad.ClassAd, error) + func (s *Startd) QueryHistoryStream(ctx context.Context, constraint string, opts *HistoryQueryOptions, ...) (<-chan HistoryAdResult, error) + func (s *Startd) QueryHistoryWithOptions(ctx context.Context, constraint string, opts *HistoryQueryOptions) ([]*classad.ClassAd, error) + func (s *Startd) WithConfig(cfg *config.Config) *Startd + type StartupLimit struct + Burst int + CostAllowed float64 + CostExpression string + Expiration int + ExpiresAt int64 + Expression string + IgnoredUsers string + JobsAllowed int64 + JobsSkipped int64 + LastIgnored int64 + MatchesIgnored int64 + MaxBurstCost int + Name string + RateCount int + RateWindow int + Tag string + UUID string + type StartupLimitRequest struct + Burst int + CostExpression string + Expiration int + Expression string + MaxBurstCost int + Name string + RateCount int + RateWindow int + Tag string + UUID string + type StartupLimitResponse struct + Error string + Status int + UUID string + type StreamOptions struct + BufferSize int + PrivateAttributes bool + WriteTimeout time.Duration + func (o *StreamOptions) ApplyStreamDefaults() StreamOptions + type SubmitBehavior struct + CommonContainerVanillaOnly bool + ContainerSourceIsATransferMethod bool + OmitContainerIsCommonAttr bool + OmitExitStatus bool + OmitLeaveJobInQueueDefault bool + OmitLocalAndSchedulerMachineChecks bool + OmitLocalAndSchedulerResourceDefaults bool + OmitRemoteIOKeywords bool + OmitTransferVersionCheck bool + OmitVanillaDiskClause bool + OmitZeroedRunTimeCounters bool + func SubmitBehaviorFor(version string) SubmitBehavior + type SubmitFile struct + func ParseSubmitFile(r io.Reader) (*SubmitFile, error) + func ParseSubmitFileWithOptions(r io.Reader, opts SubmitParseOptions) (*SubmitFile, error) + func (sf *SubmitFile) Command(key string) (string, bool) + func (sf *SubmitFile) Factory(clusterID int) (*JobFactory, error) + func (sf *SubmitFile) MakeClusterAd(clusterID int) (*classad.ClassAd, error) + func (sf *SubmitFile) MakeJobAd(jobID JobID, queueVars map[string]string) (*classad.ClassAd, error) + func (sf *SubmitFile) MakeProcAd(clusterID int, procID int, queueVars map[string]string) (*classad.ClassAd, error) + func (sf *SubmitFile) OAuthServicesNeeded() []string + func (sf *SubmitFile) QueueCount() int + func (sf *SubmitFile) QueueVars() []string + func (sf *SubmitFile) Submit(clusterID int) (*SubmitResult, error) + func (sf *SubmitFile) SubmitLate(clusterID int) (*SubmitResult, error) + func (sf *SubmitFile) WantFactory() (limit int64, want bool, err error) + type SubmitIterator interface + Count func() int + Next func() bool + Values func() map[string]string + type SubmitParamMap map[string]string + func (m SubmitParamMap) Get(name string) (string, bool) + type SubmitParams interface + Get func(name string) (string, bool) + func SubmitParamsFromContext(ctx context.Context) SubmitParams + type SubmitParseOptions struct + AllowLocalAccess bool + Behavior SubmitBehavior + Params SubmitParams + SubmitUser string + type SubmitResult struct + ClusterAd *classad.ClassAd + ClusterID int + Factory *JobFactory + NumProcs int + ProcAds []*classad.ClassAd + type TestingT interface + Cleanup func(func()) + Fatalf func(format string, args ...interface{}) + Helper func() + Log func(...interface{}) + Logf func(format string, args ...interface{}) + Skip func(...interface{}) + Skipf func(format string, args ...interface{}) + TempDir func() string + type TransferCommand int32 + const CommandDisableEncryption + const CommandDownloadURL + const CommandEnableEncryption + const CommandFinished + const CommandMkdir + const CommandOther + const CommandXferFile + const CommandXferX509 + type TransferType string + const TransferTypeCheckpoint + const TransferTypeInput + const TransferTypeOutput + type UnmarkedOriginPolicy int32 + const UnmarkedAllow + const UnmarkedDeny + const UnmarkedWarn + type UserRecord struct + Ad *classad.ClassAd + DisableReason string + Enabled *bool + User string + func (u *UserRecord) IsDisabled() bool + type UserRecordActionResult struct + NumAds int + Warning string + type UserRecordError struct + Code int + Message string + func (e *UserRecordError) Error() string + type UserRecordKind string + const UserRecordOwner + const UserRecordProject + type UserRecordQueryOptions struct + Constraint string + Limit int + Projection []string + type WatchEvent struct + Ad *classad.ClassAd + Cursor []byte + Key string + Kind watch.Kind