in

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: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPath = errors.New("missing path in request")

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(s3client s3resource.S3Client) *Command

func (*Command) Run

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

type Params

type Params struct {
	Unpack       bool   `json:"unpack"`
	DownloadTags bool   `json:"download_tags"`
	SkipDownload string `json:"skip_download"`
}

type Request

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

type RequestURLProvider

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

func (*RequestURLProvider) GetURL

func (up *RequestURLProvider) GetURL(request Request, remotePath string) string

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