api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure() *srv.Server

Types

type AddArchiveEntriesRequest

type AddArchiveEntriesRequest struct {
	Entries []archive.Entry `json:"entries"`
}

type ArchiveResponse

type ArchiveResponse struct {
	ID    string `json:"id"`
	State string `json:"state"`
	Type  string `json:"type"`
}

type BucketResponse

type BucketResponse struct {
	Name      string    `json:"name"`
	Objects   int64     `json:"objects"`
	Size      int64     `json:"size"`
	CreatedAt time.Time `json:"createdAt"`
}

type CompleteArchiveResult

type CompleteArchiveResult struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
	ETag   string `json:"etag"`
}

type CompleteMultipartUploadRequest

type CompleteMultipartUploadRequest struct {
	Parts []PartReference `json:"parts"`
}

type CompleteMultipartUploadResult

type CompleteMultipartUploadResult struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
	ETag   string `json:"etag"`
}

type CreateArchiveResult

type CreateArchiveResult struct {
	Bucket    string `json:"bucket"`
	Key       string `json:"key"`
	ArchiveId string `json:"archiveId"`
}

type CreateMultipartUploadResult

type CreateMultipartUploadResult struct {
	Bucket   string `json:"bucket"`
	Key      string `json:"key"`
	UploadId string `json:"uploadId"`
}

type DeleteObjectsRequest

type DeleteObjectsRequest struct {
	Objects []ObjectReference `json:"objects"`
}

func (DeleteObjectsRequest) Validate

func (r DeleteObjectsRequest) Validate() error

type DeleteResult

type DeleteResult struct {
	Key     string    `json:"key"`
	Deleted bool      `json:"deleted"`
	Error   *ec.Error `json:"error,omitempty"`
}

type DeleteResults

type DeleteResults struct {
	Results []DeleteResult `json:"results"`
}

type ListBucketResponse

type ListBucketResponse struct {
	Buckets     []BucketResponse `json:"buckets"`
	IsTruncated bool             `json:"isTruncated"`
}

type ListObjectsResponse

type ListObjectsResponse struct {
	IsTruncated    bool             `json:"isTruncated"`
	Objects        []ObjectResponse `json:"objects"`
	Name           string           `json:"name"`
	MaxKeys        int              `json:"maxKeys"`
	KeyCount       int              `json:"keyCount"`
	StartAfter     *string          `json:"startAfter,omitempty"`
	CommonPrefixes []string         `json:"commonPrefixes,omitempty"`
}

type NonceResponse

type NonceResponse struct {
	Nonce     string    `json:"nonce"`
	ExpiresAt time.Time `json:"expiresAt"`
}

type ObjectReference

type ObjectReference struct {
	Key string `json:"key"`
}

type ObjectResponse

type ObjectResponse struct {
	Key         string    `json:"key"`
	ContentType string    `json:"contentType"`
	ETag        string    `json:"etag"`
	Size        int64     `json:"size"`
	CreatedAt   time.Time `json:"createdAt"`
}

type PartReference

type PartReference struct {
	ETag       string `json:"etag"`
	PartNumber int    `json:"partNumber"`
}

Jump to

Keyboard shortcuts

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