_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c177700 | // OCI1FromComponents creates an OCI1 manifest instance from the supplied data. | |
c177701 | // newReference returns a dockerReference for a named reference. | |
c177702 | // tagOrDigest returns a tag or digest from the reference. | |
c177703 | // updateEmbeddedDockerReference handles the Docker reference embedded in Docker schema1 manifests. | |
c177704 | // isTTY returns true if the io.Writer is a file and a tty. | |
c177705 | // copyUpdatedConfigAndManifest updates the image per ic.manifestUpdates, if necessary,
// stores the resulting config and manifest to the destination, and returns the stored manifest. | |
c177706 | // 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 | |
c177707 | // copyConfig copies config.json, if any, from src to dest. | |
c177708 | // diffIDComputationGoroutine reads all input from layerStream, uncompresses using decompressor if necessary, and sends its digest, and status, if any, to dest. | |
c177709 | // computeDiffID reads all input from layerStream, uncompresses it using decompressor if necessary, and returns its digest. | |
c177710 | // compressGoroutine reads all input from src and writes its compressed equivalent to dest. | |
c177711 | // NewDockerClient initializes a new API client based on the passed SystemContext. | |
c177712 | // defaultPolicyPath returns a path to the default policy of the system. | |
c177713 | // NewPolicyFromFile returns a policy configured in the specified file. | |
c177714 | // NewPolicyFromBytes returns a policy parsed from the specified blob.
// Use this function instead of calling json.Unmarshal directly. | |
c177715 | // newPolicyRequirementFromJSON parses JSON data into a PolicyRequirement implementation. | |
c177716 | // newPRSignedBy returns a new prSignedBy if parameters are valid. | |
c177717 | // newPRSignedByKeyPath is NewPRSignedByKeyPath, except it returns the private type. | |
c177718 | // NewPRSignedByKeyPath returns a new "signedBy" PolicyRequirement using a KeyPath | |
c177719 | // newPRSignedByKeyData is NewPRSignedByKeyData, except it returns the private type. | |
c177720 | // NewPRSignedByKeyData returns a new "signedBy" PolicyRequirement using a KeyData | |
c177721 | // IsValid returns true iff kt is a recognized value | |
c177722 | // newPRSignedBaseLayer is NewPRSignedBaseLayer, except it returns the private type. | |
c177723 | // newPolicyReferenceMatchFromJSON parses JSON data into a PolicyReferenceMatch implementation. | |
c177724 | // newPRMExactReference is NewPRMExactReference, except it resturns the private type. | |
c177725 | // newPRMExactRepository is NewPRMExactRepository, except it resturns the private type. | |
c177726 | // newImageSource sets up an image for reading. | |
c177727 | // getBlobAndLayer reads the data blob or filesystem layer which matches the digest and size, if given. | |
c177728 | // 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. | |
c177729 | // PutManifest writes the manifest to the destination. | |
c177730 | // PutSignatures records the image's signatures for committing as a single data blob. | |
c177731 | // newImage creates an image that also knows its size | |
c177732 | // newImageSource returns an ImageSource for reading from an existing directory.
// newImageSource untars the file and saves it in a temp directory | |
c177733 | // LoadManifestDescriptor loads the manifest | |
c177734 | // Close removes resources associated with an initialized ImageSource, if any.
// Close deletes the temporary directory at dst | |
c177735 | // append adds s to the end of os, only if it is not included already. | |
c177736 | // isMultiImage returns true if img is a list of images | |
c177737 | // lockPath obtains the pathLock for path.
// The caller must call unlockPath eventually. | |
c177738 | // unlockPath releases the pathLock for path. | |
c177739 | // view returns runs the specified fn within a read-only transaction on the database. | |
c177740 | // update returns runs the specified fn within a read-write transaction on the database. | |
c177741 | // uncompressedDigest implements BlobInfoCache.UncompressedDigest within the provided read-only transaction. | |
c177742 | // appendReplacementCandiates creates prioritize.CandidateWithTime values for digest in scopeBucket, and returns the result of appending them to candidates. | |
c177743 | // 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 | |
c177744 | // createSignature creates a new signature of manifest using keyIdentity. | |
c177745 | // ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OCI ImageReference. | |
c177746 | // 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. | |
c177747 | // 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. | |
c177748 | // LoadManifestDescriptor loads the manifest descriptor to be used to retrieve the image name
// when pulling an image | |
c177749 | // blobPath returns a path for a blob within a directory using OCI image-layout conventions. | |
c177750 | // SignDockerManifest returns a signature for manifest as the specified dockerReference,
// using mech and keyIdentity. | |
c177751 | // VerifyDockerManifestSignature checks that unverifiedSignature uses expectedKeyIdentity to sign unverifiedManifest as expectedDockerReference,
// using mech. | |
c177752 | // newOpenshiftClient creates a new openshiftClient for the specified reference. | |
c177753 | // doRequest performs a correctly authenticated request to a specified path, and returns response body or an error object. | |
c177754 | // getImage loads the specified image object. | |
c177755 | // 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. | |
c177756 | // ensureImageIsResolved sets up s.docker and s.imageStreamImageName | |
c177757 | // newImageDestination creates a new ImageDestination for the specified reference. | |
c177758 | // newUntrustedSignature returns an untrustedSignature object with
// the specified primary contents and appropriate metadata. | |
c177759 | // UnmarshalJSON implements the json.Unmarshaler interface | |
c177760 | // verifyAndExtractSignature verifies that unverifiedSignature has been signed, and that its principial components
// match expected values, both as specified by rules, and returns it | |
c177761 | // 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. | |
c177762 | // getV1Registries transforms v1 registries in the config into an array of v2
// registries of type Registry. | |
c177763 | // getConfigPath returns the system-registries config path if specified.
// Otherwise, systemRegistriesConfPath is returned. | |
c177764 | // 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`. | |
c177765 | // Reads the global registry file from the filesystem. Returns a byte array. | |
c177766 | // Manifest overrides the UnparsedImage.Manifest to always use the fields which we have already fetched. | |
c177767 | // ConfigUpdate updates the image's default configuration and adds annotations
// which will be visible in source images created using this reference. | |
c177768 | // parseImageAndDockerReference converts an image and a reference string into two parsed entities, failing on any error and handling unidentified images. | |
c177769 | // parseDockerReferences converts two reference strings into parsed entities, failing on any error | |
c177770 | // ListNames returns a list of non deprecated transport names.
// Deprecated transports can be used, but are not presented to users. | |
c177771 | // NewReference returns an OSTree reference for a specified repo and image. | |
c177772 | // signaturePath returns a path for a signature within a ostree using our conventions. | |
c177773 | // 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. | |
c177774 | // SplitPathAndImage tries to split the provided OCI reference into the OCI path and image.
// Neither path nor image parts are validated at this stage. | |
c177775 | // ValidateOCIPath takes the OCI path and validates it. | |
c177776 | // ValidateScope validates a policy configuration scope for an OCI transport. | |
c177777 | // BlobInfoFromSchema2Descriptor returns a types.BlobInfo based on the input schema 2 descriptor. | |
c177778 | // Schema2FromManifest creates a Schema2 manifest instance from a manifest blob. | |
c177779 | // Schema2FromComponents creates an Schema2 manifest instance from the supplied data. | |
c177780 | // SetAuthentication stores the username and password in the auth.json file | |
c177781 | // RemoveAuthentication deletes the credentials stored in auth.json | |
c177782 | // RemoveAllAuthentication deletes all the credentials stored in auth.json | |
c177783 | // 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 | |
c177784 | // modifyJSON writes to auth.json if the dockerConfigFile has been updated | |
c177785 | // findAuthentication looks for auth of registry in path | |
c177786 | // NewDestination returns a tarfile.Destination for the specified io.Writer. | |
c177787 | // AddRepoTags adds the specified tags to the destination's repoTags. | |
c177788 | // writeLegacyLayerMetadata writes legacy VERSION and configuration files for all layers | |
c177789 | // sendSymlink sends a symlink into the tar stream. | |
c177790 | // sendBytes sends a path into the tar stream. | |
c177791 | // sendFile sends a file into the tar stream. | |
c177792 | // Commit finishes writing data to the underlying io.Writer.
// It is the caller's responsibility to close it, if necessary. | |
c177793 | // imageMatchesRepo returns true iff image.Names contains an element with the same repo as ref | |
c177794 | // 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. | |
c177795 | // Return a Transport object that defaults to using the same store that we used
// to build this reference object. | |
c177796 | // 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. | |
c177797 | // 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. | |
c177798 | // GzipDecompressor is a DecompressorFunc for the gzip compression algorithm. | |
c177799 | // Bzip2Decompressor is a DecompressorFunc for the bzip2 compression algorithm. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.