Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charms ¶
type Charms struct {
// contains filtered or unexported fields
}
Charms is the client desienged to interact with the s3 compatible object store hosted by the apiserver
func NewCharmsS3Client ¶
NewCharmsS3Client creates a client to interact with charm blobs stored on the apiserver's s3 comptabile object store.
type Logger ¶
type Logger interface { Errorf(message string, args ...interface{}) Warningf(message string, args ...interface{}) Infof(message string, args ...interface{}) Debugf(message string, args ...interface{}) Tracef(message string, args ...interface{}) }
Logger represents the logging methods called.
type S3Client ¶
type S3Client interface {
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}
S3Client represents the S3 client methods required by objectClient
type Session ¶
type Session interface {
GetObject(ctx context.Context, bucketName, objectName string) (io.ReadCloser, error)
}
Session represents the interface objectClient exports to interact with S3
func NewS3Client ¶
func NewS3Client(apiConn api.Connection, logger Logger) (Session, error)
NewS3Client creates a generic S3 client which Juju should use to drive it's object store requirements
Click to show internal directories.
Click to hide internal directories.