...

Source file src/github.com/redhat-developer/odo/pkg/registry/interface.go

Documentation: github.com/redhat-developer/odo/pkg/registry

     1  // package registry wraps various package level functions into a Client interface to be able to mock them
     2  package registry
     3  
     4  import (
     5  	"context"
     6  
     7  	devfilev1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
     8  	dfutil "github.com/devfile/library/v2/pkg/util"
     9  	"github.com/devfile/registry-support/registry-library/library"
    10  	"github.com/redhat-developer/odo/pkg/api"
    11  )
    12  
    13  type Client interface {
    14  	PullStackFromRegistry(registry string, stack string, destDir string, options library.RegistryOptions) error
    15  	DownloadFileInMemory(params dfutil.HTTPRequestParams) ([]byte, error)
    16  	DownloadStarterProject(starterProject *devfilev1.StarterProject, decryptedToken string, contextDir string, verbose bool) (bool, error)
    17  	GetDevfileRegistries(registryName string) ([]api.Registry, error)
    18  	ListDevfileStacks(ctx context.Context, registryName, devfileFlag, filterFlag string, detailsFlag bool, withDevfileContent bool) (DevfileStackList, error)
    19  }
    20  

View as plain text