git

package
v0.0.0-...-4c964c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL