mirror of
https://github.com/drone-plugins/github-actions
synced 2026-03-07 10:01:33 +01:00
* feat: [CI-15681]: Enhance Drone GitHub Actions Plugin with Workflow Output Parsing * formatted parse_test.go * Removed 'drone/plugin' dependencies to reduce the binary size and copied the relevant code to this repo * Removed windows code * Updated plugin.go
27 lines
527 B
Go
27 lines
527 B
Go
// Copyright 2022 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package cloner provides support for cloning git repositories.
|
|
package cloner
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type (
|
|
// Params provides clone params.
|
|
Params struct {
|
|
Repo string
|
|
Ref string
|
|
Sha string
|
|
Dir string // Target clone directory.
|
|
}
|
|
|
|
// Cloner clones a repository.
|
|
Cloner interface {
|
|
// Clone a repository.
|
|
Clone(context.Context, Params) error
|
|
}
|
|
)
|