Documentation ¶
Index ¶
- type CRRepository
- func (r CRRepository) Find(source, version string) (ReleaseVersionRec, error)
- func (r CRRepository) FindAll(source string) ([]ReleaseVersionRec, error)
- func (r CRRepository) FindLatest(source string) (ReleaseVersionRec, error)
- func (r CRRepository) ListAll() ([]Source, error)
- func (r CRRepository) ListCurated() ([]ReleaseVersionRec, error)
- type CRVRepository
- type ReleaseVersionRec
- func (r ReleaseVersionRec) AsSource() Source
- func (r ReleaseVersionRec) AvatarURL() string
- func (r ReleaseVersionRec) Equals(other ReleaseVersionRec) bool
- func (r ReleaseVersionRec) Notes() (bhnotesrepo.NoteRec, bool, error)
- func (r ReleaseVersionRec) String() string
- func (r ReleaseVersionRec) Tarball() (bhreltarsrepo.ReleaseTarballRec, error)
- func (r ReleaseVersionRec) Validate() error
- func (r ReleaseVersionRec) Version() semiver.Version
- type ReleaseVersionRecSorting
- type ReleaseVersionsRepository
- type ReleasesRepository
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRRepository ¶
type CRRepository struct {
// contains filtered or unexported fields
}
func NewConcreteReleasesRepository ¶
func NewConcreteReleasesRepository( releasesDir string, releasesIndexDir string, notesRepo bhnotesrepo.NotesRepository, releaseTarsRepo bhreltarsrepo.ReleaseTarballsRepository, fs boshsys.FileSystem, logger boshlog.Logger, ) CRRepository
func (CRRepository) Find ¶
func (r CRRepository) Find(source, version string) (ReleaseVersionRec, error)
func (CRRepository) FindAll ¶
func (r CRRepository) FindAll(source string) ([]ReleaseVersionRec, error)
func (CRRepository) FindLatest ¶
func (r CRRepository) FindLatest(source string) (ReleaseVersionRec, error)
func (CRRepository) ListAll ¶
func (r CRRepository) ListAll() ([]Source, error)
func (CRRepository) ListCurated ¶
func (r CRRepository) ListCurated() ([]ReleaseVersionRec, error)
type CRVRepository ¶
type CRVRepository struct {
// contains filtered or unexported fields
}
func NewConcreteReleaseVersionsRepository ¶
func NewConcreteReleaseVersionsRepository( relVerFactory bhrelver.Factory, logger boshlog.Logger, ) CRVRepository
func (CRVRepository) Find ¶
func (r CRVRepository) Find(relVerRec ReleaseVersionRec) (bprel.Release, error)
type ReleaseVersionRec ¶
type ReleaseVersionRec struct { Source string VersionRaw string // contains filtered or unexported fields }
func (ReleaseVersionRec) AsSource ¶
func (r ReleaseVersionRec) AsSource() Source
AsSource returns Source object based on the Source string todo refactor to remove Source string
func (ReleaseVersionRec) AvatarURL ¶
func (r ReleaseVersionRec) AvatarURL() string
func (ReleaseVersionRec) Equals ¶
func (r ReleaseVersionRec) Equals(other ReleaseVersionRec) bool
func (ReleaseVersionRec) Notes ¶
func (r ReleaseVersionRec) Notes() (bhnotesrepo.NoteRec, bool, error)
func (ReleaseVersionRec) String ¶
func (r ReleaseVersionRec) String() string
func (ReleaseVersionRec) Tarball ¶
func (r ReleaseVersionRec) Tarball() (bhreltarsrepo.ReleaseTarballRec, error)
func (ReleaseVersionRec) Validate ¶
func (r ReleaseVersionRec) Validate() error
func (ReleaseVersionRec) Version ¶
func (r ReleaseVersionRec) Version() semiver.Version
Version returns parsed version todo non-memoized lazy loading is expensive
type ReleaseVersionRecSorting ¶
type ReleaseVersionRecSorting []ReleaseVersionRec
func (ReleaseVersionRecSorting) Len ¶
func (s ReleaseVersionRecSorting) Len() int
func (ReleaseVersionRecSorting) Less ¶
func (s ReleaseVersionRecSorting) Less(i, j int) bool
func (ReleaseVersionRecSorting) Swap ¶
func (s ReleaseVersionRecSorting) Swap(i, j int)
type ReleaseVersionsRepository ¶
type ReleaseVersionsRepository interface {
Find(ReleaseVersionRec) (bprel.Release, error)
}
type ReleasesRepository ¶
type ReleasesRepository interface { // todo return sources with ReleaseVersionRec ListCurated() ([]ReleaseVersionRec, error) ListAll() ([]Source, error) FindAll(source string) ([]ReleaseVersionRec, error) FindLatest(source string) (ReleaseVersionRec, error) Find(source, version string) (ReleaseVersionRec, error) }
Click to show internal directories.
Click to hide internal directories.