14 lines
428 B
Go
14 lines
428 B
Go
|
package remote
|
||
|
|
||
|
import "gitlab.sweetwater.com/it/devops/tools/gitlab-project-manager/internal/remotes/load"
|
||
|
|
||
|
// Any remote needs to be able to return
|
||
|
// the number of projects the user has access to and also
|
||
|
// stream all projects along with updates to channels
|
||
|
// provided by *load.ProgressInfo
|
||
|
type Remote interface {
|
||
|
Name() string
|
||
|
GetNumProjects(*RemoteQueryOpts) int
|
||
|
StreamProjects(*RemoteQueryOpts) *load.ProgressInfo
|
||
|
}
|