Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
FileStorage backend.
func NewFileStorage ¶ added in v0.4.0
func NewFileStorage(conf FileStorageConfig) *FileStorage
NewFileStorage initializes a new file storage backend.
func (*FileStorage) Load ¶
func (s *FileStorage) Load() (repository.Repositories, error)
Load gomodbump repos from storage.
func (*FileStorage) Save ¶
func (s *FileStorage) Save(repos repository.Repositories) error
Save gomodbump repos to storage.
type FileStorageConfig ¶ added in v0.4.0
type FileStorageConfig struct {
Filename string `yam:"filename"`
}
FileStorageConfig configuration of file storage.
type S3Storage ¶ added in v0.4.0
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage backend.
func NewS3Storage ¶ added in v0.4.0
func NewS3Storage(conf S3StorageConfig) (*S3Storage, error)
NewS3Storage initializes a new S3 storage backend.
func (*S3Storage) Load ¶ added in v0.4.0
func (s *S3Storage) Load() (repository.Repositories, error)
Load gomodbump repos from storage.
func (*S3Storage) Save ¶ added in v0.4.0
func (s *S3Storage) Save(repos repository.Repositories) error
Save gomodbump repos to storage.
type S3StorageConfig ¶ added in v0.4.0
type S3StorageConfig struct { Region string `yaml:"region"` Bucketname string `yaml:"bucketname"` Filename string `yam:"filename"` }
S3StorageConfig configuration of AWS S3 file storage.
Click to show internal directories.
Click to hide internal directories.