getter

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Download(string) (string, error)
	Cleanup()
}

type HttpGetter

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

HttpGetter It allows to load a function from http server Example: $ bruco https://github.com/ferama/bruco/raw/main/hack/examples/zipped/sentiment.zip

func NewHttpGetter

func NewHttpGetter() *HttpGetter

NewHttpGetter

func (*HttpGetter) Cleanup

func (g *HttpGetter) Cleanup()

func (*HttpGetter) Download

func (g *HttpGetter) Download(resourceURL string) (string, error)

Download

type S3Getter

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

S3Getter adds support for function loading from minio s3 It enables stuff like this: $ export AWS_ACCESS_KEY_ID=minioadmin $ export AWS_SECRET_ACCESS_KEY=minioadmins $ bruco s3://localhost:9000/bruco/sentiment.zip

func NewS3Getter

func NewS3Getter() *S3Getter

NewS3Getter builds a new s3getter object

func (*S3Getter) Cleanup

func (g *S3Getter) Cleanup()

func (*S3Getter) Download

func (g *S3Getter) Download(resourceURL string) (string, error)

Download

Jump to

Keyboard shortcuts

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