cloudfront

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeHTTPWithSSL    = "https"
	SchemeHTTPWithoutSSL = "http"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CFStorage

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

func New

func New(cfg *Config) *CFStorage
func (c *CFStorage) GetCLink(path string) (cLink string)

func (*CFStorage) GetURL

func (c *CFStorage) GetURL(cLink string, options ...interface{}) string

func (*CFStorage) Remove

func (c *CFStorage) Remove(cLink string) (err error)

func (*CFStorage) Store

func (c *CFStorage) Store(filePath, path string) (cLink string, err error)
func (c *CFStorage) StoreByCLink(filePath, cLink string) (err error)

type Config

type Config struct {
	StorageKey   string
	DomainName   string
	CFPrefix     string
	NoSSL        bool
	SignURLs     bool
	StorageCtl   core.Storage
	PrivateKeyID string
	PrivateKey   string
}

Jump to

Keyboard shortcuts

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