download

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(uri, destination string, mode os.FileMode, sha256sum []byte) (string, error)

Download function takes sha256sum as hex decoded byte something like hex.DecodeString("33daf4c03f86120fdfdc66bddf6bfff4661c7ca11c5d")

Types

type RemoteFile added in v1.99.2

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

func NewRemoteFile added in v1.99.2

func NewRemoteFile(uri, sha256sum string) *RemoteFile

func (*RemoteFile) Download added in v1.99.2

func (r *RemoteFile) Download(bundlePath string, mode os.FileMode) (string, error)

func (*RemoteFile) GetSha256Sum added in v1.99.2

func (r *RemoteFile) GetSha256Sum() string

Jump to

Keyboard shortcuts

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