mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
26 lines
629 B
Go
26 lines
629 B
Go
package s3
|
|
|
|
import (
|
|
"github.com/fleetdm/fleet/v4/server/config"
|
|
)
|
|
|
|
const softwareInstallersPrefix = "software-installers"
|
|
|
|
type SoftwareInstallerStore struct {
|
|
*commonFileStore
|
|
}
|
|
|
|
// NewSoftwareInstallerStore creates a new instance with the given S3 config.
|
|
func NewSoftwareInstallerStore(config config.S3Config) (*SoftwareInstallerStore, error) {
|
|
s3store, err := newS3store(config.SoftwareInstallersToInternalCfg())
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &SoftwareInstallerStore{
|
|
&commonFileStore{
|
|
s3store: s3store,
|
|
pathPrefix: softwareInstallersPrefix,
|
|
fileLabel: "software installer",
|
|
},
|
|
}, nil
|
|
}
|