commons

package
v0.0.0-...-2c27dae Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionAsUnixTimeInMillis

func GetVersionAsUnixTimeInMillis(t time.Time) int64

func GetVersionAsUnixTimeInNano

func GetVersionAsUnixTimeInNano(t time.Time) int64

func GetVersionAsUnixTimeInSeconds

func GetVersionAsUnixTimeInSeconds(t time.Time) int64

func InitLocalManifest

func InitLocalManifest(manifestFilename string) error

func LoadLocalManifest

func LoadLocalManifest(path string) (*abstract.Asset, error)

func SerializeAsset

func SerializeAsset(asset *abstract.Asset) ([]byte, error)

Types

type AddCmd

type AddCmd struct {
	DestinationPath string `arg:"-d,required"`
	LocalPath       string `arg:"-l,required"`
}

type CheckCmd

type CheckCmd struct {
	LocalPath string `arg:"-l,required"`
}

type DeleteCmd

type DeleteCmd struct {
	DestinationPath string `arg:"-d,required"`
	Version         string `arg:"-v,required"`
}

type InitCmd

type InitCmd struct {
	DestinationPath   string  `arg:"-d,required"`
	LocalManifestPath *string `arg:"-f"`
}

type LatestCmd

type LatestCmd struct {
	DestinationPath string `arg:"-d,required"`
}

type MvcProvider

type MvcProvider interface {
	InitConnection(cfg *conf.Config) (MvcProvider, error)
	InitDataset(cmd *InitCmd)
	NewVersion(cmd *NewCmd)
	Add(cmd *AddCmd)
	AllVersions(cmd *VersionsCmd)
	LatestVersion(cmd *LatestCmd)
	OverwriteVersion(cmd *OverwriteCmd)
	DeleteVersion(cmd *DeleteCmd)
}

type NewCmd

type NewCmd struct {
	DestinationPath string `arg:"-d,required"`
}

type OverwriteCmd

type OverwriteCmd struct {
	DestinationPath string `arg:"-d,required"`
	Version         string `arg:"-v,required"`
	LocalPath       string `arg:"-l,required"`
}

type VersionsCmd

type VersionsCmd struct {
	DestinationPath string `arg:"-d,required"`
}

Jump to

Keyboard shortcuts

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