Documentation ¶
Index ¶
- Constants
- type Git
- func (g *Git) CommitAndPush(ctx context.Context, gp models.InfraRepoLocalDir, message string) (*models.InfraRepoLocalDir, error)
- func (g *Git) CreateFiles(ctx context.Context, gp models.InfraRepoLocalDir, files ...models.File) error
- func (g *Git) DeleteFiles(ctx context.Context, gp models.InfraRepoLocalDir, files ...models.File) error
- func (g *Git) ForceClone(ctx context.Context, infraTarget models.InfraRepoTarget) (models.InfraRepoLocalDir, error)
- func (g *Git) WithCredential(credential models.GitCredential) error
Constants ¶
View Source
const (
BaseDir = "/tmp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) CommitAndPush ¶
func (g *Git) CommitAndPush(ctx context.Context, gp models.InfraRepoLocalDir, message string) (*models.InfraRepoLocalDir, error)
func (*Git) CreateFiles ¶
func (*Git) DeleteFiles ¶
func (*Git) ForceClone ¶
func (g *Git) ForceClone(ctx context.Context, infraTarget models.InfraRepoTarget) (models.InfraRepoLocalDir, error)
func (*Git) WithCredential ¶
func (g *Git) WithCredential(credential models.GitCredential) error
Click to show internal directories.
Click to hide internal directories.