Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is the packages error type
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg Config, s *session.Session, v VaultClient, g Generator) *FileManager
func (*FileManager) PrivateUploader ¶
func (f *FileManager) PrivateUploader() S3Uploader
PrivateUploader returns the private S3 uploader
func (*FileManager) PublicUploader ¶
func (f *FileManager) PublicUploader() S3Uploader
PublicUploader returns the public S3 uploader
func (*FileManager) UploadPrivate ¶
type S3Uploader ¶
type S3Uploader interface { Get(key string) (io.ReadCloser, *int64, error) Upload(input *s3manager.UploadInput, options ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error) UploadWithPSK(input *s3manager.UploadInput, psk []byte) (*s3manager.UploadOutput, error) BucketName() string Checker(context.Context, *healthcheck.CheckState) error }
type VaultClient ¶
type VaultClient interface { WriteKey(path, key, value string) error Checker(context.Context, *healthcheck.CheckState) error }
Click to show internal directories.
Click to hide internal directories.