Documentation ¶
Index ¶
Constants ¶
View Source
const ( GETAction = "GET" PUTAction = "PUT" DELETEAction = "DELETE" )
View Source
const HookNumberOfRedirect = 20
HookNumberOfRedirect will contains the number of redirect that a hook can follow.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketHookBody ¶
type GetInputMetadata ¶
type GetInputMetadata struct { IfModifiedSince *time.Time IfMatch string IfNoneMatch string IfUnmodifiedSince *time.Time Range string }
GetInputMetadata Get input metadata.
type HookBody ¶
type HookBody struct { InputMetadata interface{} `json:"inputMetadata,omitempty"` OutputMetadata interface{} `json:"outputMetadata,omitempty"` Target *TargetHookBody `json:"target"` Action string `json:"action"` RequestPath string `json:"requestPath"` }
type Manager ¶
type Manager interface { // ManageGETHooks will manage GET hooks. ManageGETHooks(ctx context.Context, targetKey, requestPath string, inputMetadata *GetInputMetadata, s3Metadata *S3Metadata) // ManageGETHooks will manage PUT hooks. ManagePUTHooks(ctx context.Context, targetKey, requestPath string, inputMetadata *PutInputMetadata, s3Metadata *S3Metadata) // ManageGETHooks will manage DELETE hooks. ManageDELETEHooks(ctx context.Context, targetKey, requestPath string, s3Metadata *S3Metadata) // Load will load all webhooks clients. Load() error }
Manager client manager.
type OutputMetadataHookBody ¶
type PutInputMetadata ¶
PutInputMetadata Put input metadata.
type S3Metadata ¶
S3Metadata S3 Metadata.
type TargetHookBody ¶
type TargetHookBody struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.