Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoDefaultBranch = errors.New("no default branch")
)
View Source
var WireSet = wire.NewSet( ProvideSCM, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type CodeRepositoryRequest ¶
type CodeRepositoryRequest struct {
URL string `json:"url"`
}
type CodeRepositoryResponse ¶
type SCM ¶
type SCM interface { // RepoNameAndDevcontainerConfig fetches repository name & devcontainer config file from the given repo and branch. RepoNameAndDevcontainerConfig( ctx context.Context, gitspaceConfig *types.GitspaceConfig, ) (string, *types.DevcontainerConfig, error) // CheckValidCodeRepo checks if the current URL is a valid and accessible code repo, // input can be connector info, user token etc. CheckValidCodeRepo(ctx context.Context, request CodeRepositoryRequest) (*CodeRepositoryResponse, error) }
func ProvideSCM ¶
func ProvideSCM() SCM
Click to show internal directories.
Click to hide internal directories.