azurecdn

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage implements (github.com/gomods/athens/pkg/storage).Saver and also provides a function to fetch the location of a module

func New

func New(accountName, accountKey, containerName string) (*Storage, error)

New creates a new azure CDN saver

func (Storage) BaseURL

func (s Storage) BaseURL() *url.URL

BaseURL returns the base URL that stores all modules. It can be used in the "meta" tag redirect response to vgo.

For example:

<meta name="go-import" content="gomods.com/athens mod BaseURL()">

func (*Storage) Save

func (s *Storage) Save(ctx context.Context, module, version string, mod []byte, zip io.Reader, info []byte) error

Save implements the (github.com/gomods/athens/pkg/storage).Saver interface.

Jump to

Keyboard shortcuts

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