wrapper

package
v0.59.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFilename added in v0.59.1

func FormatFilename(filename, suffix string) string

FormatFilename prepares a filename for S3: - removes the filepath - adds a suffix if it exists

Types

type Client

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

Client is the wrapper around google's go-github client

func NewClient

func NewClient(region string) (Client, error)

NewClient returns a client

func (Client) UpsertFile

func (c Client) UpsertFile(filename, bucket, s3FilenameSuffix string, pdfBytes []byte) error

UpsertFile uploads or replaces a file on s3

type Wrapper

type Wrapper interface {
	// UpsertFile inserts or replaces a file in s3 if it doesn't exist
	UpsertFile(string, string, string, []byte) error
}

Wrapper is the wrapper interface that allows the playwright client to be pluggable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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