storage

package
v0.0.0-...-68a4de9 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexPrefixMetadataStorage = "metadata-storage-"
	MetadataLabelKeyNamespace  = "namespace"
	NamespaceFragmentUpload    = ".upload"
)
View Source
const (
	IndexLogsEventStorage = "logs-event-storage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	schema.Base
	Event *schema.Event `json:"event,omitempty"`
	File  *schema.File  `json:"file,omitempty"`
	// contains filtered or unexported fields
}

Event ...

func NewStorageEvent

func NewStorageEvent(eventType string, namespace string, file *schema.File) (*Event, error)

NewStorageEvent ...

func (*Event) ID

func (e *Event) ID() string

ID ...

func (*Event) Namespace

func (e *Event) Namespace() string

Namespace ...

func (*Event) String

func (e *Event) String() string

String returns a string representation of the Event.

type Metadata

type Metadata struct {
	schema.Base
	File *schema.File `json:"file,omitempty"`
	// contains filtered or unexported fields
}

Metadata ...

func NewMetadata

func NewMetadata(namespace string, file *schema.File) (*Metadata, error)

NewMetadata ...

func (*Metadata) ID

func (m *Metadata) ID() string

ID ...

func (*Metadata) Namespace

func (m *Metadata) Namespace() string

Namespace ...

func (*Metadata) String

func (m *Metadata) String() string

String returns a string representation of the Metadata.

func (*Metadata) ToMap

func (m *Metadata) ToMap() (map[string]any, error)

ToMap converts the Metadata fields and their values to a map.

Jump to

Keyboard shortcuts

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