types

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	ID        string    `json:"id"`
	URL       string    `json:"url"`
	Timestamp time.Time `json:"timestamp"`
}

type SnapshotError added in v0.30.0

type SnapshotError struct {
	Message string `json:"message,omitempty"`
}

SnapshotError describes the error that occurred while taking the snapshot.

func (SnapshotError) Equals added in v0.30.0

func (err SnapshotError) Equals(other SnapshotError) bool

Equals checks if the snapshot error is identical to another snapshot error.

type Storage

type Storage interface {
	Target() string
	PutObject(ctx context.Context, body io.Reader) error
	GetObject(ctx context.Context) (io.ReadCloser, error)
	List(ctx context.Context) ([]Snapshot, error)
	Delete(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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