releasesrepo

package
v0.0.0-...-ccac745 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 15 Imported by: 4

Documentation

Index

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 (ReleaseVersionRec) String

func (r ReleaseVersionRec) String() string

func (ReleaseVersionRec) Tarball

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)
}

type Source

type Source struct {
	Full string
	// contains filtered or unexported fields
}

func (Source) AvatarURL

func (s Source) AvatarURL() string

func (Source) FromGithub

func (s Source) FromGithub() bool

func (Source) GithubURL

func (s Source) GithubURL() string

func (Source) IsBOSH

func (s Source) IsBOSH() bool

func (Source) IsCPI

func (s Source) IsCPI() bool

func (Source) Short

func (s Source) Short() string

Short returns 'abc/concourse' when source is 'github.com/abc/concourse'

func (Source) ShortName

func (s Source) ShortName() string

ShortName returns 'concourse' when source is 'github.com/abc/concourse' todo better naming

Jump to

Keyboard shortcuts

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