_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27400 | train | // openStore initializes and opens the store. | {
"resource": ""
} | ||
c27401 | train | // openDNSServer initializes and opens the DNS server.
// The store must already be open. | {
"resource": ""
} | ||
c27402 | train | // openHTTPServer initializes and opens the HTTP server.
// The store must already be open. | {
"resource": ""
} | ||
c27403 | train | // Notify sends a POST to notifyURL to let it know that addr is accessible. | {
"resource": ""
} | ||
c27404 | train | // MergeHostPort joins host to the port in portAddr. | {
"resource": ""
} | ||
c27405 | train | // waitForLeader polls the store until a leader is found or a timeout occurs.
// If timeout is -1 then wait indefinitely | {
"resource": ""
} | ||
c27406 | train | // TrimSpaceSlice returns a new slice of trimmed strings.
// Empty strings are removed entirely. | {
"resource": ""
} | ||
c27407 | train | // SetPortSlice sets the ports for a slice of hosts. | {
"resource": ""
} | ||
c27408 | train | // GetCACert returns the CA cert for the controller | {
"resource": ""
} | ||
c27409 | train | // PutDomain migrates the cluster domain | {
"resource": ""
} | ||
c27410 | train | // CreateArtifact creates a new artifact. | {
"resource": ""
} | ||
c27411 | train | // CreateRelease creates a new release. | {
"resource": ""
} | ||
c27412 | train | // CreateApp creates a new app. | {
"resource": ""
} | ||
c27413 | train | // UpdateApp updates the meta and strategy using app.ID. | {
"resource": ""
} | ||
c27414 | train | // DeleteApp deletes an app. | {
"resource": ""
} | ||
c27415 | train | // CreateProvider creates a new provider. | {
"resource": ""
} | ||
c27416 | train | // GetProvider returns the provider identified by providerID. | {
"resource": ""
} | ||
c27417 | train | // ProvisionResource uses a provider to provision a new resource for the
// application. Returns details about the resource. | {
"resource": ""
} | ||
c27418 | train | // GetResource returns the resource identified by resourceID under providerID. | {
"resource": ""
} | ||
c27419 | train | // ResourceListAll returns all resources. | {
"resource": ""
} | ||
c27420 | train | // ResourceList returns all resources under providerID. | {
"resource": ""
} | ||
c27421 | train | // AddResourceApp adds appID to the resource identified by resourceID and returns the resource | {
"resource": ""
} | ||
c27422 | train | // DeleteResourceApp removes appID from the resource identified by resourceID and returns the resource | {
"resource": ""
} | ||
c27423 | train | // AppResourceList returns a list of all resources under appID. | {
"resource": ""
} | ||
c27424 | train | // PutResource updates a resource. | {
"resource": ""
} | ||
c27425 | train | // DeleteResource deprovisions and deletes the resource identified by resourceID under providerID. | {
"resource": ""
} | ||
c27426 | train | // PutFormation updates an existing formation. | {
"resource": ""
} | ||
c27427 | train | // PutJob updates an existing job. | {
"resource": ""
} | ||
c27428 | train | // DeleteJob kills a specific job id under the specified app. | {
"resource": ""
} | ||
c27429 | train | // SetAppRelease sets the specified release as the current release for an app. | {
"resource": ""
} | ||
c27430 | train | // GetAppRelease returns the current release of an app. | {
"resource": ""
} | ||
c27431 | train | // RouteList returns all routes for an app. | {
"resource": ""
} | ||
c27432 | train | // GetRoute returns details for the routeID under the specified app. | {
"resource": ""
} | ||
c27433 | train | // CreateRoute creates a new route for the specified app. | {
"resource": ""
} | ||
c27434 | train | // UpdateRoute updates details for the routeID under the specified app. | {
"resource": ""
} | ||
c27435 | train | // DeleteRoute deletes a route under the specified app. | {
"resource": ""
} | ||
c27436 | train | // GetFormation returns details for the specified formation under app and
// release. | {
"resource": ""
} | ||
c27437 | train | // GetExpandedFormation returns expanded details for the specified formation
// under app and release. | {
"resource": ""
} | ||
c27438 | train | // FormationList returns a list of all formations under appID. | {
"resource": ""
} | ||
c27439 | train | // DeleteFormation deletes the formation matching appID and releaseID. | {
"resource": ""
} | ||
c27440 | train | // GetRelease returns details for the specified release. | {
"resource": ""
} | ||
c27441 | train | // GetArtifact returns details for the specified artifact. | {
"resource": ""
} | ||
c27442 | train | // GetApp returns details for the specified app. | {
"resource": ""
} | ||
c27443 | train | // GetAppLog returns a ReadCloser log stream of the app with ID appID. If lines
// is zero or above, the number of lines returned will be capped at that value.
// Otherwise, all available logs are returned. If follow is true, new log lines
// are streamed after the buffered log. | {
"resource": ""
} | ||
c27444 | train | // StreamAppLog is the same as GetAppLog but returns log lines via an SSE stream | {
"resource": ""
} | ||
c27445 | train | // GetDeployment returns a deployment queued on the deployer. | {
"resource": ""
} | ||
c27446 | train | // DeploymentList returns a list of all deployments. | {
"resource": ""
} | ||
c27447 | train | // StreamJobEvents streams job events to the output channel. | {
"resource": ""
} | ||
c27448 | train | // RunJobAttached runs a new job under the specified app, attaching to the job
// and returning a ReadWriteCloser stream, which can then be used for
// communicating with the job. | {
"resource": ""
} | ||
c27449 | train | // RunJobDetached runs a new job under the specified app, returning the job's
// details. | {
"resource": ""
} | ||
c27450 | train | // GetJob returns a Job for the given app and job ID | {
"resource": ""
} | ||
c27451 | train | // JobList returns a list of all jobs. | {
"resource": ""
} | ||
c27452 | train | // JobListActive returns a list of all active jobs. | {
"resource": ""
} | ||
c27453 | train | // AppList returns a list of all apps. | {
"resource": ""
} | ||
c27454 | train | // ArtifactList returns a list of all artifacts | {
"resource": ""
} | ||
c27455 | train | // ReleaseList returns a list of all releases | {
"resource": ""
} | ||
c27456 | train | // AppReleaseList returns a list of all releases under appID. | {
"resource": ""
} | ||
c27457 | train | // ProviderList returns a list of all providers. | {
"resource": ""
} | ||
c27458 | train | // GetVolume returns a Volume for the given volume ID | {
"resource": ""
} | ||
c27459 | train | // PutVolume updates an existing volume. | {
"resource": ""
} | ||
c27460 | train | // VolumeList returns a list of all volumes. | {
"resource": ""
} | ||
c27461 | train | // AppVolumeList returns a list of all volumes for an app. | {
"resource": ""
} | ||
c27462 | train | // DecommissionVolume decommissions a volume | {
"resource": ""
} | ||
c27463 | train | // StreamVolumes sends a series of Volume into the provided channel.
// If since is not nil, only retrieves volume updates since the specified time. | {
"resource": ""
} | ||
c27464 | train | // Backup takes a backup of the cluster | {
"resource": ""
} | ||
c27465 | train | // GetBackupMeta returns metadata for latest backup | {
"resource": ""
} | ||
c27466 | train | // DeleteRelease deletes a release and any associated file artifacts. | {
"resource": ""
} | ||
c27467 | train | // ScheduleAppGarbageCollection schedules a garbage collection cycle for the app | {
"resource": ""
} | ||
c27468 | train | // Status gets the controller status | {
"resource": ""
} | ||
c27469 | train | // CreateSink creates a new log sink | {
"resource": ""
} | ||
c27470 | train | // GetSink gets a log sink | {
"resource": ""
} | ||
c27471 | train | // DeleteSink removes a log sink | {
"resource": ""
} | ||
c27472 | train | // ListSink returns all log sinks | {
"resource": ""
} | ||
c27473 | train | // addInst adds the given instance to the local state and returns whether the
// instance already existed in the local state, and if it did exist, whether it
// was identical. | {
"resource": ""
} | ||
c27474 | train | // delInst removes the given instance from the local state. | {
"resource": ""
} | ||
c27475 | train | // maybeStartBlockedJobs starts any jobs which are blocked due to not
// matching tags of any hosts on the given host, which is expected to be
// either a new host or a host whose tags have just changed | {
"resource": ""
} | ||
c27476 | train | // findVolume looks for an existing, unassigned volume which matches the given
// job's app, release and type, and the volume request's path | {
"resource": ""
} | ||
c27477 | train | // activeFormationCount returns the number of formations which have running
// jobs for the given app | {
"resource": ""
} | ||
c27478 | train | // findJobToStop finds a job from the given formation and type which should be
// stopped, choosing pending jobs if present, and the most recently started job
// otherwise | {
"resource": ""
} | ||
c27479 | train | // readID reads the instance id from path.
// If the file instance id doesn't exist then a random ID is generated. | {
"resource": ""
} | ||
c27480 | train | // FindAppReleaseJobs returns a slice with one map of host id to job for each
// known release of the given app and type, most recent first | {
"resource": ""
} | ||
c27481 | train | // Looks up if the origin matches one of the patterns
// generated from Options.AllowOrigins patterns. | {
"resource": ""
} | ||
c27482 | train | // Allows CORS for requests those match the provided options. | {
"resource": ""
} | ||
c27483 | train | // initDB initializes the postgres data directory for a new dDB. This can fail
// if the db has already been initialized, which is not a fatal error.
//
// This method should only be called by the primary of a shard. Standbys will
// not need to initialize, as they will restore from an already running primary. | {
"resource": ""
} | ||
c27484 | train | // DownloadConfig downloads the Flynn config files using the tuf client to the
// given dir. | {
"resource": ""
} | ||
c27485 | train | // ExtractHostID returns the host ID component of a job ID, returning an error
// if the given ID is invalid. | {
"resource": ""
} | ||
c27486 | train | // GenerateJobID returns a random job identifier, prefixed with the given host ID. | {
"resource": ""
} | ||
c27487 | train | // waitForSync waits for downstream sync in goroutine | {
"resource": ""
} | ||
c27488 | train | // DialInfo returns dial info for connecting to the local process as the "flynn" user. | {
"resource": ""
} | ||
c27489 | train | // Read checks for the PROXY protocol header when doing the initial scan. If
// there is an error parsing the header, it is returned and the socket is
// closed. | {
"resource": ""
} | ||
c27490 | train | // NewAggregator creates a new running Aggregator. | {
"resource": ""
} | ||
c27491 | train | // Read returns the buffered messages for id. | {
"resource": ""
} | ||
c27492 | train | // ReadAll returns all buffered messages. | {
"resource": ""
} | ||
c27493 | train | // Read returns the buffered messages and adds a subscriber channel for id. | {
"resource": ""
} | ||
c27494 | train | // Reset clears all buffered data and closes subscribers. | {
"resource": ""
} | ||
c27495 | train | // Read adds a subscriber channel for id. | {
"resource": ""
} | ||
c27496 | train | // Git HTTP line protocol functions | {
"resource": ""
} | ||
c27497 | train | // NewAPIHandler returns a new instance of APIHandler. | {
"resource": ""
} | ||
c27498 | train | // NewHost creates a new Host that uses client to communicate with it.
// addr is used by Attach. | {
"resource": ""
} | ||
c27499 | train | // ListJobs lists all jobs on the host. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.