_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c25500 | train | // Diff prints the unified diff of the two provided byte slices
// using the unix diff command. | {
"resource": ""
} | ||
c25501 | train | // StartLocalController starts the sync loop for the local PV discovery and deleter | {
"resource": ""
} | ||
c25502 | train | // NewFlexProvisioner creates a new flex provisioner | {
"resource": ""
} | ||
c25503 | train | // Adds a snapshot to the list of snapshots to be created | {
"resource": ""
} | ||
c25504 | train | // Removes the snapshot from the list of existing snapshots | {
"resource": ""
} | ||
c25505 | train | // NewNFSProvisioner creates a Provisioner that provisions NFS PVs backed by
// the given directory. | {
"resource": ""
} | ||
c25506 | train | // ShouldProvision returns whether provisioning should be attempted for the given
// claim. | {
"resource": ""
} | ||
c25507 | train | // createDirectory creates the given directory in exportDir with appropriate
// permissions and ownership according to the given gid parameter string. | {
"resource": ""
} | ||
c25508 | train | // createExport creates the export by adding a block to the appropriate config
// file and exporting it | {
"resource": ""
} | ||
c25509 | train | // createQuota creates a quota for the directory by adding a project to
// represent the directory and setting a quota on it | {
"resource": ""
} | ||
c25510 | train | // NewDeleter creates a Deleter object to handle the cleanup and deletion of local PVs
// allocated by this provisioner | {
"resource": ""
} | ||
c25511 | train | // DeletePVs will scan through all the existing PVs that are released, and cleanup and
// delete them | {
"resource": ""
} | ||
c25512 | train | // InProgress returns true if the cleaning for the specified PV is in progress. | {
"resource": ""
} | ||
c25513 | train | // RemoveStatus removes and returns the status and start time of a completed cleaning process.
// The method returns an error if the process has not yet completed. | {
"resource": ""
} | ||
c25514 | train | //NewglusterfileProvisioner create a new provisioner. | {
"resource": ""
} | ||
c25515 | train | // IsEmpty Check if any cleanup process is running | {
"resource": ""
} | ||
c25516 | train | // MarkFailed Indicate the process has failed in its run. | {
"resource": ""
} | ||
c25517 | train | // MarkSucceeded Indicate the process has succeeded in its run. | {
"resource": ""
} | ||
c25518 | train | // RemoveEntry Removes proctable entry and returns final state and start time of cleanup.
// Must only be called and cleanup that has ended, else error is returned. | {
"resource": ""
} | ||
c25519 | train | // Stats returns stats of ProcTable. | {
"resource": ""
} | ||
c25520 | train | // MarkFailed Indicate the process has failed. | {
"resource": ""
} | ||
c25521 | train | // MarkSucceeded Indicate the process has succeeded. | {
"resource": ""
} | ||
c25522 | train | // RemoveEntry removes the entry from the proc table. | {
"resource": ""
} | ||
c25523 | train | // NewClient creates a new RESTClient | {
"resource": ""
} | ||
c25524 | train | // CreateCRD creates CustomResourceDefinition | {
"resource": ""
} | ||
c25525 | train | // WaitForSnapshotResource waits for the snapshot resource | {
"resource": ""
} | ||
c25526 | train | // List lists node names | {
"resource": ""
} | ||
c25527 | train | // NodeAddresses gets node addresses | {
"resource": ""
} | ||
c25528 | train | // generateID generates a unique exportID to assign an export | {
"resource": ""
} | ||
c25529 | train | // getExistingIDs populates a map with existing ids found in the given config
// file using the given regexp. Regexp must have a "digits" submatch. | {
"resource": ""
} | ||
c25530 | train | // NewSnapshotController creates a new SnapshotController | {
"resource": ""
} | ||
c25531 | train | // Run starts an Snapshot resource controller | {
"resource": ""
} | ||
c25532 | train | // Makes sure that the health check for an ELB matches the configured listeners | {
"resource": ""
} | ||
c25533 | train | // CreateImage creates a new ceph image with provision and volume options. | {
"resource": ""
} | ||
c25534 | train | // rbdStatus checks if there is watcher on the image.
// It returns true if there is a watcher onthe image, otherwise returns false. | {
"resource": ""
} | ||
c25535 | train | // DeleteImage deletes a ceph image with provision and volume options. | {
"resource": ""
} | ||
c25536 | train | // DeleteRoute implements Routes.DeleteRoute
// Delete the specified route | {
"resource": ""
} | ||
c25537 | train | // NewDiscoverer creates a Discoverer object that will scan through
// the configured directories and create local PVs for any new directories found | {
"resource": ""
} | ||
c25538 | train | // DiscoverLocalVolumes reads the configured discovery paths, and creates PVs for the new volumes | {
"resource": ""
} | ||
c25539 | train | // Round down the capacity to an easy to read value. | {
"resource": ""
} | ||
c25540 | train | // GetStorageNodeAffinityFromAnnotation gets the json serialized data from PersistentVolume.Annotations
// and converts it to the NodeAffinity type in core. | {
"resource": ""
} | ||
c25541 | train | // StorageNodeAffinityToAlphaAnnotation converts NodeAffinity type to Alpha annotation for use in PersistentVolumes | {
"resource": ""
} | ||
c25542 | train | // newGCECloud creates a new instance of GCECloud. | {
"resource": ""
} | ||
c25543 | train | // translate from what K8s supports to what the cloud provider supports for session affinity. | {
"resource": ""
} | ||
c25544 | train | // DeleteForwardingRule deletes the forwarding rule | {
"resource": ""
} | ||
c25545 | train | // DeleteTargetPool deletes the given target pool. | {
"resource": ""
} | ||
c25546 | train | // UpdateFirewall applies the given firewall rule as an update to an existing
// firewall rule with the same name. | {
"resource": ""
} | ||
c25547 | train | // DeleteGlobalStaticIP deletes a global static IP by name. | {
"resource": ""
} | ||
c25548 | train | // GetGlobalStaticIP returns the global static IP by name. | {
"resource": ""
} | ||
c25549 | train | // UrlMap management
// GetURLMap returns the URLMap by name. | {
"resource": ""
} | ||
c25550 | train | // CreateURLMap creates an url map, using the given backend service as the default service. | {
"resource": ""
} | ||
c25551 | train | // UpdateURLMap applies the given UrlMap as an update, and returns the new UrlMap. | {
"resource": ""
} | ||
c25552 | train | // ListURLMaps lists all URLMaps in the project. | {
"resource": ""
} | ||
c25553 | train | // TargetHttpProxy management
// GetTargetHTTPProxy returns the UrlMap by name. | {
"resource": ""
} | ||
c25554 | train | // CreateTargetHTTPProxy creates and returns a TargetHTTPProxy with the given UrlMap. | {
"resource": ""
} | ||
c25555 | train | // SetURLMapForTargetHTTPProxy sets the given URLMap for the given TargetHTTPProxy. | {
"resource": ""
} | ||
c25556 | train | // ListTargetHTTPProxies lists all TargetHTTPProxies in the project. | {
"resource": ""
} | ||
c25557 | train | // TargetHttpsProxy management
// GetTargetHTTPSProxy returns the URLMap by name. | {
"resource": ""
} | ||
c25558 | train | // CreateTargetHTTPSProxy creates and returns a TargetHTTPSProxy with the given URLMap and SslCertificate. | {
"resource": ""
} | ||
c25559 | train | // SetURLMapForTargetHTTPSProxy sets the given URLMap for the given TargetHTTPSProxy. | {
"resource": ""
} | ||
c25560 | train | // SetSslCertificateForTargetHTTPSProxy sets the given SslCertificate for the given TargetHTTPSProxy. | {
"resource": ""
} | ||
c25561 | train | // DeleteTargetHTTPSProxy deletes the TargetHTTPSProxy by name. | {
"resource": ""
} | ||
c25562 | train | // ListTargetHTTPSProxies lists all TargetHTTPSProxies in the project. | {
"resource": ""
} | ||
c25563 | train | // SSL Certificate management
// GetSslCertificate returns the SslCertificate by name. | {
"resource": ""
} | ||
c25564 | train | // BackendService Management
// GetBackendService retrieves a backend by name. | {
"resource": ""
} | ||
c25565 | train | // UpdateBackendService applies the given BackendService as an update to an existing service. | {
"resource": ""
} | ||
c25566 | train | // CreateBackendService creates the given BackendService. | {
"resource": ""
} | ||
c25567 | train | // ListBackendServices lists all backend services in the project. | {
"resource": ""
} | ||
c25568 | train | // GetHealth returns the health of the BackendService identified by the given
// name, in the given instanceGroup. The instanceGroupLink is the fully
// qualified self link of an instance group. | {
"resource": ""
} | ||
c25569 | train | // Health Checks
// GetHTTPHealthCheck returns the given HTTPHealthCheck by name. | {
"resource": ""
} | ||
c25570 | train | // UpdateHTTPHealthCheck applies the given HTTPHealthCheck as an update. | {
"resource": ""
} | ||
c25571 | train | // CreateHTTPHealthCheck creates the given HTTPHealthCheck. | {
"resource": ""
} | ||
c25572 | train | // ListHTTPHealthChecks lists all HTTPHealthChecks in the project. | {
"resource": ""
} | ||
c25573 | train | // InstanceGroup Management
// CreateInstanceGroup creates an instance group with the given instances. It is the callers responsibility to add named ports. | {
"resource": ""
} | ||
c25574 | train | // RemoveInstancesFromInstanceGroup removes the given instances from the instance group. | {
"resource": ""
} | ||
c25575 | train | // AddPortToInstanceGroup adds a port to the given instance group. | {
"resource": ""
} | ||
c25576 | train | // CurrentNodeName is an implementation of Instances.CurrentNodeName | {
"resource": ""
} | ||
c25577 | train | // GetAllZones returns all the zones in which nodes are running | {
"resource": ""
} | ||
c25578 | train | // ListRoutes lists routes | {
"resource": ""
} | ||
c25579 | train | // GetZone gets a zone | {
"resource": ""
} | ||
c25580 | train | // DeleteDisk deletes a disk | {
"resource": ""
} | ||
c25581 | train | // AttachDisk attaches a disk | {
"resource": ""
} | ||
c25582 | train | // DetachDisk detaches a disk | {
"resource": ""
} | ||
c25583 | train | // DiskIsAttached checks if disk is attached | {
"resource": ""
} | ||
c25584 | train | // Scans all managed zones to return the GCE PD
// Prefer getDiskByName, if the zone can be established
// Return cloudprovider.ErrDiskNotFound if the given disk cannot be found in any zone | {
"resource": ""
} | ||
c25585 | train | // Converts a Disk resource to an AttachedDisk resource. | {
"resource": ""
} | ||
c25586 | train | // CreateDiskFromSnapshot create a disk from snapshot | {
"resource": ""
} | ||
c25587 | train | // DescribeSnapshot checks the status of a snapshot | {
"resource": ""
} | ||
c25588 | train | // FindSnapshot returns the found snapshots | {
"resource": ""
} | ||
c25589 | train | // DeleteSnapshot deletes a snapshot | {
"resource": ""
} | ||
c25590 | train | // CreateSnapshot creates a snapshot | {
"resource": ""
} | ||
c25591 | train | // ListClusters lists clusters | {
"resource": ""
} | ||
c25592 | train | // Gets the named instances, returning cloudprovider.ErrInstanceNotFound if any instance is not found | {
"resource": ""
} | ||
c25593 | train | // Gets the named instance, returning cloudprovider.ErrInstanceNotFound if the instance is not found | {
"resource": ""
} | ||
c25594 | train | // Set sets the named attribute to the provided bazel expression. | {
"resource": ""
} | ||
c25595 | train | // SetList sets the named attribute to the provided bazel expression list. | {
"resource": ""
} | ||
c25596 | train | // findBuildFile determines the name of a preexisting BUILD file, returning
// a default if no such file exists. | {
"resource": ""
} | ||
c25597 | train | // ReconcileRules reconciles, simplifies, and writes the rules for the specified package, adding
// additional dependency rules as needed. | {
"resource": ""
} | ||
c25598 | train | // RuleIsManaged returns whether the provided rule is managed by this tool,
// based on the tags set on the rule. | {
"resource": ""
} | ||
c25599 | train | // CloudProviders returns the name of all registered cloud providers in a
// string slice | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.