checkout

package
v0.0.0-...-8193d1f Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveExt = ".tar.gz"
View Source
const ArtifactExt = ".tar.gz"
View Source
const BuildExpressionJson = "buildexpression.json"
View Source
const BuildPlanJson = "buildplan.json"
View Source
const InstallerConfigJson = "installer_config.json"

Variables

View Source
var ErrNoOrg = errs.New("unable to get org name")

Functions

func CreateProjectFiles

func CreateProjectFiles(checkoutPath, cachePath, owner, name, branch, commitID, language string, portable bool) error

Types

type Archive

type Archive struct {
	Dir        string
	Namespace  *project.Namespaced
	Branch     string
	PlatformID strfmt.UUID
	BuildPlan  *buildplan.BuildPlan
}

func NewArchive

func NewArchive(archivePath string) (_ *Archive, rerr error)

NewArchive unpacks the given archive to a temporary location. The caller should invoke the `Cleanup()` method when finished with this archive.

func (*Archive) Cleanup

func (a *Archive) Cleanup() error

Cleanup should be called after the archive is no longer needed. Otherwise, its contents will remain on disk.

type Checkout

type Checkout struct {
	// contains filtered or unexported fields
}

Checkout will checkout the given platform project at the given path This includes cloning an associated repository and creating the activestate.yaml It does not activate any environment

func New

func New(repo git.Repository, prime primeable) *Checkout

func (*Checkout) Run

func (r *Checkout) Run(ns *project.Namespaced, branchName, cachePath, targetPath string, noClone, bareCheckout, portable bool) (_ string, rerr error)

type ErrAlreadyCheckedOut

type ErrAlreadyCheckedOut struct {
	Path string
}

func (ErrAlreadyCheckedOut) Error

func (e ErrAlreadyCheckedOut) Error() string

type ErrNoPermission

type ErrNoPermission struct {
	Path string
}

func (ErrNoPermission) Error

func (e ErrNoPermission) Error() string

Jump to

Keyboard shortcuts

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