Documentation ¶
Index ¶
- func SortOSImagesByName(imgs []OS)
- type BootImage
- func (b BootImage) Download(ctx context.Context, target afero.File, c *http.Client, ...) (int64, error)
- func (b BootImage) DownloadMD5(ctx context.Context, target *afero.File, c *http.Client, ...) (string, error)
- func (b BootImage) GetName() string
- func (b BootImage) GetSize() int64
- func (b BootImage) GetSubPath() string
- func (b BootImage) HasMD5() bool
- type CacheEntities
- type CacheEntity
- type Config
- type Kernel
- func (k Kernel) Download(ctx context.Context, target afero.File, c *http.Client, ...) (int64, error)
- func (k Kernel) DownloadMD5(ctx context.Context, target *afero.File, c *http.Client, ...) (string, error)
- func (k Kernel) GetName() string
- func (k Kernel) GetSize() int64
- func (k Kernel) GetSubPath() string
- func (k Kernel) HasMD5() bool
- type LocalFile
- func (l LocalFile) Download(ctx context.Context, target afero.File, c *http.Client, ...) (int64, error)
- func (l LocalFile) DownloadMD5(ctx context.Context, target *afero.File, c *http.Client, ...) (string, error)
- func (l LocalFile) GetName() string
- func (l LocalFile) GetSize() int64
- func (l LocalFile) GetSubPath() string
- func (l LocalFile) HasMD5() bool
- type OS
- func (o OS) Download(ctx context.Context, target afero.File, c *http.Client, ...) (int64, error)
- func (o OS) DownloadMD5(ctx context.Context, target *afero.File, c *http.Client, ...) (string, error)
- func (o OS) GetName() string
- func (o OS) GetSize() int64
- func (o OS) GetSubPath() string
- func (o OS) HasMD5() bool
- func (o *OS) MajorMinor() (string, error)
- type OSImagesByOS
- type OSImagesByVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortOSImagesByName ¶
func SortOSImagesByName(imgs []OS)
Types ¶
type BootImage ¶ added in v0.1.2
func (BootImage) DownloadMD5 ¶ added in v0.1.2
func (BootImage) GetSubPath ¶ added in v0.1.2
type CacheEntities ¶ added in v0.1.2
type CacheEntities []CacheEntity
type CacheEntity ¶ added in v0.1.2
type CacheEntity interface { GetName() string GetSubPath() string GetSize() int64 HasMD5() bool DownloadMD5(ctx context.Context, target *afero.File, c *http.Client, s3downloader *s3manager.Downloader) (string, error) Download(ctx context.Context, target afero.File, c *http.Client, s3downloader *s3manager.Downloader) (int64, error) }
type Config ¶
type Config struct { CacheRootPath string `validate:"required"` KernelCacheEnabled bool `validate:"required"` BootImageCacheEnabled bool `validate:"required"` ImageCacheBindAddress string `validate:"required"` KernelCacheBindAddress string BootImageCacheBindAddress string MetalAPIEndpoint string `validate:"required"` MetalAPIHMAC string `validate:"required"` SyncSchedule string `validate:"required"` DryRun bool ExcludePaths []string MinImagesPerName int `validate:"required"` MaxImagesPerName int `validate:"required"` MaxCacheSize int64 `validate:"required"` ImageStore string `validate:"required"` ImageBucket string `validate:"required"` ExpirationGraceDays uint }
func (*Config) GetBootImageRootPath ¶ added in v0.1.2
func (*Config) GetImageRootPath ¶ added in v0.1.2
func (*Config) GetKernelRootPath ¶ added in v0.1.2
func (*Config) GetTmpDownloadPath ¶ added in v0.1.2
type Kernel ¶ added in v0.1.2
func (Kernel) DownloadMD5 ¶ added in v0.1.2
func (Kernel) GetSubPath ¶ added in v0.1.2
type LocalFile ¶ added in v0.1.2
func (LocalFile) DownloadMD5 ¶ added in v0.1.2
func (LocalFile) GetSubPath ¶ added in v0.1.2
type OS ¶
type OS struct { Name string Version *semver.Version ApiRef models.V1ImageResponse ImageRef s3.Object MD5Ref s3.Object BucketKey string BucketName string }
func (OS) DownloadMD5 ¶ added in v0.1.2
func (OS) GetSubPath ¶ added in v0.1.2
func (*OS) MajorMinor ¶
type OSImagesByOS ¶
type OSImagesByOS map[string]OSImagesByVersion
type OSImagesByVersion ¶
Click to show internal directories.
Click to hide internal directories.