metadata

package
v0.0.0-...-0c576d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 GetUploadId(event handler.HookEvent, resp hooks.HookResponse) (string, error)

func NewFromManifest

func NewFromManifest(manifest handler.MetaData) (validation.ConfigLocation, error)

func Uid

func Uid() string

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

type AzureMetadataAppender struct {
	ContainerClient *container.Client
	TusPrefix       string
}

func (*AzureMetadataAppender) Append

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

type ConfigIdentification struct {
	DataStreamID    string
	DataStreamRoute string
}

func (*ConfigIdentification) Path

func (c *ConfigIdentification) Path() string

type FileMetadataAppender

type FileMetadataAppender struct {
	Path string
}

func (*FileMetadataAppender) Append

type NoopAppender

type NoopAppender struct{}

func (*NoopAppender) Append

type PreCreateResponse

type PreCreateResponse struct {
	UploadId         string   `json:"upload_id"`
	ValidationErrors []string `json:"validation_errors"`
}

type SenderManifestVerification

type SenderManifestVerification struct {
	Configs *ConfigCache
}

func (*SenderManifestVerification) Verify

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL