imgsource

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebDavAuth is the parameter name for the autorization token
	WebDavAuth = "Authorization"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source interface {
	Get(ctx context.Context, path string) (image.Image, error)
}

Source defines the interface for image sources

type WebDav

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

WebDav implements the Source interface for webdav services

func NewWebDavSource

func NewWebDavSource(cfg config.WebDavSource) WebDav

NewWebDavSource creates a new webdav instance.

func (WebDav) Get

func (s WebDav) Get(ctx context.Context, file string) (image.Image, error)

Get downloads the file from a webdav service

Jump to

Keyboard shortcuts

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