push

package
v0.0.0-...-a4b3a0d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

type Pusher struct {
	DockerImage     types.GearImage
	DockerImageInfo dtypes.ImageInspect

	Ctx    context.Context
	Client *client.Client

	GearRootPath string // $HOME/.gear/
	TmpDir       string // $HOME/.gear/tmp/

	RegularFiles map[string]string

	TargetUrl string
}

func InitPusher

func InitPusher(image types.GearImage, url string) *Pusher
func (b *Pusher) CreateLinks()

This Func create hardlinks of regular files for pushing

func (*Pusher) Destroy

func (b *Pusher) Destroy()

This Func remove all files under tmpDir

func (*Pusher) Push

func (b *Pusher) Push()

func (*Pusher) PushFiles

func (b *Pusher) PushFiles()

This Func push files to seaweed

func (*Pusher) WalkThroughLayers

func (b *Pusher) WalkThroughLayers(LayerDirs []string)

This Func is used to walk through the lowerdirs, calculate regular files' hash and copy irregular file to parsedImages path

Jump to

Keyboard shortcuts

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