openshift/openshift.go
func (d *openshiftImageDestination) PutManifest(ctx context.Context, m []byte) error {
	manifestDigest, err := manifest.Digest(m)
	if err != nil {
		return err
	}
	d.imageStreamImageName = manifestDigest.String()

	return d.docker.PutManifest(ctx, m)
}
func (d *openshiftImageDestination) PutManifest(ctx context.Context, m []byte) error {
	manifestDigest, err := manifest.Digest(m)
	if err != nil {
		return err
	}
	d.imageStreamImageName = manifestDigest.String()

	return d.docker.PutManifest(ctx, m)
}
func ( d * openshiftImageDestination ) PutManifest ( ctx context . Context , m [ ] byte ) error { manifestDigest , err := manifest . Digest ( m ) if err != nil { return err } d . imageStreamImageName = manifestDigest . String ( ) return d . docker . PutManifest ( ctx , m ) }
// PutManifest writes manifest to the destination.
// FIXME? This should also receive a MIME type if known, to differentiate between schema versions.
// If the destination is in principle available, refuses this manifest type (e.g. it does not recognize the schema),
// but may accept a different manifest type, the returned error must be an ManifestTypeRejectedError.
PutManifest writes manifest to the destination . FIXME? This should also receive a MIME type if known to differentiate between schema versions . If the destination is in principle available refuses this manifest type ( e . g . it does not recognize the schema ) but may accept a different manifest type the returned error must be an ManifestTypeRejectedError .