Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideGitServiceImpl, )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// Install ensures git is installed in the container.
Install(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)
// SetupCredentials sets the user's git credentials inside the container.
SetupCredentials(
ctx context.Context,
exec *devcontainer.Exec,
resolvedRepoDetails scm.ResolvedDetails,
) ([]byte, error)
// CloneCode clones the code and ensures devcontainer file is present.
CloneCode(
ctx context.Context,
exec *devcontainer.Exec,
resolvedRepoDetails scm.ResolvedDetails,
defaultBaseImage string,
) ([]byte, error)
}
func NewGitServiceImpl ¶
func NewGitServiceImpl() Service
func ProvideGitServiceImpl ¶
func ProvideGitServiceImpl() Service
type ServiceImpl ¶
type ServiceImpl struct {
}
func (*ServiceImpl) CloneCode ¶
func (g *ServiceImpl) CloneCode( ctx context.Context, exec *devcontainer.Exec, resolvedRepoDetails scm.ResolvedDetails, defaultBaseImage string, ) ([]byte, error)
func (*ServiceImpl) Install ¶
func (g *ServiceImpl) Install(ctx context.Context, exec *devcontainer.Exec) ([]byte, error)
func (*ServiceImpl) SetupCredentials ¶
func (g *ServiceImpl) SetupCredentials( ctx context.Context, exec *devcontainer.Exec, resolvedRepoDetails scm.ResolvedDetails, ) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.