Documentation ¶
Index ¶
- func CreateBundlePath(bundleName, apiID string) (string, error)
- func LoadBundleManifest(bundle *Bundle, skipVerification bool) error
- func SaveBundle(bundle *Bundle, destPath string) error
- func SaveBundleZip(bundle *Bundle, apiID, bundleName string) error
- type Bundle
- type Getter
- type HTTPBundleGetter
- type Saver
- type ZipBundleSaver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBundlePath ¶
CreateBundlePath returns the absolute path for a bundle, consisting of the combined API ID and hashed bundle name.
func LoadBundleManifest ¶
LoadBundleManifest will parse the manifest file and return the bundle parameters.
func SaveBundle ¶
SaveBundle will save a bundle to the disk, see ZipBundleSaver methods for reference.
func SaveBundleZip ¶
Types ¶
type Bundle ¶
type Bundle struct { Manifest apidef.BundleManifest Name string Path string Data []byte }
Bundle is the basic bundle data structure. It holds the bundle name and the data.
func LoadBundle ¶
type HTTPBundleGetter ¶
type HTTPBundleGetter struct {
URL string
}
HTTPBundleGetter is a simple HTTP Getter.
func (*HTTPBundleGetter) Get ¶
func (g *HTTPBundleGetter) Get() ([]byte, error)
Get performs an HTTP GET request.
Click to show internal directories.
Click to hide internal directories.