s3

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 6 Imported by: 0

README

#nibbler-s3

Some Nibbler config values are required:

  • s3.accesskey (S3_ACCESSKEY env var)
  • s3.secret (S3_SECRET env var)
  • s3.endpoint (S3_ENDPOINT env var)
  • s3.region (S3_REGION env var)

This was tested using Digital Ocean Spaces, but it should work just as well with AWS S3

Usage

Upon init, the extension will have an initialized S3 client as the "S3" property

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	nibbler.NoOpExtension

	S3 *s3.S3
}

func (*Extension) Init

func (s *Extension) Init(app *nibbler.Application) error

type S3CredentialProvider

type S3CredentialProvider struct {
	Config *nibbler.Configuration
}

func (S3CredentialProvider) IsExpired

func (s S3CredentialProvider) IsExpired() bool

IsExpired returns if the credentials are no longer valid, and need to be retrieved.

func (S3CredentialProvider) Retrieve

func (s S3CredentialProvider) Retrieve() (credentials.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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