s3

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package s3 implements a sidecred.StateBackend using AWS S3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client S3API, bucket string) sidecred.StateBackend

New returns a new sidecred.StateBackend for STS Credentials.

Types

type S3API

type S3API interface {
	GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)
	PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
}

S3API wraps the interface for the API and provides a mocked implementation.

func NewClient

func NewClient(sess *session.Session) S3API

NewClient returns a new client for S3API.

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