copy

package
v1.0.0-...-746469e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyObject

type CopyObject struct {
	metadata.ObjectMetadata
	metadata.CompressedObject
	utils.FileSystemHelper `json:"-"`
	LibArchiveBackend      libarchive.API `json:"-"`
	FileSystemBackend      afero.Fs
	CopyBackend            copy.Interface `json:"-"`
	utils.Permissions
	installifdifferent.TargetProvider

	Target        string      `json:"target"`
	TargetType    string      `json:"target-type"`
	TargetPath    string      `json:"target-path"`
	TargetGID     interface{} `json:"target-gid"` // can be string or int
	TargetUID     interface{} `json:"target-uid"` // can be string or int
	TargetMode    string      `json:"target-mode"`
	FSType        string      `json:"filesystem"`
	FormatOptions string      `json:"format-options,omitempty"`
	MustFormat    bool        `json:"format?,omitempty"`
	MountOptions  string      `json:"mount-options,omitempty"`
	ChunkSize     int         `json:"chunk-size,omitempty"`
	// contains filtered or unexported fields
}

CopyObject encapsulates the "copy" handler data and functions

func (*CopyObject) Cleanup

func (cp *CopyObject) Cleanup() error

Cleanup implementation for the "copy" handler

func (*CopyObject) GetTarget

func (cp *CopyObject) GetTarget() string

GetTarget implementation for the "copy" handler

func (*CopyObject) Install

func (cp *CopyObject) Install(downloadDir string) error

Install implementation for the "copy" handler

func (*CopyObject) Setup

func (cp *CopyObject) Setup() error

Setup implementation for the "copy" handler

func (*CopyObject) SetupTarget

func (cp *CopyObject) SetupTarget(target afero.File)

SetupTarget implementation for the "copy" handler

Jump to

Keyboard shortcuts

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