Documentation
¶
Index ¶
- Constants
- func GetUploadId(event handler.HookEvent, resp hooks.HookResponse) (string, error)
- func NewFromManifest(manifest handler.MetaData) (validation.ConfigLocation, error)
- func Uid() string
- func WithPreCreateManifestTransforms(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
- func WithUploadId(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
- type Appender
- type AzureMetadataAppender
- type ConfigCache
- type ConfigIdentification
- type FileMetadataAppender
- type NoopAppender
- type PreCreateResponse
- type SenderManifestVerification
Constants ¶
View Source
const ErrNoUploadId = "no upload ID defined"
View Source
const FilenameSuffixUploadId = "upload_id"
View Source
const FolderStructureDate = "date_YYYY_MM_DD"
View Source
const FolderStructureRoot = "root"
Variables ¶
This section is empty.
Functions ¶
func GetUploadId ¶
func NewFromManifest ¶
func NewFromManifest(manifest handler.MetaData) (validation.ConfigLocation, error)
func WithPreCreateManifestTransforms ¶
func WithPreCreateManifestTransforms(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
func WithUploadId ¶
func WithUploadId(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
Types ¶
type Appender ¶
type Appender interface {
Append(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
}
type AzureMetadataAppender ¶
func (*AzureMetadataAppender) Append ¶
func (aa *AzureMetadataAppender) Append(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
type ConfigCache ¶
type ConfigCache struct {
sync.Map
Loader validation.ConfigLoader
}
var Cache *ConfigCache
func (*ConfigCache) GetConfig ¶
func (c *ConfigCache) GetConfig(ctx context.Context, key string) (*validation.ManifestConfig, error)
func (*ConfigCache) SetConfig ¶
func (c *ConfigCache) SetConfig(key any, config *validation.ManifestConfig)
type ConfigIdentification ¶
func (*ConfigIdentification) Path ¶
func (c *ConfigIdentification) Path() string
type FileMetadataAppender ¶
type FileMetadataAppender struct {
Path string
}
func (*FileMetadataAppender) Append ¶
func (fa *FileMetadataAppender) Append(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
type NoopAppender ¶
type NoopAppender struct{}
func (*NoopAppender) Append ¶
func (na *NoopAppender) Append(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
type PreCreateResponse ¶
type SenderManifestVerification ¶
type SenderManifestVerification struct {
Configs *ConfigCache
}
func (*SenderManifestVerification) Verify ¶
func (v *SenderManifestVerification) Verify(event *handler.HookEvent, resp hooks.HookResponse) (hooks.HookResponse, error)
Click to show internal directories.
Click to hide internal directories.