out

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrObjectVersioningNotEnabled = errors.New("object versioning not enabled")

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(stderr io.Writer, s3client s3resource.S3Client) *Command

func (*Command) Run

func (command *Command) Run(sourceDir string, request Request) (Response, error)

type Params

type Params struct {
	From        string `json:"from"`
	File        string `json:"file"`
	To          string `json:"to"`
	Acl         string `json:"acl"`
	ContentType string `json:"content_type"`
}

type Request

type Request struct {
	Source s3resource.Source `json:"source"`
	Params Params            `json:"params"`
}

type Response

type Response struct {
	Version  s3resource.Version        `json:"version"`
	Metadata []s3resource.MetadataPair `json:"metadata"`
}

Jump to

Keyboard shortcuts

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