s3

package
v0.1.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package s3 provides functions for pushing a file to s3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientWithCustomEndpoint

func CreateClientWithCustomEndpoint(ctx context.Context, svcConf *buconfig.ServiceConfig) (*s3.Client, error)

CreateClientWithCustomEndpoint returns an S3 client that loads the default AWS configuration. You may optionally specify `customS3Endpoint` for a custom S3 API endpoint.

func PushSnapshot

func PushSnapshot(ctx context.Context, conf buconfig.S3Info, s3c *s3.Client, s3Prefix, snapPath string) error

PushSnapshot will push the given file into s3.

Types

This section is empty.

Jump to

Keyboard shortcuts

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