_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c25600 | train | // GetBlockCapacityByte returns capacity in bytes of a block device.
// fullPath is the pathname of block device. | {
"resource": ""
} | ||
c25601 | train | // CreateLocalPVSpec returns a PV spec that can be used for PV creation | {
"resource": ""
} | ||
c25602 | train | // GetVolumeConfigFromConfigMap gets volume configuration from given configmap. | {
"resource": ""
} | ||
c25603 | train | // VolumeConfigToConfigMapData converts volume config to configmap data. | {
"resource": ""
} | ||
c25604 | train | // ConfigMapDataToVolumeConfig converts configmap data to volume config. | {
"resource": ""
} | ||
c25605 | train | // LoadProvisionerConfigs loads all configuration into a string and unmarshal it into ProvisionerConfiguration struct.
// The configuration is stored in the configmap which is mounted as a volume. | {
"resource": ""
} | ||
c25606 | train | // SetupClient created client using either in-cluster configuration or if KUBECONFIG environment variable is specified then using that config. | {
"resource": ""
} | ||
c25607 | train | // GenerateMountName generates a volumeMount.name for pod spec, based on volume configuration. | {
"resource": ""
} | ||
c25608 | train | // GetVolumeMode check volume mode of given path. | {
"resource": ""
} | ||
c25609 | train | // Delete removes the directory that was created by Provision backing the given
// PV and removes its export from the NFS server. | {
"resource": ""
} | ||
c25610 | train | // NewDigitalOceanProvisioner creates a new DigitalOcean provisioner | {
"resource": ""
} | ||
c25611 | train | // getAccessModes returns access modes iscsi volume supported. | {
"resource": ""
} | ||
c25612 | train | // getFirstAvailableLun gets first available Lun. | {
"resource": ""
} | ||
c25613 | train | // volDestroy removes calls vol_destroy targetd API to remove volume. | {
"resource": ""
} | ||
c25614 | train | // exportDestroy calls export_destroy targetd API to remove export of volume. | {
"resource": ""
} | ||
c25615 | train | // volCreate calls vol_create targetd API to create a volume. | {
"resource": ""
} | ||
c25616 | train | // exportCreate calls export_create targetd API to create an export of volume. | {
"resource": ""
} | ||
c25617 | train | // exportList lists calls export_list targetd API to get export objects. | {
"resource": ""
} | ||
c25618 | train | // walkSource walks the source tree recursively from pkgPath, adding
// any BUILD files to v.newRules to be formatted.
//
// If AddSourcesRules is enabled in the kazel config, then we additionally add
// package-sources and recursive all-srcs filegroups rules to every BUILD file.
//
// Returns the list of children all-... | {
"resource": ""
} | ||
c25619 | train | // NewNetworkV2 creates a new Network V2 endpoint | {
"resource": ""
} | ||
c25620 | train | // NewComputeV2 creates a new Compute V2 endpoint | {
"resource": ""
} | ||
c25621 | train | // OperationPending checks status, makes sure we're not in error state | {
"resource": ""
} | ||
c25622 | train | // AttachDisk attaches specified cinder volume to the compute running kubelet | {
"resource": ""
} | ||
c25623 | train | // DeleteVolume deletes the specified volume | {
"resource": ""
} | ||
c25624 | train | // GetAttachmentDiskPath retrieves device path of attached volume to the compute running kubelet, as known by cinder | {
"resource": ""
} | ||
c25625 | train | // NewPopulator returns a Populator object to update the PV cache | {
"resource": ""
} | ||
c25626 | train | // IsDir checks if the given path is a directory | {
"resource": ""
} | ||
c25627 | train | // ReadDir returns a list all the files under the given directory | {
"resource": ""
} | ||
c25628 | train | // DeleteContents deletes all the contents under the given directory | {
"resource": ""
} | ||
c25629 | train | // GetFsCapacityByte returns capacity in bytes about a mounted filesystem.
// fullPath is the pathname of any file within the mounted filesystem. Capacity
// returned here is total capacity. | {
"resource": ""
} | ||
c25630 | train | // NewFakeVolumeUtil returns a VolumeUtil object for use in unit testing | {
"resource": ""
} | ||
c25631 | train | // ReadDir returns the list of all files under the given directory | {
"resource": ""
} | ||
c25632 | train | // DeleteContents removes all the contents under the given directory | {
"resource": ""
} | ||
c25633 | train | // GetFsCapacityByte returns capacity in byte about a mounted filesystem. | {
"resource": ""
} | ||
c25634 | train | // GetBlockCapacityByte returns the space in the specified block device. | {
"resource": ""
} | ||
c25635 | train | // AddNewDirEntries adds the given files to the current directory listing
// This is only for testing | {
"resource": ""
} | ||
c25636 | train | // GetSupportedVolumeFromPVSpec gets supported volume from PV spec | {
"resource": ""
} | ||
c25637 | train | // GetSupportedVolumeFromSnapshotDataSpec gets supported volume from snapshot data spec | {
"resource": ""
} | ||
c25638 | train | // UnmarshalJSON unmarshalls json data | {
"resource": ""
} | ||
c25639 | train | // CreateSnapshot from the specified volume | {
"resource": ""
} | ||
c25640 | train | // DeleteSnapshot deletes the specified snapshot | {
"resource": ""
} | ||
c25641 | train | // FindSnapshot finds snapshot by metadata | {
"resource": ""
} | ||
c25642 | train | // ReadCfg reads and unmarshals the specified json file into a Cfg struct. | {
"resource": ""
} | ||
c25643 | train | // findOpenAPI searches for all packages under root that request OpenAPI. It
// returns the go import paths. It does not follow symlinks. | {
"resource": ""
} | ||
c25644 | train | // NewRBDProvisioner creates a Provisioner that provisions Ceph RBD PVs backed by Ceph RBD images. | {
"resource": ""
} | ||
c25645 | train | // getAccessModes returns access modes RBD volume supported. | {
"resource": ""
} | ||
c25646 | train | // parsePVSecret retrives secret value for a given namespace and name. | {
"resource": ""
} | ||
c25647 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSElasticBlockStoreVolumeSnapshotSource. | {
"resource": ""
} | ||
c25648 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CinderVolumeSnapshotSource. | {
"resource": ""
} | ||
c25649 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCEPersistentDiskSnapshotSource. | {
"resource": ""
} | ||
c25650 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlusterVolumeSnapshotSource. | {
"resource": ""
} | ||
c25651 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathVolumeSnapshotSource. | {
"resource": ""
} | ||
c25652 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshot. | {
"resource": ""
} | ||
c25653 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotCondition. | {
"resource": ""
} | ||
c25654 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotCopy. | {
"resource": ""
} | ||
c25655 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotData. | {
"resource": ""
} | ||
c25656 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataCondition. | {
"resource": ""
} | ||
c25657 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataCopy. | {
"resource": ""
} | ||
c25658 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataList. | {
"resource": ""
} | ||
c25659 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataListCopy. | {
"resource": ""
} | ||
c25660 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataSource. | {
"resource": ""
} | ||
c25661 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataSpec. | {
"resource": ""
} | ||
c25662 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDataStatus. | {
"resource": ""
} | ||
c25663 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotList. | {
"resource": ""
} | ||
c25664 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotListCopy. | {
"resource": ""
} | ||
c25665 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSpec. | {
"resource": ""
} | ||
c25666 | train | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotStatus. | {
"resource": ""
} | ||
c25667 | train | // GetLoadBalancer gets the status of the load balancer | {
"resource": ""
} | ||
c25668 | train | // GetLoadBalancer gets a load balancer | {
"resource": ""
} | ||
c25669 | train | //GetMayaClusterIP returns maya-apiserver IP address | {
"resource": ""
} | ||
c25670 | train | // CreateVolume to create the Vsm through a API call to m-apiserver | {
"resource": ""
} | ||
c25671 | train | // ListVolume to get the info of Vsm through a API call to m-apiserver | {
"resource": ""
} | ||
c25672 | train | // NewEFSProvisioner creates an AWS EFS volume provisioner | {
"resource": ""
} | ||
c25673 | train | // CreatePV will create a PersistentVolume | {
"resource": ""
} | ||
c25674 | train | // DeletePV will delete a PersistentVolume | {
"resource": ""
} | ||
c25675 | train | // NewFakeAPIUtil returns an APIUtil object that can be used for unit testing | {
"resource": ""
} | ||
c25676 | train | // CreatePV will add the PV to the created list and cache | {
"resource": ""
} | ||
c25677 | train | // DeletePV will delete the PV from the created list and cache, and also add it to the deleted list | {
"resource": ""
} | ||
c25678 | train | // GetAndResetCreatedPVs returns createdPVs and resets the map
// This is only for testing | {
"resource": ""
} | ||
c25679 | train | // GetAndResetDeletedPVs returns createdPVs and resets the map
// This is only for testing | {
"resource": ""
} | ||
c25680 | train | // CreateJob mocks job create method. | {
"resource": ""
} | ||
c25681 | train | // DeleteJob mocks delete jon method. | {
"resource": ""
} | ||
c25682 | train | // Return a list of instances matching regex string. | {
"resource": ""
} | ||
c25683 | train | // Gets the mountDevice already assigned to the volume, or assigns an unused mountDevice.
// If the volume is already assigned, this will return the existing mountDevice with alreadyAttached=true.
// Otherwise the mountDevice is assigned by finding the first available mountDevice, and it is returned with alreadyAttache... | {
"resource": ""
} | ||
c25684 | train | // Gets the full information about this volume from the EC2 API | {
"resource": ""
} | ||
c25685 | train | // waitForAttachmentStatus polls until the attachment status is the expected value
// On success, it returns the last attachment state. | {
"resource": ""
} | ||
c25686 | train | // Deletes the EBS disk | {
"resource": ""
} | ||
c25687 | train | // Gets the awsInstance with for the node with the specified nodeName, or the 'self' instance if nodeName == "" | {
"resource": ""
} | ||
c25688 | train | // GetVolumeLabels implements Volumes.GetVolumeLabels | {
"resource": ""
} | ||
c25689 | train | // DisksAreAttached checks whether disks are attached | {
"resource": ""
} | ||
c25690 | train | // CreateSnapshot creates an EBS volume snapshot | {
"resource": ""
} | ||
c25691 | train | // DeleteSnapshot deletes an EBS volume snapshot | {
"resource": ""
} | ||
c25692 | train | // DescribeSnapshot returns the status of the snapshot | {
"resource": ""
} | ||
c25693 | train | // FindSnapshot returns the found snapshot | {
"resource": ""
} | ||
c25694 | train | // Retrieves the specified security group from the AWS API, or returns nil if not found | {
"resource": ""
} | ||
c25695 | train | // Makes sure the security group ingress is exactly the specified permissions
// Returns true if and only if changes were made
// The security group must already exist | {
"resource": ""
} | ||
c25696 | train | // Returns the first security group for an instance, or nil
// We only create instances with one security group, so we don't expect multiple security groups.
// However, if there are multiple security groups, we will choose the one tagged with our cluster filter.
// Otherwise we will return an error. | {
"resource": ""
} | ||
c25697 | train | // Returns the instance with the specified ID | {
"resource": ""
} | ||
c25698 | train | // Returns the instance with the specified node name
// Like findInstanceByNodeName, but returns error if node not found | {
"resource": ""
} | ||
c25699 | train | // NewGlusterfsProvisioner creates a new glusterfs simple provisioner | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.