retriever

package
v0.0.0-...-b5c0664 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitGopper

type GitGopper struct {
	gop.Gopper
	// contains filtered or unexported fields
}
GitGopper is an implementation of Gopper that will fall back to a git retriever if the file can't be found in

its data source

func NewGopper

func NewGopper(username, token, bucketname, fstype, plantuml string) (*GitGopper, error)

NewGopper returns a GitGopper for a config; This Gopper can use an os filesystem, memory filesystem or a gcs bucket

func (GitGopper) Retrieve

func (a GitGopper) Retrieve(resource string) ([]byte, bool, error)
Retrieve attempts to retrieve a file from GitGopper.Gopper, if this fails then it will fall back to using a

git retriever

Jump to

Keyboard shortcuts

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