s3

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package s3 provides a way to interact with AWS S3.

Index

Constants

View Source
const AWSDefaultRegion string = "us-east-1"

AWSDefaultRegion is the default AWS region.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	S3Client  s3iface.S3API
	STSClient stsiface.STSAPI
	// contains filtered or unexported fields
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(s3Scope scope.S3Scope) *Service

NewService returns a new service given the api clients.

func (*Service) Create

func (s *Service) Create(m *scope.MachineScope, data []byte) (string, error)

Create creates an object in the S3 bucket.

func (*Service) Delete

func (s *Service) Delete(m *scope.MachineScope) error

Delete deletes the object from the S3 bucket.

func (*Service) DeleteBucket

func (s *Service) DeleteBucket() error

DeleteBucket deletes the S3 bucket.

func (*Service) ReconcileBucket

func (s *Service) ReconcileBucket() error

ReconcileBucket reconciles the S3 bucket.

Directories

Path Synopsis
Package mock_s3iface provides a mock implementation of the s3iface.S3API interface Run go generate to regenerate this mock.
Package mock_s3iface provides a mock implementation of the s3iface.S3API interface Run go generate to regenerate this mock.
Package mock_stsiface provides a mock implementation for the STSAPI interface.
Package mock_stsiface provides a mock implementation for the STSAPI interface.

Jump to

Keyboard shortcuts

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