upload

package
v0.0.0-...-f3f878c Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(file *os.File, host string, namespace, name, system, version string) error

upload to registry host with the /modules/namespaces/name/provider/version/upload endpoint

func UploadDir

func UploadDir(dir, host, namespace, name, system, version string) error

create archtive and upload to registry host

func Zip

func Zip(dir string) (*os.File, func() error, error)

Upload uploads a file to S3. takes the the dir path, creates a tar zip and uploads to a server with the /.../upload endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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