Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEncryptedKey = errors.New("private keys with passphrases are not supported")
View Source
var RetriesOnErrorWriteVersion = 3
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type GCSDriver ¶
type GCSDriver struct {
InitialVersion semver.Version
Servicer IOServicer
BucketName string
Key string
}
type GCSIOServicer ¶
type GCSIOServicer struct {
JSONCredentials string
}
func (*GCSIOServicer) GetObject ¶
func (s *GCSIOServicer) GetObject(bucketName, objectName string) (io.ReadCloser, error)
func (*GCSIOServicer) PutObject ¶
func (s *GCSIOServicer) PutObject(bucketName, objectName string) (io.WriteCloser, error)
type GitDriver ¶
type GitDriver struct {
InitialVersion semver.Version
URI string
Branch string
PrivateKey string
Username string
Password string
File string
GitUser string
CommitMessage string
SkipSSLVerification bool
}
type IOServicer ¶
type IOServicer interface {
GetObject(bucketName, objectName string) (io.ReadCloser, error)
PutObject(bucketName, objectName string) (io.WriteCloser, error)
}
type S3Driver ¶
type S3Driver struct {
InitialVersion semver.Version
Svc Servicer
BucketName string
Key string
ServerSideEncryption string
}
type Servicer ¶
type Servicer interface {
GetObject(context.Context, *s3.GetObjectInput, ...func(*s3.Options)) (*s3.GetObjectOutput, error)
PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}
Click to show internal directories.
Click to hide internal directories.