openers

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvVar = Config{
		Endpoint:        "AWS_ENDPOINT",
		AccessKeyID:     "AWS_ACCESS_KEY_ID",
		SecretAccessKey: "AWS_SECRET_ACCESS_KEY",
	}
)

Functions

func ListOpenersWithDescription

func ListOpenersWithDescription() []string

func Open

func Open(s string, lock bool) (io.ReadCloser, error)

Types

type Config

type Config struct {
	// mc stores scheme://endpoint as "url"
	Endpoint        string `json:"url"`
	AccessKeyID     string `json:"accessKey"`
	SecretAccessKey string `json:"secretKey"`
}

type Opener

type Opener interface {
	Open(s string, lock bool) (io.ReadCloser, error)
	Evaluate(s string) float32 // score the ability to open
	Name() string
	Description() string
}

type OpenerCollection

type OpenerCollection struct {
	Name string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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