tempshelf

package
v0.0.0-...-f56e727 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func S3Client

func S3Client(manifest Manifest) *s3.S3

S3Client returns cert configed s3 client with Manifest

Types

type FileRecord

type FileRecord struct {
	Name   string `json:"name"`
	Expand bool   `json:"expand"`
}

FileRecord represenets each file entity

type Manifest

type Manifest struct {
	Meta  ManifestMeta `json:"meta"`
	Files []FileRecord `json:"files"`
}

Manifest represents manifest file

func ParseManifestFile

func ParseManifestFile(filepath string) Manifest

ParseManifestFile create Manifest from manifest.json path

func (*Manifest) Load

func (m *Manifest) Load(filepath string)

Load assign data from manifest.json path

func (*Manifest) Save

func (m *Manifest) Save(filepath string)

Save write data to manifet.json path

type ManifestMeta

type ManifestMeta struct {
	Storage string `json:"storage"`
	Bucket  string `json:"bucket"`
	Region  string `json:"region"`
	Token   string `json:"token"`
	Secret  string `json:"secret"`
	Prefix  string `json:"prefix"`
}

ManifestMeta contain storage config

Jump to

Keyboard shortcuts

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