Versions in this module Expand all Collapse all v4 v4.0.1 May 22, 2018 Changes in this version + var DefaultDevPostRelease = semver.MustNewVersionSegmentFromString("dev.1") + var DefaultDevVersion = semver.MustNewVersionFromString("0+dev.0") + var DefaultFinalVersion = semver.MustNewVersionFromString("1") + type Blob struct + BlobstoreID string + Path string + SHA1 string + Size int64 + type BlobSorting []Blob + func (s BlobSorting) Len() int + func (s BlobSorting) Less(i, j int) bool + func (s BlobSorting) Swap(i, j int) + type BlobsDir interface + Blobs func() ([]Blob, error) + Init func() error + SyncBlobs func(numOfParallelWorkers int) error + TrackBlob func(string, io.ReadCloser) (Blob, error) + UntrackBlob func(string) error + UploadBlobs func() error + type BlobsDirReporter interface + BlobDownloadFinished func(path, blobID string, err error) + BlobDownloadStarted func(path string, size int64, blobID, sha1 string) + BlobUploadFinished func(path, blobID string, err error) + BlobUploadStarted func(path string, size int64, sha1 string) + type Config interface + Blobstore func() (string, map[string]interface{}, error) + Name func() (string, error) + SaveName func(string) error + type DigestBlobstore interface + CleanUp func(fileName string) (err error) + Create func(fileName string) (blobID string, digest boshcrypto.MultipleDigest, err error) + Delete func(blobId string) (err error) + Get func(blobID string, digest boshcrypto.Digest) (fileName string, err error) + Validate func() (err error) + type ErrBlobstore struct + func NewErrBlobstore(err error) ErrBlobstore + func (b ErrBlobstore) CleanUp(path string) error + func (b ErrBlobstore) Create(path string) (string, crypto.MultipleDigest, error) + func (b ErrBlobstore) Delete(blobID string) error + func (b ErrBlobstore) Get(blobID string, digest crypto.Digest) (string, error) + func (b ErrBlobstore) Validate() error + type FSBlobsDir struct + func NewFSBlobsDir(dirPath string, reporter BlobsDirReporter, blobstore boshblob.DigestBlobstore, ...) FSBlobsDir + func (d FSBlobsDir) Blobs() ([]Blob, error) + func (d FSBlobsDir) Init() error + func (d FSBlobsDir) SyncBlobs(parallel int) error + func (d FSBlobsDir) TrackBlob(path string, src io.ReadCloser) (Blob, error) + func (d FSBlobsDir) UntrackBlob(path string) error + func (d FSBlobsDir) UploadBlobs() error + type FSConfig struct + func NewFSConfig(publicPath, privatePath string, fs boshsys.FileSystem) FSConfig + func (c FSConfig) Blobstore() (string, map[string]interface{}, error) + func (c FSConfig) Name() (string, error) + func (c FSConfig) SaveName(name string) error + type FSGenerator struct + func NewFSGenerator(dirPath string, fs boshsys.FileSystem) FSGenerator + func (g FSGenerator) GenerateJob(name string) error + func (g FSGenerator) GeneratePackage(name string) error + type FSGitRepo struct + func NewFSGitRepo(dirPath string, runner boshsys.CmdRunner, fs boshsys.FileSystem) FSGitRepo + func (r FSGitRepo) Init() error + func (r FSGitRepo) LastCommitSHA() (string, error) + func (r FSGitRepo) MustNotBeDirty(force bool) (bool, error) + type FSReleaseDir struct + func NewFSReleaseDir(dirPath string, config Config, gitRepo GitRepo, blobsDir BlobsDir, ...) FSReleaseDir + func (d FSReleaseDir) BuildRelease(name string, version semver.Version, force bool) (boshrel.Release, error) + func (d FSReleaseDir) DefaultName() (string, error) + func (d FSReleaseDir) FinalizeRelease(release boshrel.Release, force bool) error + func (d FSReleaseDir) FindRelease(name string, version semver.Version) (boshrel.Release, error) + func (d FSReleaseDir) GenerateJob(name string) error + func (d FSReleaseDir) GeneratePackage(name string) error + func (d FSReleaseDir) Init(git bool) error + func (d FSReleaseDir) NextDevVersion(name string, timestamp bool) (semver.Version, error) + func (d FSReleaseDir) NextFinalVersion(name string) (semver.Version, error) + func (d FSReleaseDir) Reset() error + func (d FSReleaseDir) VendorPackage(pkg *boshpkg.Package) error + type FSReleaseIndex struct + func NewFSReleaseIndex(name string, dirPath string, reporter ReleaseIndexReporter, ...) FSReleaseIndex + func (i FSReleaseIndex) Add(manifest boshrelman.Manifest) error + func (i FSReleaseIndex) Contains(release boshrel.Release) (bool, error) + func (i FSReleaseIndex) LastVersion(name string) (*semver.Version, error) + func (i FSReleaseIndex) ManifestPath(name, version string) string + type GCSBlobstore struct + func NewGCSBlobstore(fs boshsys.FileSystem, uuidGen boshuuid.Generator, ...) GCSBlobstore + func (b GCSBlobstore) CleanUp(path string) error + func (b GCSBlobstore) Create(path string) (string, error) + func (b GCSBlobstore) Delete(blobID string) error + func (b GCSBlobstore) Get(blobID string) (string, error) + func (b GCSBlobstore) Validate() error + type Generator interface + GenerateJob func(string) error + GeneratePackage func(string) error + type GitRepo interface + Init func() error + LastCommitSHA func() (string, error) + MustNotBeDirty func(force bool) (dirty bool, err error) + type Provider struct + func NewProvider(indexReporter boshidx.Reporter, releaseIndexReporter ReleaseIndexReporter, ...) Provider + func (p Provider) NewFSBlobsDir(dirPath string) FSBlobsDir + func (p Provider) NewFSReleaseDir(dirPath string, parallel int) FSReleaseDir + func (p Provider) NewReleaseReader(dirPath string, parallel int) boshrel.BuiltReader + type ReleaseDir interface + BuildRelease func(name string, version semver.Version, force bool) (boshrel.Release, error) + DefaultName func() (string, error) + FinalizeRelease func(release boshrel.Release, force bool) error + FindRelease func(name string, version semver.Version) (boshrel.Release, error) + GenerateJob func(string) error + GeneratePackage func(string) error + Init func(bool) error + NextDevVersion func(name string, timestamp bool) (semver.Version, error) + NextFinalVersion func(name string) (semver.Version, error) + Reset func() error + VendorPackage func(*boshpkg.Package) error + type ReleaseIndex interface + Add func(boshrelman.Manifest) error + Contains func(boshrel.Release) (bool, error) + LastVersion func(name string) (*semver.Version, error) + ManifestPath func(name, version string) string + type ReleaseIndexReporter interface + ReleaseIndexAdded func(name, desc string, err error) + type S3Blobstore struct + func NewS3Blobstore(fs boshsys.FileSystem, uuidGen boshuuid.Generator, ...) S3Blobstore + func (b S3Blobstore) CleanUp(path string) error + func (b S3Blobstore) Create(path string) (string, error) + func (b S3Blobstore) Delete(blobID string) error + func (b S3Blobstore) Get(blobID string) (string, error) + func (b S3Blobstore) Validate() error Other modules containing this package gopkg.in/cloudfoundry/bosh-cli.v0 gopkg.in/cloudfoundry/bosh-cli.v2 gopkg.in/cloudfoundry/bosh-cli.v3 gopkg.in/cloudfoundry/bosh-cli.v5 gopkg.in/cloudfoundry/bosh-cli.v6