s3

package
v0.0.0-...-2fa529b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package s3 implements an HTTP provider for solving the HTTP-01 challenge using AWS S3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProvider

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

HTTPProvider implements ChallengeProvider for `http-01` challenge.

func NewHTTPProvider

func NewHTTPProvider(config config.S3Client) (*HTTPProvider, error)

NewHTTPProvider returns a HTTPProvider instance with a configured s3 bucket and aws session. Credentials must be passed in the environment variables.

func (*HTTPProvider) CleanUp

func (s *HTTPProvider) CleanUp(domain, token, keyAuth string) error

CleanUp removes the file created for the challenge.

func (*HTTPProvider) Client

func (s *HTTPProvider) Client() *s3.Client

func (*HTTPProvider) Present

func (s *HTTPProvider) Present(domain, token, keyAuth string) error

Present makes the token available at `HTTP01ChallengePath(token)` by creating a file in the given s3 bucket.

Jump to

Keyboard shortcuts

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