github.com/jdolitsky/cnab-go@v0.7.1-beta1/imagestore/imagestoremocks/store.go (about)

     1  package imagestoremocks
     2  
     3  import "github.com/pivotal/image-relocation/pkg/image"
     4  
     5  type MockStore struct {
     6  	AddStub  func(im string) (string, error)
     7  	PushStub func(image.Digest, image.Name, image.Name) error
     8  }
     9  
    10  func (i *MockStore) Add(im string) (string, error) {
    11  	return i.AddStub(im)
    12  }
    13  
    14  func (i *MockStore) Push(dig image.Digest, src image.Name, dst image.Name) error {
    15  	return i.PushStub(dig, src, dst)
    16  }