github.com/openshift/installer@v1.4.17/pkg/asset/filefetcher.go (about)

     1  package asset
     2  
     3  //go:generate mockgen -source=./filefetcher.go -destination=./mock/filefetcher_generated.go -package=mock
     4  
     5  // FileFetcher fetches the asset files from disk.
     6  type FileFetcher interface {
     7  	// FetchByName returns the file with the given name.
     8  	FetchByName(string) (*File, error)
     9  	// FetchByPattern returns the files whose name match the given glob.
    10  	FetchByPattern(pattern string) ([]*File, error)
    11  }