gitshallow

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOp

func GetOp() ops.RegisterableOp

Types

type GitShallowActivityWrapper

type GitShallowActivityWrapper struct{}

GitShallowActivityWrapper implements the RegisterableOp interface

func NewGitShallowActivity

func NewGitShallowActivity() *GitShallowActivityWrapper

NewGitShallowActivity creates a new git shallow clone activity that implements RegisterableOp

func (*GitShallowActivityWrapper) Execute

Execute runs the activity with provided configuration and inputs

func (*GitShallowActivityWrapper) GetMetadata

func (a *GitShallowActivityWrapper) GetMetadata() ops.OpMetadata

GetMetadata returns activity metadata for registration

type GitShallowCloneInput

type GitShallowCloneInput struct {
	SourceDir  string `json:"sourceDir"`
	TargetDir  string `json:"targetDir"`
	CommitHash string `json:"commitHash"`
}

GitShallowCloneInput represents the input parameters for the GitShallowClone activity

type GitShallowCloneOutput

type GitShallowCloneOutput struct {
	ClonedPath string `json:"clonedPath"`
}

GitShallowCloneOutput represents the output of the GitShallowClone activity

func GitShallowClone

func GitShallowClone(ctx context.Context, input GitShallowCloneInput) (*GitShallowCloneOutput, error)

GitShallowClone performs a shallow clone of a local git repository to another directory This is a activity that can be invoked as part of recipe workflows

type GitShallowInput

type GitShallowInput struct {
	SourceDir  string `json:"source_dir" default:"{{ context.environment.worktree_path }}" validate:"required,dir"` // Required: path to source git repository
	TargetDir  string `json:"target_dir" validate:"required"`                                                       // Required: path where to clone
	CommitHash string `json:"commit_hash" validate:"required,hexadecimal,min=7,max=40"`                             // Required: commit hash to checkout
}

GitShallowInput defines the input for git shallow clone activities - ALL fields MUST have json tags

type GitShallowOutput

type GitShallowOutput struct {
	ClonedPath string `json:"cloned_path"` // Path to the cloned repository
}

GitShallowOutput defines the output from git shallow clone activities - ALL fields MUST have json tags

Jump to

Keyboard shortcuts

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