cmd

package
v10.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 25 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EResourceType = ResourceType(0)
View Source
var EServiceType = ServiceType(0)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetAzCopyAppPath

func GetAzCopyAppPath() string

GetAzCopyAppPath returns the path of Azcopy folder in local appdata. Azcopy folder in local appdata contains all the files created by azcopy locally.

Types

type MMF

type MMF []byte

func NewMMF

func NewMMF(file *os.File, writable bool, offset int64, length int64) (MMF, error)

func (*MMF) Unmap

func (m *MMF) Unmap()

type ResourceType

type ResourceType uint8

ResourceType defines the different types of credentials

func (ResourceType) Account

func (ResourceType) Account() ResourceType

func (ResourceType) Bucket

func (ResourceType) Bucket() ResourceType

func (*ResourceType) Parse

func (ct *ResourceType) Parse(s string) error

func (ResourceType) SingleFile

func (ResourceType) SingleFile() ResourceType

func (ResourceType) String

func (ct ResourceType) String() string

type ServiceType

type ServiceType uint8

ServiceType defines the different types of credentials

func (ServiceType) Blob

func (ServiceType) Blob() ServiceType

func (ServiceType) BlobFS

func (ServiceType) BlobFS() ServiceType

func (ServiceType) File

func (ServiceType) File() ServiceType

func (*ServiceType) Parse

func (ct *ServiceType) Parse(s string) error

func (ServiceType) String

func (ct ServiceType) String() string

type TestBlobCommand

type TestBlobCommand struct {
	// object is the resource which needs to be validated against a resource on container.
	Object string
	//Subject is the remote resource against which object needs to be validated.
	Subject string
	// IsObjectDirectory defines if the object is a directory or not.
	// If the object is directory, then validation goes through another path.
	IsObjectDirectory bool
	// Metadata of the blob to be validated.
	MetaData string
	// NoGuessMimeType represent the azcopy NoGuessMimeType flag set while uploading the blob.
	NoGuessMimeType bool
	// Represents the flag to determine whether number of blocks or pages needs
	// to be verified or not.
	// todo always set this to true
	VerifyBlockOrPageSize bool
	// BlobType of the resource to be validated.
	BlobType string
	// access tier for block blobs
	BlobTier string
	// Number of Blocks or Pages Expected from the blob.
	NumberOfBlocksOrPages uint64
	// todo : numberofblockorpages can be an array with offset : end url.
	//todo consecutive page ranges get squashed.
	// PreserveLastModifiedTime represents the azcopy PreserveLastModifiedTime flag while downloading the blob.
	PreserveLastModifiedTime bool

	// Property of the blob to be validated.
	ContentType        string
	ContentEncoding    string
	ContentDisposition string
	ContentLanguage    string
	CacheControl       string
	CheckContentMD5    bool
}

type TestBlobFSCommand

type TestBlobFSCommand struct {
	// object is the resource which needs to be validated against a resource on container.
	Object string
	//Subject is the remote resource against which object needs to be validated.
	Subject string
	// IsObjectDirectory defines if the object is a directory or not.
	// If the object is directory, then validation goes through another path.
	IsObjectDirectory bool
}

TestBlobFSCommand represents the struct to get command for validating azcopy operations upload and download operations to and from Blob FS Service.

type TestFileCommand

type TestFileCommand struct {
	// object is the resource which needs to be validated against a resource in bucket(share/container).
	Object string
	//Subject is the remote resource against which object needs to be validated.
	Subject string
	// IsObjectDirectory defines if the object is a directory or not.
	// If the object is directory, then validation goes through another path.
	IsObjectDirectory bool
	// IsRecursive defines if recursive switch is on during transfer.
	IsRecursive bool
	// Metadata of the file to be validated.
	MetaData string
	// NoGuessMimeType represent the azcopy NoGuessMimeType flag set while uploading the file.
	NoGuessMimeType bool
	// Content Type of the file to be validated.
	ContentType string
	// Content Encoding of the file to be validated.
	ContentEncoding string
	// Represents the flag to determine whether number of blocks or pages needs
	// to be verified or not.
	// todo always set this to true
	VerifyBlockOrPageSize bool
	// FileType of the resource to be validated.
	FileType string
	// Number of Blocks or Pages Expected from the file.
	NumberOfBlocksOrPages uint64
	// todo : numberofblockorpages can be an array with offset : end url.
	//todo consecutive page ranges get squashed.
	// PreserveLastModifiedTime represents the azcopy PreserveLastModifiedTime flag while downloading the file.
	PreserveLastModifiedTime bool
}

TestFileCommand represents the struct to get command for validating azcopy operations.

Jump to

Keyboard shortcuts

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