_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c177700
test
// OCI1FromComponents creates an OCI1 manifest instance from the supplied data.
{ "resource": "" }
c177701
test
// newReference returns a dockerReference for a named reference.
{ "resource": "" }
c177702
test
// tagOrDigest returns a tag or digest from the reference.
{ "resource": "" }
c177703
test
// updateEmbeddedDockerReference handles the Docker reference embedded in Docker schema1 manifests.
{ "resource": "" }
c177704
test
// isTTY returns true if the io.Writer is a file and a tty.
{ "resource": "" }
c177705
test
// copyUpdatedConfigAndManifest updates the image per ic.manifestUpdates, if necessary, // stores the resulting config and manifest to the destination, and returns the stored manifest.
{ "resource": "" }
c177706
test
// createProgressBar creates a mpb.Bar in pool. Note that if the copier's reportWriter // is ioutil.Discard, the progress bar's output will be discarded
{ "resource": "" }
c177707
test
// copyConfig copies config.json, if any, from src to dest.
{ "resource": "" }
c177708
test
// diffIDComputationGoroutine reads all input from layerStream, uncompresses using decompressor if necessary, and sends its digest, and status, if any, to dest.
{ "resource": "" }
c177709
test
// computeDiffID reads all input from layerStream, uncompresses it using decompressor if necessary, and returns its digest.
{ "resource": "" }
c177710
test
// compressGoroutine reads all input from src and writes its compressed equivalent to dest.
{ "resource": "" }
c177711
test
// NewDockerClient initializes a new API client based on the passed SystemContext.
{ "resource": "" }
c177712
test
// defaultPolicyPath returns a path to the default policy of the system.
{ "resource": "" }
c177713
test
// NewPolicyFromFile returns a policy configured in the specified file.
{ "resource": "" }
c177714
test
// NewPolicyFromBytes returns a policy parsed from the specified blob. // Use this function instead of calling json.Unmarshal directly.
{ "resource": "" }
c177715
test
// newPolicyRequirementFromJSON parses JSON data into a PolicyRequirement implementation.
{ "resource": "" }
c177716
test
// newPRSignedBy returns a new prSignedBy if parameters are valid.
{ "resource": "" }
c177717
test
// newPRSignedByKeyPath is NewPRSignedByKeyPath, except it returns the private type.
{ "resource": "" }
c177718
test
// NewPRSignedByKeyPath returns a new "signedBy" PolicyRequirement using a KeyPath
{ "resource": "" }
c177719
test
// newPRSignedByKeyData is NewPRSignedByKeyData, except it returns the private type.
{ "resource": "" }
c177720
test
// NewPRSignedByKeyData returns a new "signedBy" PolicyRequirement using a KeyData
{ "resource": "" }
c177721
test
// IsValid returns true iff kt is a recognized value
{ "resource": "" }
c177722
test
// newPRSignedBaseLayer is NewPRSignedBaseLayer, except it returns the private type.
{ "resource": "" }
c177723
test
// newPolicyReferenceMatchFromJSON parses JSON data into a PolicyReferenceMatch implementation.
{ "resource": "" }
c177724
test
// newPRMExactReference is NewPRMExactReference, except it resturns the private type.
{ "resource": "" }
c177725
test
// newPRMExactRepository is NewPRMExactRepository, except it resturns the private type.
{ "resource": "" }
c177726
test
// newImageSource sets up an image for reading.
{ "resource": "" }
c177727
test
// getBlobAndLayer reads the data blob or filesystem layer which matches the digest and size, if given.
{ "resource": "" }
c177728
test
// computeID computes a recommended image ID based on information we have so far. If // the manifest is not of a type that we recognize, we return an empty value, indicating // that since we don't have a recommendation, a random ID should be used if one needs // to be allocated.
{ "resource": "" }
c177729
test
// PutManifest writes the manifest to the destination.
{ "resource": "" }
c177730
test
// PutSignatures records the image's signatures for committing as a single data blob.
{ "resource": "" }
c177731
test
// newImage creates an image that also knows its size
{ "resource": "" }
c177732
test
// newImageSource returns an ImageSource for reading from an existing directory. // newImageSource untars the file and saves it in a temp directory
{ "resource": "" }
c177733
test
// LoadManifestDescriptor loads the manifest
{ "resource": "" }
c177734
test
// Close removes resources associated with an initialized ImageSource, if any. // Close deletes the temporary directory at dst
{ "resource": "" }
c177735
test
// append adds s to the end of os, only if it is not included already.
{ "resource": "" }
c177736
test
// isMultiImage returns true if img is a list of images
{ "resource": "" }
c177737
test
// lockPath obtains the pathLock for path. // The caller must call unlockPath eventually.
{ "resource": "" }
c177738
test
// unlockPath releases the pathLock for path.
{ "resource": "" }
c177739
test
// view returns runs the specified fn within a read-only transaction on the database.
{ "resource": "" }
c177740
test
// update returns runs the specified fn within a read-write transaction on the database.
{ "resource": "" }
c177741
test
// uncompressedDigest implements BlobInfoCache.UncompressedDigest within the provided read-only transaction.
{ "resource": "" }
c177742
test
// appendReplacementCandiates creates prioritize.CandidateWithTime values for digest in scopeBucket, and returns the result of appending them to candidates.
{ "resource": "" }
c177743
test
// indexExists checks whether the index location specified in the OCI reference exists. // The implementation is opinionated, since in case of unexpected errors false is returned
{ "resource": "" }
c177744
test
// createSignature creates a new signature of manifest using keyIdentity.
{ "resource": "" }
c177745
test
// ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OCI ImageReference.
{ "resource": "" }
c177746
test
// NewReference returns an OCI reference for a directory and a image. // // We do not expose an API supplying the resolvedDir; we could, but recomputing it // is generally cheap enough that we prefer being confident about the properties of resolvedDir.
{ "resource": "" }
c177747
test
// getIndex returns a pointer to the index references by this ociReference. If an error occurs opening an index nil is returned together // with an error.
{ "resource": "" }
c177748
test
// LoadManifestDescriptor loads the manifest descriptor to be used to retrieve the image name // when pulling an image
{ "resource": "" }
c177749
test
// blobPath returns a path for a blob within a directory using OCI image-layout conventions.
{ "resource": "" }
c177750
test
// SignDockerManifest returns a signature for manifest as the specified dockerReference, // using mech and keyIdentity.
{ "resource": "" }
c177751
test
// VerifyDockerManifestSignature checks that unverifiedSignature uses expectedKeyIdentity to sign unverifiedManifest as expectedDockerReference, // using mech.
{ "resource": "" }
c177752
test
// newOpenshiftClient creates a new openshiftClient for the specified reference.
{ "resource": "" }
c177753
test
// doRequest performs a correctly authenticated request to a specified path, and returns response body or an error object.
{ "resource": "" }
c177754
test
// getImage loads the specified image object.
{ "resource": "" }
c177755
test
// convertDockerImageReference takes an image API DockerImageReference value and returns a reference we can actually use; // currently OpenShift stores the cluster-internal service IPs here, which are unusable from the outside.
{ "resource": "" }
c177756
test
// ensureImageIsResolved sets up s.docker and s.imageStreamImageName
{ "resource": "" }
c177757
test
// newImageDestination creates a new ImageDestination for the specified reference.
{ "resource": "" }
c177758
test
// newUntrustedSignature returns an untrustedSignature object with // the specified primary contents and appropriate metadata.
{ "resource": "" }
c177759
test
// UnmarshalJSON implements the json.Unmarshaler interface
{ "resource": "" }
c177760
test
// verifyAndExtractSignature verifies that unverifiedSignature has been signed, and that its principial components // match expected values, both as specified by rules, and returns it
{ "resource": "" }
c177761
test
// RewriteReference will substitute the provided reference `prefix` to the // endpoints `location` from the `ref` and creates a new named reference from it. // The function errors if the newly created reference is not parsable.
{ "resource": "" }
c177762
test
// getV1Registries transforms v1 registries in the config into an array of v2 // registries of type Registry.
{ "resource": "" }
c177763
test
// getConfigPath returns the system-registries config path if specified. // Otherwise, systemRegistriesConfPath is returned.
{ "resource": "" }
c177764
test
// GetRegistries loads and returns the registries specified in the config. // Note the parsed content of registry config files is cached. For reloading, // use `InvalidateCache` and re-call `GetRegistries`.
{ "resource": "" }
c177765
test
// Reads the global registry file from the filesystem. Returns a byte array.
{ "resource": "" }
c177766
test
// Manifest overrides the UnparsedImage.Manifest to always use the fields which we have already fetched.
{ "resource": "" }
c177767
test
// ConfigUpdate updates the image's default configuration and adds annotations // which will be visible in source images created using this reference.
{ "resource": "" }
c177768
test
// parseImageAndDockerReference converts an image and a reference string into two parsed entities, failing on any error and handling unidentified images.
{ "resource": "" }
c177769
test
// parseDockerReferences converts two reference strings into parsed entities, failing on any error
{ "resource": "" }
c177770
test
// ListNames returns a list of non deprecated transport names. // Deprecated transports can be used, but are not presented to users.
{ "resource": "" }
c177771
test
// NewReference returns an OSTree reference for a specified repo and image.
{ "resource": "" }
c177772
test
// signaturePath returns a path for a signature within a ostree using our conventions.
{ "resource": "" }
c177773
test
// ValidateImageName returns nil if the image name is empty or matches the open-containers image name specs. // In any other case an error is returned.
{ "resource": "" }
c177774
test
// SplitPathAndImage tries to split the provided OCI reference into the OCI path and image. // Neither path nor image parts are validated at this stage.
{ "resource": "" }
c177775
test
// ValidateOCIPath takes the OCI path and validates it.
{ "resource": "" }
c177776
test
// ValidateScope validates a policy configuration scope for an OCI transport.
{ "resource": "" }
c177777
test
// BlobInfoFromSchema2Descriptor returns a types.BlobInfo based on the input schema 2 descriptor.
{ "resource": "" }
c177778
test
// Schema2FromManifest creates a Schema2 manifest instance from a manifest blob.
{ "resource": "" }
c177779
test
// Schema2FromComponents creates an Schema2 manifest instance from the supplied data.
{ "resource": "" }
c177780
test
// SetAuthentication stores the username and password in the auth.json file
{ "resource": "" }
c177781
test
// RemoveAuthentication deletes the credentials stored in auth.json
{ "resource": "" }
c177782
test
// RemoveAllAuthentication deletes all the credentials stored in auth.json
{ "resource": "" }
c177783
test
// readJSONFile unmarshals the authentications stored in the auth.json file and returns it // or returns an empty dockerConfigFile data structure if auth.json does not exist // if the file exists and is empty, readJSONFile returns an error
{ "resource": "" }
c177784
test
// modifyJSON writes to auth.json if the dockerConfigFile has been updated
{ "resource": "" }
c177785
test
// findAuthentication looks for auth of registry in path
{ "resource": "" }
c177786
test
// NewDestination returns a tarfile.Destination for the specified io.Writer.
{ "resource": "" }
c177787
test
// AddRepoTags adds the specified tags to the destination's repoTags.
{ "resource": "" }
c177788
test
// writeLegacyLayerMetadata writes legacy VERSION and configuration files for all layers
{ "resource": "" }
c177789
test
// sendSymlink sends a symlink into the tar stream.
{ "resource": "" }
c177790
test
// sendBytes sends a path into the tar stream.
{ "resource": "" }
c177791
test
// sendFile sends a file into the tar stream.
{ "resource": "" }
c177792
test
// Commit finishes writing data to the underlying io.Writer. // It is the caller's responsibility to close it, if necessary.
{ "resource": "" }
c177793
test
// imageMatchesRepo returns true iff image.Names contains an element with the same repo as ref
{ "resource": "" }
c177794
test
// Resolve the reference's name to an image ID in the store, if there's already // one present with the same name or ID, and return the image.
{ "resource": "" }
c177795
test
// Return a Transport object that defaults to using the same store that we used // to build this reference object.
{ "resource": "" }
c177796
test
// Return a name with a tag, prefixed with the graph root and driver name, to // disambiguate between images which may be present in multiple stores and // share only their names.
{ "resource": "" }
c177797
test
// Also accept policy that's tied to the combination of the graph root and // driver name, to apply to all images stored in the Store, and to just the // graph root, in case we're using multiple drivers in the same directory for // some reason.
{ "resource": "" }
c177798
test
// GzipDecompressor is a DecompressorFunc for the gzip compression algorithm.
{ "resource": "" }
c177799
test
// Bzip2Decompressor is a DecompressorFunc for the bzip2 compression algorithm.
{ "resource": "" }