badgestorer

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitPublicURL

func GitPublicURL(cfg Git) string

Types

type CDN

type CDN struct {
	Key            string
	Secret         string
	Region         string
	FileName       string
	BucketName     string
	Endpoint       string
	ForcePathStyle bool
}

type Git

type Git struct {
	Token      string
	Owner      string
	Repository string
	Branch     string
	FileName   string
}

type Storer

type Storer interface {
	Store(data []byte) (hasUpdated bool, err error)
}

func NewCDN

func NewCDN(cfg CDN) Storer

func NewFile

func NewFile(filename string) Storer

func NewGithub

func NewGithub(cfg Git) Storer

Jump to

Keyboard shortcuts

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