Documentation ¶
Index ¶
- type Handler
- func (handler *Handler) BucketRename(bucket string) string
- func (handler *Handler) GCPRequestSetup(request *http.Request) (s3.GCPClient, error)
- func (handler *Handler) GetConfig() *viper.Viper
- func (handler *Handler) GetConnection(key string) (s3.GCPClient, error)
- func (handler *Handler) GetContext() *context.Context
- func (handler *Handler) ReturnConnection(client s3.GCPClient, request *http.Request)
- func (handler *Handler) ReturnConnectionByKey(client s3.GCPClient, key string)
- func (handler *Handler) SetConfig(config *viper.Viper)
- func (handler *Handler) SetContext(context *context.Context)
- func (handler *Handler) SetGCPClientFromCreds(creds *string) (s3.GCPClient, error)
- func (handler *Handler) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { S3Client s3iface.S3API GCPClient func() (s3.GCPClient, error) Context *context.Context Config *viper.Viper GCPClientToBucket func(bucket string, client s3.GCPClient) s3.GCPBucket GCPBucketToObject func(name string, bucket s3.GCPBucket) s3.GCPObject GCPObjectToWriter func(object s3.GCPObject, ctx context.Context) s3.GCPObjectWriter GCPClientPerKey map[string]s3.GCPClient GCPClientPool map[string][]s3.GCPClient // contains filtered or unexported fields }
func NewHandler ¶
func (*Handler) BucketRename ¶
func (*Handler) GCPRequestSetup ¶
func (*Handler) GetConnection ¶
func (*Handler) GetContext ¶
func (*Handler) ReturnConnection ¶
func (*Handler) ReturnConnectionByKey ¶
func (*Handler) SetContext ¶
func (*Handler) SetGCPClientFromCreds ¶
Click to show internal directories.
Click to hide internal directories.