uploader

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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 Client

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

func NewClient

func NewClient(config Config) *Client

func (Client) ComputeAWSObjectKey

func (c Client) ComputeAWSObjectKey(exactGlob string) (string, string, error)

func (Client) UploadFile

func (c Client) UploadFile(exactGlob string) error

type Config

type Config struct {
	FilepathPrefix string
	SourcesDir     string

	Transport transport
}

type PrefixFetcher

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

func NewPrefixFetcher

func NewPrefixFetcher(fetcher S3PrefixFetcher, productSlug string) PrefixFetcher

func (*PrefixFetcher) GetPrefix

func (pf *PrefixFetcher) GetPrefix() (string, error)

type S3PrefixFetcher

type S3PrefixFetcher interface {
	S3PrefixForProductSlug(productSlug string) (string, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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