_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c176300
test
// QueuedJobs returns a list of jobs that need to be triggered // and reset trigger in jobStatus
{ "resource": "" }
c176301
test
// HasJob returns if a job has been scheduled in cronAgent or not
{ "resource": "" }
c176302
test
// addJob adds a cron entry for a job to cronAgent
{ "resource": "" }
c176303
test
// removeJob removes the job from cronAgent
{ "resource": "" }
c176304
test
// UpdateComments downloads issue and pull-request comments and save in DB
{ "resource": "" }
c176305
test
// GatherProwJobMetrics gathers prometheus metrics for prowjobs.
{ "resource": "" }
c176306
test
// optionOrDefault defaults to a value if option // is the zero value
{ "resource": "" }
c176307
test
// newGCSJobSource creates a new gcsJobSource from a given bucket and jobPrefix
{ "resource": "" }
c176308
test
// Artifacts lists all artifacts available for the given job source
{ "resource": "" }
c176309
test
// CanonicalLink gets a link to the location of job-specific artifacts in GCS
{ "resource": "" }
c176310
test
// JobPath gets the prefix to all artifacts in GCS in the job
{ "resource": "" }
c176311
test
// targetURL determines the URL used for more details in the status // context on GitHub. If no PR dashboard is configured, we will use // the administrative Prow overview.
{ "resource": "" }
c176312
test
// newBuildConfig returns a client and informer capable of mutating and monitoring the specified config.
{ "resource": "" }
c176313
test
// NewClient makes a new Client with the specified token and dry-run status.
{ "resource": "" }
c176314
test
// retry handles rate limiting and retry logic for a github API call.
{ "resource": "" }
c176315
test
// depaginate adds depagination on top of the retry and rate limiting logic provided by retry.
{ "resource": "" }
c176316
test
// NewHelpAgent constructs a new HelpAgent.
{ "resource": "" }
c176317
test
// GeneratePluginHelp compiles and returns the help information for all plugins.
{ "resource": "" }
c176318
test
// gets the pull commit hash from metadata
{ "resource": "" }
c176319
test
// listJobBuilds concurrently lists builds for the given job prefixes that have been run on a PR
{ "resource": "" }
c176320
test
// getPRBuildData concurrently fetches metadata on each build of each job run on a PR
{ "resource": "" }
c176321
test
// getGCSDirsForPR returns a map from bucket names -> set of "directories" containing presubmit data
{ "resource": "" }
c176322
test
// Helper to delete an image file from the local images directory.
{ "resource": "" }
c176323
test
// Create the network on the system. The withDatabase flag is used to decide // whether to cleanup the database if an error occurs.
{ "resource": "" }
c176324
test
// The network structs and functions
{ "resource": "" }
c176325
test
// Transaction creates a new NodeTx object and transactionally executes the // node-level database interactions invoked by the given function. If the // function returns no error, all database changes are committed to the // node-level database, otherwise they are rolled back.
{ "resource": "" }
c176326
test
// ForLocalInspectionWithPreparedStmts is the same as ForLocalInspection but it // also prepares the statements used in auto-generated database code.
{ "resource": "" }
c176327
test
// SetDefaultTimeout sets the default go-dqlite driver timeout.
{ "resource": "" }
c176328
test
// Transaction creates a new ClusterTx object and transactionally executes the // cluster database interactions invoked by the given function. If the function // returns no error, all database changes are committed to the cluster database // database, otherwise they are rolled back. // // If EnterExclusive has been cal...
{ "resource": "" }
c176329
test
// EnterExclusive acquires a lock on the cluster db, so any successive call to // Transaction will block until ExitExclusive has been called.
{ "resource": "" }
c176330
test
// ExitExclusive runs the given transaction and then releases the lock acquired // with EnterExclusive.
{ "resource": "" }
c176331
test
// Close the database facade.
{ "resource": "" }
c176332
test
// TxCommit commits the given transaction.
{ "resource": "" }
c176333
test
// ParseRemote splits remote and object
{ "resource": "" }
c176334
test
// GetContainerServer returns a ContainerServer struct for the remote
{ "resource": "" }
c176335
test
// GetImageServer returns a ImageServer struct for the remote
{ "resource": "" }
c176336
test
// Initialize AppArmor-specific attributes.
{ "resource": "" }
c176337
test
// Returns true if AppArmor stacking support is available.
{ "resource": "" }
c176338
test
// Add a device to a container
{ "resource": "" }
c176339
test
// Add a device to a profile
{ "resource": "" }
c176340
test
// Create the specified image alises, updating those that already exist
{ "resource": "" }
c176341
test
// GetExistingAliases returns the intersection between a list of aliases and all the existing ones.
{ "resource": "" }
c176342
test
// String returns a suitable string representation for the status code
{ "resource": "" }
c176343
test
// ImagesGetExpired returns the names of all images that have expired since the // given time.
{ "resource": "" }
c176344
test
// ImageSourceInsert inserts a new image source.
{ "resource": "" }
c176345
test
// ImageSourceGet returns the image source with the given ID.
{ "resource": "" }
c176346
test
// ImageExists returns whether an image with the given fingerprint exists.
{ "resource": "" }
c176347
test
// ImageGet gets an Image object from the database. // If strictMatching is false, The fingerprint argument will be queried with a LIKE query, means you can // pass a shortform and will get the full fingerprint. // There can never be more than one image with a given fingerprint, as it is // enforced by a UNIQUE constra...
{ "resource": "" }
c176348
test
// ImageGetFromAnyProject returns an image matching the given fingerprint, if // it exists in any project.
{ "resource": "" }
c176349
test
// Fill extra image fields such as properties and alias. This is called after // fetching a single row from the images table.
{ "resource": "" }
c176350
test
// ImageLocate returns the address of an online node that has a local copy of // the given image, or an empty string if the image is already available on this // node. // // If the image is not available on any online node, an error is returned.
{ "resource": "" }
c176351
test
// ImageAssociateNode creates a new entry in the images_nodes table for // tracking that the current node has the given image.
{ "resource": "" }
c176352
test
// ImageDelete deletes the image with the given ID.
{ "resource": "" }
c176353
test
// ImageAliasesGet returns the names of the aliases of all images.
{ "resource": "" }
c176354
test
// ImageAliasGet returns the alias with the given name in the given project.
{ "resource": "" }
c176355
test
// ImageAliasRename renames the alias with the given ID.
{ "resource": "" }
c176356
test
// ImageAliasDelete deletes the alias with the given name.
{ "resource": "" }
c176357
test
// ImageAliasesMove changes the image ID associated with an alias.
{ "resource": "" }
c176358
test
// ImageAliasAdd inserts an alias ento the database.
{ "resource": "" }
c176359
test
// ImageAliasUpdate updates the alias with the given ID.
{ "resource": "" }
c176360
test
// ImageLastAccessUpdate updates the last_use_date field of the image with the // given fingerprint.
{ "resource": "" }
c176361
test
//ImageLastAccessInit inits the last_use_date field of the image with the given fingerprint.
{ "resource": "" }
c176362
test
// ImageUpdate updates the image with the given ID.
{ "resource": "" }
c176363
test
// ImageInsert inserts a new image.
{ "resource": "" }
c176364
test
// ImageGetPools get the names of all storage pools on which a given image exists.
{ "resource": "" }
c176365
test
// ImageGetPoolNamesFromIDs get the names of all storage pools on which a given image exists.
{ "resource": "" }
c176366
test
// ImageUploadedAt updates the upload_date column and an image row.
{ "resource": "" }
c176367
test
// ImagesGetOnCurrentNode returns all images that the current LXD node instance has.
{ "resource": "" }
c176368
test
// ImagesGetByNodeID returns all images that the LXD node instance has with the given node id.
{ "resource": "" }
c176369
test
// ImageGetNodesWithImage returns the addresses of online nodes which already have the image.
{ "resource": "" }
c176370
test
// ImageGetNodesWithoutImage returns the addresses of online nodes which don't have the image.
{ "resource": "" }
c176371
test
// Add a new task to the group, returning its index.
{ "resource": "" }
c176372
test
// Start all the tasks in the group.
{ "resource": "" }
c176373
test
// zfsIsEnabled returns whether zfs backend is supported.
{ "resource": "" }
c176374
test
// zfsToolVersionGet returns the ZFS tools version
{ "resource": "" }
c176375
test
// zfsModuleVersionGet returns the ZFS module version
{ "resource": "" }
c176376
test
// zfsPoolVolumeCreate creates a ZFS dataset with a set of given properties.
{ "resource": "" }
c176377
test
// zfsPoolVolumeExists verifies if a specific ZFS pool or volume exists.
{ "resource": "" }
c176378
test
// NetworkIDsNotPending returns a map associating each network name to its ID. // // Pending networks are skipped.
{ "resource": "" }
c176379
test
// NetworkConfigAdd adds a new entry in the networks_config table
{ "resource": "" }
c176380
test
// NetworkNodeJoin adds a new entry in the networks_nodes table. // // It should only be used when a new node joins the cluster, when it's safe to // assume that the relevant network has already been created on the joining node, // and we just need to track it.
{ "resource": "" }
c176381
test
// NetworkCreatePending creates a new pending network on the node with // the given name.
{ "resource": "" }
c176382
test
// NetworkCreated sets the state of the given network to "Created".
{ "resource": "" }
c176383
test
// NetworkErrored sets the state of the given network to "Errored".
{ "resource": "" }
c176384
test
// NetworkGet returns the network with the given name.
{ "resource": "" }
c176385
test
// Return the names of the nodes the given network is defined on.
{ "resource": "" }
c176386
test
// NetworkGetInterface returns the network associated with the interface with // the given name.
{ "resource": "" }
c176387
test
// NetworkConfigGet returns the config map of the network with the given ID.
{ "resource": "" }
c176388
test
// NetworkCreate creates a new network.
{ "resource": "" }
c176389
test
// NetworkUpdate updates the network with the given name.
{ "resource": "" }
c176390
test
// NetworkUpdateDescription updates the description of the network with the // given ID.
{ "resource": "" }
c176391
test
// NetworkConfigClear resets the config of the network with the given ID // associated with the node with the given ID.
{ "resource": "" }
c176392
test
// NetworkDelete deletes the network with the given name.
{ "resource": "" }
c176393
test
// NetworkRename renames a network.
{ "resource": "" }
c176394
test
// GetContainers returns a list of containers
{ "resource": "" }
c176395
test
// GetContainersFull returns a list of containers including snapshots, backups and state
{ "resource": "" }
c176396
test
// GetContainer returns the container entry for the provided name
{ "resource": "" }
c176397
test
// CreateContainerFromBackup is a convenience function to make it easier to // create a container from a backup
{ "resource": "" }
c176398
test
// CreateContainer requests that LXD creates a new container
{ "resource": "" }
c176399
test
// CreateContainerFromImage is a convenience function to make it easier to create a container from an existing image
{ "resource": "" }