Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BucketName = os.Getenv("REPO_ARCHIVE_BKT")
BucketName is the name of the google cloud repo
View Source
var PersisterProjectID = os.Getenv("GCP_PROJECT_ID")
PersisterProjectID is the google cloud project id
Functions ¶
func MakeArchiveName ¶
MakeArchiveName creates name to be used for archiving a cocooon code release
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver provides a structure that collects and object and saves using a Persister implementation
func NewArchiver ¶
NewArchiver creates a new archiver
type GStoragePersister ¶
type GStoragePersister struct {
// contains filtered or unexported fields
}
GStoragePersister defines a structure that implements the Persister interface for storing objects on google cloud storage.
func NewGStoragePersister ¶
func NewGStoragePersister(name string) (*GStoragePersister, error)
NewGStoragePersister creates a new google storage persister
func (*GStoragePersister) Commit ¶
func (g *GStoragePersister) Commit() error
Commit saves the object
type GitObject ¶
type GitObject struct {
// contains filtered or unexported fields
}
GitObject defines a structure for fetching a git object
func NewGitObject ¶
NewGitObject creates a git object
Click to show internal directories.
Click to hide internal directories.