types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetAsset(name string, writer io.Writer) error
	PushAsset(name string, reader io.Reader) error

	PushVersion(v Version) error
	GetCurrentVersion() (Version, error)
}

Provider implementations contains the necessary functions to deploy and download assets from it

type Version

type Version struct {
	Name string
	Time time.Time
}

Version is composed of a unique name (identifier) and a timestamp

func DeserializeVersion

func DeserializeVersion(b []byte) (v Version, err error)

DeserializeVersion unmarshal the version stored in b

func (Version) Serialize

func (v Version) Serialize() ([]byte, error)

Serialize marshals v

Jump to

Keyboard shortcuts

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