stemsrepo

package
v0.0.0-...-1eff689 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Stemcell

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

func NewS3Stemcell

func NewS3Stemcell(key, etag, sha1 string, sha256 string, size uint64, lastModified, url string) *S3Stemcell

func (S3Stemcell) AgentType

func (f S3Stemcell) AgentType() string

func (S3Stemcell) DiskFormat

func (f S3Stemcell) DiskFormat() string

func (S3Stemcell) HvName

func (f S3Stemcell) HvName() string

func (S3Stemcell) InfName

func (f S3Stemcell) InfName() string

func (S3Stemcell) IsDeprecated

func (f S3Stemcell) IsDeprecated() bool

func (S3Stemcell) IsForChina

func (f S3Stemcell) IsForChina() bool

func (S3Stemcell) IsLight

func (f S3Stemcell) IsLight() bool

func (S3Stemcell) MD5

func (f S3Stemcell) MD5() string

func (S3Stemcell) MustHaveSHA1

func (f S3Stemcell) MustHaveSHA1() bool

func (S3Stemcell) Name

func (f S3Stemcell) Name() string

func (S3Stemcell) Notes

func (f S3Stemcell) Notes() (bhnotesrepo.NoteRec, bool, error)

func (S3Stemcell) OSName

func (f S3Stemcell) OSName() string

func (S3Stemcell) OSVersion

func (f S3Stemcell) OSVersion() string

func (S3Stemcell) SHA1

func (f S3Stemcell) SHA1() string

func (S3Stemcell) SHA256

func (f S3Stemcell) SHA256() string

func (S3Stemcell) Size

func (f S3Stemcell) Size() uint64

func (S3Stemcell) URL

func (f S3Stemcell) URL() string

func (S3Stemcell) UpdatedAt

func (f S3Stemcell) UpdatedAt() string

func (S3Stemcell) Version

func (f S3Stemcell) Version() semiver.Version

type S3StemcellsRepository

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

func NewS3StemcellsRepository

func NewS3StemcellsRepository(
	legacyStemcellsIndexDir string,
	stemcellsIndexDirs []string,
	notesRepo bhnotesrepo.NotesRepository,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) S3StemcellsRepository

func (S3StemcellsRepository) FindAll

func (r S3StemcellsRepository) FindAll(name string) ([]Stemcell, error)

type Stemcell

type Stemcell interface {
	Name() string

	Version() semiver.Version
	UpdatedAt() string

	Size() uint64
	MD5() string
	SHA1() string // could be empty
	SHA256() string

	InfName() string    // e.g. aws
	HvName() string     // e.g. kvm
	DiskFormat() string // e.g. raw

	OSName() string    // e.g. Ubuntu
	OSVersion() string // e.g. Trusty

	IsLight() bool
	IsForChina() bool

	URL() string

	Notes() (bhnotesrepo.NoteRec, bool, error)
}

type StemcellsRepository

type StemcellsRepository interface {
	FindAll(string) ([]Stemcell, error)
}

Jump to

Keyboard shortcuts

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