schema

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathSeparator = string('/')
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	BucketMeta
	Ts time.Time `json:"ts,omitzero" name:"ts" help:"Creation date of the bucket"`
}

func BucketFromAWS

func BucketFromAWS(bucket *s3types.Bucket) *Bucket

func (Bucket) String

func (b Bucket) String() string

type BucketMeta

type BucketMeta struct {
	Name   string  `json:"name,omitempty" name:"name" help:"Name of the bucket"`
	Region *string `json:"region,omitempty" name:"region" help:"Region of the bucket"`
}

func (BucketMeta) String

func (b BucketMeta) String() string

type Object

type Object struct {
	ObjectMeta
	Hash   *string   `json:"hash,omitempty" name:"hash" help:"Hash of the object"`
	Bucket string    `json:"bucket,omitempty" name:"bucket" help:"Bucket in which the object is stored"`
	Size   int64     `json:"size" name:"size" help:"Size of the object in bytes"`
	Ts     time.Time `json:"ts,omitzero" name:"ts" help:"Creation date of the object"`
}

func ObjectFromAWS

func ObjectFromAWS(object *s3types.Object, bucket string, meta url.Values) *Object

func (Object) String

func (o Object) String() string

type ObjectList

type ObjectList struct {
	Count uint64   `json:"count" name:"count" help:"Number of objects"`
	Body  []Object `json:"body,omitempty" name:"body" help:"List of objects"`
}

func (ObjectList) String

func (o ObjectList) String() string

type ObjectMeta

type ObjectMeta struct {
	Key  string `json:"key,omitempty" name:"key" help:"Object key"`
	Type string `json:"type,omitempty" name:"type" help:"Type of the object"`
}

func (ObjectMeta) String

func (o ObjectMeta) String() string

Jump to

Keyboard shortcuts

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