-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Johannes Dillmann <[email protected]>
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package fakes | ||
|
||
import ( | ||
"github.com/buildpacks/imgutil" | ||
"github.com/google/go-containerregistry/pkg/name" | ||
v1 "github.com/google/go-containerregistry/pkg/v1" | ||
) | ||
|
||
var _ imgutil.ImageIndex = ImageIndex{} | ||
|
||
type ImageIndex struct { | ||
Manifests []v1.Descriptor | ||
} | ||
|
||
// AddManifest implements imgutil.ImageIndex. | ||
func (i ImageIndex) AddManifest(image v1.Image) { | ||
panic("unimplemented") | ||
Check failure on line 17 in fakes/image_index.go GitHub Actions / test-and-build-windows
|
||
} | ||
|
||
// Annotations implements imgutil.ImageIndex. | ||
func (i ImageIndex) Annotations(digest name.Digest) (annotations map[string]string, err error) { | ||
panic("unimplemented") | ||
Check failure on line 22 in fakes/image_index.go GitHub Actions / test-and-build-windows
|
||
} | ||
|
||
// Architecture implements imgutil.ImageIndex. | ||
func (i ImageIndex) Architecture(digest name.Digest) (arch string, err error) { | ||
panic("unimplemented") | ||
Check failure on line 27 in fakes/image_index.go GitHub Actions / test-and-build-windows
|
||
} | ||
|
||
// DeleteDir implements imgutil.ImageIndex. | ||
func (i ImageIndex) DeleteDir() error { | ||
panic("unimplemented") | ||
} | ||
|
||
// Inspect implements imgutil.ImageIndex. | ||
func (i ImageIndex) Inspect() (string, error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// OS implements imgutil.ImageIndex. | ||
func (i ImageIndex) OS(digest name.Digest) (os string, err error) { | ||
panic("unimplemented") | ||
Check failure on line 42 in fakes/image_index.go GitHub Actions / test-and-build-windows
|
||
} | ||
|
||
// OSFeatures implements imgutil.ImageIndex. | ||
func (i ImageIndex) OSFeatures(digest name.Digest) (osFeatures []string, err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// OSVersion implements imgutil.ImageIndex. | ||
func (i ImageIndex) OSVersion(digest name.Digest) (osVersion string, err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// Push implements imgutil.ImageIndex. | ||
func (i ImageIndex) Push(ops ...imgutil.IndexOption) error { | ||
panic("unimplemented") | ||
Check failure on line 57 in fakes/image_index.go GitHub Actions / test-and-build-windows
|
||
} | ||
|
||
// RemoveManifest implements imgutil.ImageIndex. | ||
func (i ImageIndex) RemoveManifest(digest name.Digest) error { | ||
panic("unimplemented") | ||
} | ||
|
||
// SaveDir implements imgutil.ImageIndex. | ||
func (i ImageIndex) SaveDir() error { | ||
panic("unimplemented") | ||
} | ||
|
||
// SetAnnotations implements imgutil.ImageIndex. | ||
func (i ImageIndex) SetAnnotations(digest name.Digest, annotations map[string]string) (err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// SetArchitecture implements imgutil.ImageIndex. | ||
func (i ImageIndex) SetArchitecture(digest name.Digest, arch string) (err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// SetOS implements imgutil.ImageIndex. | ||
func (i ImageIndex) SetOS(digest name.Digest, os string) (err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// SetVariant implements imgutil.ImageIndex. | ||
func (i ImageIndex) SetVariant(digest name.Digest, osVariant string) (err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
// Variant implements imgutil.ImageIndex. | ||
func (i ImageIndex) Variant(digest name.Digest) (osVariant string, err error) { | ||
panic("unimplemented") | ||
} | ||
|
||
func (i ImageIndex) IndexManifest() (*v1.IndexManifest, error) { | ||
return &v1.IndexManifest{ | ||
Manifests: i.Manifests, | ||
}, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters