filesystem

package
v4.0.0-beta+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package filesystem implements the Azure ARM Filesystem service API version 2015-10-01-preview.

Creates an Azure Data Lake Store filesystem client.

Index

Constants

View Source
const (
	// APIVersion is the version of the Filesystem
	APIVersion = "2015-10-01-preview"

	// DefaultBaseURI is the default URI used for the service Filesystem
	DefaultBaseURI = "https://localhost"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AclStatus

type AclStatus struct {
	Entries    *[]string `json:"entries,omitempty"`
	Group      *string   `json:"group,omitempty"`
	Owner      *string   `json:"owner,omitempty"`
	Permission *int32    `json:"permission,omitempty"`
	StickyBit  *bool     `json:"stickyBit,omitempty"`
}

AclStatus is data Lake Store file or directory Access Control List information.

type AclStatusResult

type AclStatusResult struct {
	autorest.Response `json:"-"`
	AclStatus         *AclStatus `json:"AclStatus,omitempty"`
}

AclStatusResult is data Lake Store file or directory Access Control List information.

type AdlsAccessControlException

type AdlsAccessControlException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsAccessControlException is a WebHDFS exception thrown indicating that access is denied due to insufficient permissions. Thrown when a 403 error response code is returned (forbidden).

type AdlsBadOffsetException

type AdlsBadOffsetException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsBadOffsetException is a WebHDFS exception thrown indicating the append or read is from a bad offset. Thrown when a 400 error response code is returned for append and open operations (Bad request).

type AdlsError

type AdlsError struct {
	RemoteException *AdlsRemoteException `json:"RemoteException,omitempty"`
}

AdlsError is data Lake Store filesystem error containing a specific WebHDFS exception.

type AdlsFileAlreadyExistsException

type AdlsFileAlreadyExistsException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsFileAlreadyExistsException is a WebHDFS exception thrown indicating the file or folder already exists. Thrown when a 403 error response code is returned (forbidden).

type AdlsFileNotFoundException

type AdlsFileNotFoundException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsFileNotFoundException is a WebHDFS exception thrown indicating the file or folder could not be found. Thrown when a 404 error response code is returned (not found).

type AdlsIOException

type AdlsIOException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsIOException is a WebHDFS exception thrown indicating there was an IO (read or write) error. Thrown when a 403 error response code is returned (forbidden).

type AdlsIllegalArgumentException

type AdlsIllegalArgumentException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsIllegalArgumentException is a WebHDFS exception thrown indicating that one more arguments is incorrect. Thrown when a 400 error response code is returned (bad request).

type AdlsRemoteException

type AdlsRemoteException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsRemoteException is data Lake Store filesystem exception based on the WebHDFS definition for RemoteExceptions.

type AdlsRuntimeException

type AdlsRuntimeException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsRuntimeException is a WebHDFS exception thrown when an unexpected error occurs during an operation. Thrown when a 500 error response code is returned (Internal server error).

type AdlsSecurityException

type AdlsSecurityException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsSecurityException is a WebHDFS exception thrown indicating that access is denied. Thrown when a 401 error response code is returned (Unauthorized).

type AdlsUnsupportedOperationException

type AdlsUnsupportedOperationException struct {
	JavaClassName *string `json:"javaClassName,omitempty"`
	Message       *string `json:"message,omitempty"`
}

AdlsUnsupportedOperationException is a WebHDFS exception thrown indicating that the requested operation is not supported. Thrown when a 400 error response code is returned (bad request).

type AppendModeType

type AppendModeType string

AppendModeType enumerates the values for append mode type.

const (
	// Autocreate specifies the autocreate state for append mode type.
	Autocreate AppendModeType = "autocreate"
)

type Client

type Client struct {
	ManagementClient
}

Client is the creates an Azure Data Lake Store filesystem client.

func NewClient

func NewClient(adlsFileSystemDNSSuffix string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, adlsFileSystemDNSSuffix string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) Append

func (client Client) Append(directFilePath string, streamContents io.ReadCloser, op string, appendParameter string, transferEncoding string, offset *int64) (result autorest.Response, err error)

Append appends to the specified file. This method does not support multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. Use the ConcurrentAppend option if you would like support for concurrent appends.

directFilePath is the Data Lake Store path (starting with '/') of the file to which to append. streamContents is the file contents to include when appending to the file. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. appendParameter is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. offset is the optional offset in the stream to begin the append operation. Default is to append at the end of the stream.

func (Client) AppendPreparer

func (client Client) AppendPreparer(directFilePath string, streamContents io.ReadCloser, op string, appendParameter string, transferEncoding string, offset *int64) (*http.Request, error)

AppendPreparer prepares the Append request.

func (Client) AppendResponder

func (client Client) AppendResponder(resp *http.Response) (result autorest.Response, err error)

AppendResponder handles the response to the Append request. The method always closes the http.Response Body.

func (Client) AppendSender

func (client Client) AppendSender(req *http.Request) (*http.Response, error)

AppendSender sends the Append request. The method will close the http.Response Body if it receives an error.

func (Client) CheckAccess

func (client Client) CheckAccess(pathParameter string, op string, fsaction string) (result autorest.Response, err error)

CheckAccess checks if the specified access is available at the given path.

pathParameter is the Data Lake Store path (starting with '/') of the file or directory for which to check access. op is the constant value for the operation. fsaction is file system operation read/write/execute in string form, matching regex pattern '[rwx-]{3}'

func (Client) CheckAccessPreparer

func (client Client) CheckAccessPreparer(pathParameter string, op string, fsaction string) (*http.Request, error)

CheckAccessPreparer prepares the CheckAccess request.

func (Client) CheckAccessResponder

func (client Client) CheckAccessResponder(resp *http.Response) (result autorest.Response, err error)

CheckAccessResponder handles the response to the CheckAccess request. The method always closes the http.Response Body.

func (Client) CheckAccessSender

func (client Client) CheckAccessSender(req *http.Request) (*http.Response, error)

CheckAccessSender sends the CheckAccess request. The method will close the http.Response Body if it receives an error.

func (Client) Concat

func (client Client) Concat(destinationPath string, sources []string, op string) (result autorest.Response, err error)

Concat concatenates the list of source files into the destination file, removing all source files upon success.

destinationPath is the Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. sources is a list of comma seperated Data Lake Store paths (starting with '/') of the files to concatenate, in the order in which they should be concatenated. op is the constant value for the operation.

func (Client) ConcatPreparer

func (client Client) ConcatPreparer(destinationPath string, sources []string, op string) (*http.Request, error)

ConcatPreparer prepares the Concat request.

func (Client) ConcatResponder

func (client Client) ConcatResponder(resp *http.Response) (result autorest.Response, err error)

ConcatResponder handles the response to the Concat request. The method always closes the http.Response Body.

func (Client) ConcatSender

func (client Client) ConcatSender(req *http.Request) (*http.Response, error)

ConcatSender sends the Concat request. The method will close the http.Response Body if it receives an error.

func (Client) ConcurrentAppend

func (client Client) ConcurrentAppend(filePath string, streamContents io.ReadCloser, op string, transferEncoding string, appendMode AppendModeType) (result autorest.Response, err error)

ConcurrentAppend appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option.

filePath is the Data Lake Store path (starting with '/') of the file to which to append using concurrent append. streamContents is the file contents to include when appending to the file. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. appendMode is indicates the concurrent append call should create the file if it doesn't exist or just open the existing file for append. Possible values include: 'autocreate'

func (Client) ConcurrentAppendPreparer

func (client Client) ConcurrentAppendPreparer(filePath string, streamContents io.ReadCloser, op string, transferEncoding string, appendMode AppendModeType) (*http.Request, error)

ConcurrentAppendPreparer prepares the ConcurrentAppend request.

func (Client) ConcurrentAppendResponder

func (client Client) ConcurrentAppendResponder(resp *http.Response) (result autorest.Response, err error)

ConcurrentAppendResponder handles the response to the ConcurrentAppend request. The method always closes the http.Response Body.

func (Client) ConcurrentAppendSender

func (client Client) ConcurrentAppendSender(req *http.Request) (*http.Response, error)

ConcurrentAppendSender sends the ConcurrentAppend request. The method will close the http.Response Body if it receives an error.

func (Client) Create

func (client Client) Create(directFilePath string, op string, write string, transferEncoding string, streamContents io.ReadCloser, overwrite *bool) (result autorest.Response, err error)

Create creates a file with optionally specified content.

directFilePath is the Data Lake Store path (starting with '/') of the file to create. op is the constant value for the operation. write is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. streamContents is the file contents to include when creating the file. This parameter is optional, resulting in an empty file if not specified. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.overwrite is the indication of if the file should be overwritten.

func (Client) CreatePreparer

func (client Client) CreatePreparer(directFilePath string, op string, write string, transferEncoding string, streamContents io.ReadCloser, overwrite *bool) (*http.Request, error)

CreatePreparer prepares the Create request.

func (Client) CreateResponder

func (client Client) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (Client) CreateSender

func (client Client) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (Client) Delete

func (client Client) Delete(filePath string, op string, recursive *bool) (result FileOperationResult, err error)

Delete deletes the requested file or directory, optionally recursively.

filePath is the Data Lake Store path (starting with '/') of the file or directory to delete. op is the constant value for the operation. recursive is the optional switch indicating if the delete should be recursive

func (Client) DeletePreparer

func (client Client) DeletePreparer(filePath string, op string, recursive *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder

func (client Client) DeleteResponder(resp *http.Response) (result FileOperationResult, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (Client) DeleteSender

func (client Client) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (Client) GetAclStatus

func (client Client) GetAclStatus(aclFilePath string, op string) (result AclStatusResult, err error)

GetAclStatus gets Access Control List (ACL) entries for the specified file or directory.

aclFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to get the ACL. op is the constant value for the operation.

func (Client) GetAclStatusPreparer

func (client Client) GetAclStatusPreparer(aclFilePath string, op string) (*http.Request, error)

GetAclStatusPreparer prepares the GetAclStatus request.

func (Client) GetAclStatusResponder

func (client Client) GetAclStatusResponder(resp *http.Response) (result AclStatusResult, err error)

GetAclStatusResponder handles the response to the GetAclStatus request. The method always closes the http.Response Body.

func (Client) GetAclStatusSender

func (client Client) GetAclStatusSender(req *http.Request) (*http.Response, error)

GetAclStatusSender sends the GetAclStatus request. The method will close the http.Response Body if it receives an error.

func (Client) GetContentSummary

func (client Client) GetContentSummary(getContentSummaryFilePath string, op string) (result ContentSummaryResult, err error)

GetContentSummary gets the file content summary object specified by the file path.

getContentSummaryFilePath is the Data Lake Store path (starting with '/') of the file for which to retrieve the summary. op is the constant value for the operation.

func (Client) GetContentSummaryPreparer

func (client Client) GetContentSummaryPreparer(getContentSummaryFilePath string, op string) (*http.Request, error)

GetContentSummaryPreparer prepares the GetContentSummary request.

func (Client) GetContentSummaryResponder

func (client Client) GetContentSummaryResponder(resp *http.Response) (result ContentSummaryResult, err error)

GetContentSummaryResponder handles the response to the GetContentSummary request. The method always closes the http.Response Body.

func (Client) GetContentSummarySender

func (client Client) GetContentSummarySender(req *http.Request) (*http.Response, error)

GetContentSummarySender sends the GetContentSummary request. The method will close the http.Response Body if it receives an error.

func (Client) GetFileStatus

func (client Client) GetFileStatus(getFilePath string, op string) (result FileStatusResult, err error)

GetFileStatus get the file status object specified by the file path.

getFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to retrieve the status. op is the constant value for the operation.

func (Client) GetFileStatusPreparer

func (client Client) GetFileStatusPreparer(getFilePath string, op string) (*http.Request, error)

GetFileStatusPreparer prepares the GetFileStatus request.

func (Client) GetFileStatusResponder

func (client Client) GetFileStatusResponder(resp *http.Response) (result FileStatusResult, err error)

GetFileStatusResponder handles the response to the GetFileStatus request. The method always closes the http.Response Body.

func (Client) GetFileStatusSender

func (client Client) GetFileStatusSender(req *http.Request) (*http.Response, error)

GetFileStatusSender sends the GetFileStatus request. The method will close the http.Response Body if it receives an error.

func (Client) ListFileStatus

func (client Client) ListFileStatus(listFilePath string, op string, listSize *int32, listAfter string, listBefore string) (result FileStatusesResult, err error)

ListFileStatus get the list of file status objects specified by the file path, with optional pagination parameters

listFilePath is the Data Lake Store path (starting with '/') of the directory to list. op is the constant value for the operation. listSize is gets or sets the number of items to return. Optional. listAfter is gets or sets the item or lexographical index after which to begin returning results. For example, a file list of 'a','b','d' and listAfter='b' will return 'd', and a listAfter='c' will also return 'd'. Optional. listBefore is gets or sets the item or lexographical index before which to begin returning results. For example, a file list of 'a','b','d' and listBefore='d' will return 'a','b', and a listBefore='c' will also return 'a','b'. Optional.

func (Client) ListFileStatusPreparer

func (client Client) ListFileStatusPreparer(listFilePath string, op string, listSize *int32, listAfter string, listBefore string) (*http.Request, error)

ListFileStatusPreparer prepares the ListFileStatus request.

func (Client) ListFileStatusResponder

func (client Client) ListFileStatusResponder(resp *http.Response) (result FileStatusesResult, err error)

ListFileStatusResponder handles the response to the ListFileStatus request. The method always closes the http.Response Body.

func (Client) ListFileStatusSender

func (client Client) ListFileStatusSender(req *http.Request) (*http.Response, error)

ListFileStatusSender sends the ListFileStatus request. The method will close the http.Response Body if it receives an error.

func (Client) Mkdirs

func (client Client) Mkdirs(pathParameter string, op string) (result FileOperationResult, err error)

Mkdirs creates a directory.

pathParameter is the Data Lake Store path (starting with '/') of the directory to create. op is the constant value for the operation.

func (Client) MkdirsPreparer

func (client Client) MkdirsPreparer(pathParameter string, op string) (*http.Request, error)

MkdirsPreparer prepares the Mkdirs request.

func (Client) MkdirsResponder

func (client Client) MkdirsResponder(resp *http.Response) (result FileOperationResult, err error)

MkdirsResponder handles the response to the Mkdirs request. The method always closes the http.Response Body.

func (Client) MkdirsSender

func (client Client) MkdirsSender(req *http.Request) (*http.Response, error)

MkdirsSender sends the Mkdirs request. The method will close the http.Response Body if it receives an error.

func (Client) ModifyAclEntries

func (client Client) ModifyAclEntries(modifyAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

ModifyAclEntries modifies existing Access Control List (ACL) entries on a file or folder.

modifyAclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being modified. aclspec is the ACL specification included in ACL modification operations in the format '[default:]user|group|other::r|-w|-x|-' op is the constant value for the operation.

func (Client) ModifyAclEntriesPreparer

func (client Client) ModifyAclEntriesPreparer(modifyAclFilePath string, aclspec string, op string) (*http.Request, error)

ModifyAclEntriesPreparer prepares the ModifyAclEntries request.

func (Client) ModifyAclEntriesResponder

func (client Client) ModifyAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)

ModifyAclEntriesResponder handles the response to the ModifyAclEntries request. The method always closes the http.Response Body.

func (Client) ModifyAclEntriesSender

func (client Client) ModifyAclEntriesSender(req *http.Request) (*http.Response, error)

ModifyAclEntriesSender sends the ModifyAclEntries request. The method will close the http.Response Body if it receives an error.

func (Client) MsConcat

func (client Client) MsConcat(msConcatDestinationPath string, streamContents io.ReadCloser, op string, deleteSourceDirectory *bool) (result autorest.Response, err error)

MsConcat concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.

msConcatDestinationPath is the Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. streamContents is a list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. deleteSourceDirectory is indicates that as an optimization instead of deleting each individual source stream, delete the source stream folder if all streams are in the same folder instead. This results in a substantial performance improvement when the only streams in the folder are part of the concatenation operation. WARNING: This includes the deletion of any other files that are not source files. Only set this to true when source files are the only files in the source directory.

func (Client) MsConcatPreparer

func (client Client) MsConcatPreparer(msConcatDestinationPath string, streamContents io.ReadCloser, op string, deleteSourceDirectory *bool) (*http.Request, error)

MsConcatPreparer prepares the MsConcat request.

func (Client) MsConcatResponder

func (client Client) MsConcatResponder(resp *http.Response) (result autorest.Response, err error)

MsConcatResponder handles the response to the MsConcat request. The method always closes the http.Response Body.

func (Client) MsConcatSender

func (client Client) MsConcatSender(req *http.Request) (*http.Response, error)

MsConcatSender sends the MsConcat request. The method will close the http.Response Body if it receives an error.

func (Client) Open

func (client Client) Open(directFilePath string, op string, read string, length *int64, offset *int64) (result ReadCloser, err error)

Open opens and reads from the specified file.

directFilePath is the Data Lake Store path (starting with '/') of the file to open. op is the constant value for the operation. read is the constant value for the operation.

func (Client) OpenPreparer

func (client Client) OpenPreparer(directFilePath string, op string, read string, length *int64, offset *int64) (*http.Request, error)

OpenPreparer prepares the Open request.

func (Client) OpenResponder

func (client Client) OpenResponder(resp *http.Response) (result ReadCloser, err error)

OpenResponder handles the response to the Open request. The method always closes the http.Response Body.

func (Client) OpenSender

func (client Client) OpenSender(req *http.Request) (*http.Response, error)

OpenSender sends the Open request. The method will close the http.Response Body if it receives an error.

func (Client) RemoveAcl

func (client Client) RemoveAcl(aclFilePath string, op string) (result autorest.Response, err error)

RemoveAcl removes the existing Access Control List (ACL) of the specified file or directory.

aclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. op is the constant value for the operation.

func (Client) RemoveAclEntries

func (client Client) RemoveAclEntries(removeAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

RemoveAclEntries removes existing Access Control List (ACL) entries for a file or folder.

removeAclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. aclspec is the ACL spec included in ACL removal operations in the format '[default:]user|group|other' op is the constant value for the operation.

func (Client) RemoveAclEntriesPreparer

func (client Client) RemoveAclEntriesPreparer(removeAclFilePath string, aclspec string, op string) (*http.Request, error)

RemoveAclEntriesPreparer prepares the RemoveAclEntries request.

func (Client) RemoveAclEntriesResponder

func (client Client) RemoveAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)

RemoveAclEntriesResponder handles the response to the RemoveAclEntries request. The method always closes the http.Response Body.

func (Client) RemoveAclEntriesSender

func (client Client) RemoveAclEntriesSender(req *http.Request) (*http.Response, error)

RemoveAclEntriesSender sends the RemoveAclEntries request. The method will close the http.Response Body if it receives an error.

func (Client) RemoveAclPreparer

func (client Client) RemoveAclPreparer(aclFilePath string, op string) (*http.Request, error)

RemoveAclPreparer prepares the RemoveAcl request.

func (Client) RemoveAclResponder

func (client Client) RemoveAclResponder(resp *http.Response) (result autorest.Response, err error)

RemoveAclResponder handles the response to the RemoveAcl request. The method always closes the http.Response Body.

func (Client) RemoveAclSender

func (client Client) RemoveAclSender(req *http.Request) (*http.Response, error)

RemoveAclSender sends the RemoveAcl request. The method will close the http.Response Body if it receives an error.

func (Client) RemoveDefaultAcl

func (client Client) RemoveDefaultAcl(defaultAclFilePath string, op string) (result autorest.Response, err error)

RemoveDefaultAcl removes the existing Default Access Control List (ACL) of the specified directory.

defaultAclFilePath is the Data Lake Store path (starting with '/') of the directory with the default ACL being removed. op is the constant value for the operation.

func (Client) RemoveDefaultAclPreparer

func (client Client) RemoveDefaultAclPreparer(defaultAclFilePath string, op string) (*http.Request, error)

RemoveDefaultAclPreparer prepares the RemoveDefaultAcl request.

func (Client) RemoveDefaultAclResponder

func (client Client) RemoveDefaultAclResponder(resp *http.Response) (result autorest.Response, err error)

RemoveDefaultAclResponder handles the response to the RemoveDefaultAcl request. The method always closes the http.Response Body.

func (Client) RemoveDefaultAclSender

func (client Client) RemoveDefaultAclSender(req *http.Request) (*http.Response, error)

RemoveDefaultAclSender sends the RemoveDefaultAcl request. The method will close the http.Response Body if it receives an error.

func (Client) Rename

func (client Client) Rename(renameFilePath string, destination string, op string) (result FileOperationResult, err error)

Rename rename a file or directory.

renameFilePath is the Data Lake Store path (starting with '/') of the file or directory to move/rename. destination is the path to move/rename the file or folder to op is the constant value for the operation.

func (Client) RenamePreparer

func (client Client) RenamePreparer(renameFilePath string, destination string, op string) (*http.Request, error)

RenamePreparer prepares the Rename request.

func (Client) RenameResponder

func (client Client) RenameResponder(resp *http.Response) (result FileOperationResult, err error)

RenameResponder handles the response to the Rename request. The method always closes the http.Response Body.

func (Client) RenameSender

func (client Client) RenameSender(req *http.Request) (*http.Response, error)

RenameSender sends the Rename request. The method will close the http.Response Body if it receives an error.

func (Client) SetAcl

func (client Client) SetAcl(setAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

SetAcl sets the Access Control List (ACL) for a file or folder.

setAclFilePath is the Data Lake Store path (starting with '/') of the file or directory on which to set the ACL. aclspec is the ACL spec included in ACL creation operations in the format '[default:]user|group|other::r|-w|-x|-' op is the constant value for the operation.

func (Client) SetAclPreparer

func (client Client) SetAclPreparer(setAclFilePath string, aclspec string, op string) (*http.Request, error)

SetAclPreparer prepares the SetAcl request.

func (Client) SetAclResponder

func (client Client) SetAclResponder(resp *http.Response) (result autorest.Response, err error)

SetAclResponder handles the response to the SetAcl request. The method always closes the http.Response Body.

func (Client) SetAclSender

func (client Client) SetAclSender(req *http.Request) (*http.Response, error)

SetAclSender sends the SetAcl request. The method will close the http.Response Body if it receives an error.

func (Client) SetFileExpiry

func (client Client) SetFileExpiry(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (result autorest.Response, err error)

SetFileExpiry sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

filePath is the Data Lake Store path (starting with '/') of the file on which to set or remove the expiration time. expiryOption is indicates the type of expiration to use for the file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is an integer in milliseconds representing the expiration date relative to when file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an integer in milliseconds representing the expiration date relative to file creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix timestamp relative to 1/1/1970 00:00:00. Possible values include: 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' op is the constant value for the operation. expireTime is the time that the file will expire, corresponding to the ExpiryOption that was set.

func (Client) SetFileExpiryPreparer

func (client Client) SetFileExpiryPreparer(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (*http.Request, error)

SetFileExpiryPreparer prepares the SetFileExpiry request.

func (Client) SetFileExpiryResponder

func (client Client) SetFileExpiryResponder(resp *http.Response) (result autorest.Response, err error)

SetFileExpiryResponder handles the response to the SetFileExpiry request. The method always closes the http.Response Body.

func (Client) SetFileExpirySender

func (client Client) SetFileExpirySender(req *http.Request) (*http.Response, error)

SetFileExpirySender sends the SetFileExpiry request. The method will close the http.Response Body if it receives an error.

func (Client) SetOwner

func (client Client) SetOwner(setOwnerFilePath string, op string, owner string, group string) (result autorest.Response, err error)

SetOwner sets the owner of a file or directory.

setOwnerFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to set the owner. op is the constant value for the operation. owner is the AAD Object ID of the user owner of the file or directory. If empty, the property will remain unchanged. group is the AAD Object ID of the group owner of the file or directory. If empty, the property will remain unchanged.

func (Client) SetOwnerPreparer

func (client Client) SetOwnerPreparer(setOwnerFilePath string, op string, owner string, group string) (*http.Request, error)

SetOwnerPreparer prepares the SetOwner request.

func (Client) SetOwnerResponder

func (client Client) SetOwnerResponder(resp *http.Response) (result autorest.Response, err error)

SetOwnerResponder handles the response to the SetOwner request. The method always closes the http.Response Body.

func (Client) SetOwnerSender

func (client Client) SetOwnerSender(req *http.Request) (*http.Response, error)

SetOwnerSender sends the SetOwner request. The method will close the http.Response Body if it receives an error.

func (Client) SetPermission

func (client Client) SetPermission(setPermissionFilePath string, op string, permission string) (result autorest.Response, err error)

SetPermission sets the permission of the file or folder.

setPermissionFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to set the permission. op is the constant value for the operation. permission is a string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged.

func (Client) SetPermissionPreparer

func (client Client) SetPermissionPreparer(setPermissionFilePath string, op string, permission string) (*http.Request, error)

SetPermissionPreparer prepares the SetPermission request.

func (Client) SetPermissionResponder

func (client Client) SetPermissionResponder(resp *http.Response) (result autorest.Response, err error)

SetPermissionResponder handles the response to the SetPermission request. The method always closes the http.Response Body.

func (Client) SetPermissionSender

func (client Client) SetPermissionSender(req *http.Request) (*http.Response, error)

SetPermissionSender sends the SetPermission request. The method will close the http.Response Body if it receives an error.

type ContentSummary

type ContentSummary struct {
	DirectoryCount *int64 `json:"directoryCount,omitempty"`
	FileCount      *int64 `json:"fileCount,omitempty"`
	Length         *int64 `json:"length,omitempty"`
	SpaceConsumed  *int64 `json:"spaceConsumed,omitempty"`
}

ContentSummary is data Lake Store content summary information

type ContentSummaryResult

type ContentSummaryResult struct {
	autorest.Response `json:"-"`
	ContentSummary    *ContentSummary `json:"ContentSummary,omitempty"`
}

ContentSummaryResult is data Lake Store filesystem content summary information response.

type ExpiryOptionType

type ExpiryOptionType string

ExpiryOptionType enumerates the values for expiry option type.

const (
	// Absolute specifies the absolute state for expiry option type.
	Absolute ExpiryOptionType = "Absolute"
	// NeverExpire specifies the never expire state for expiry option type.
	NeverExpire ExpiryOptionType = "NeverExpire"
	// RelativeToCreationDate specifies the relative to creation date state
	// for expiry option type.
	RelativeToCreationDate ExpiryOptionType = "RelativeToCreationDate"
	// RelativeToNow specifies the relative to now state for expiry option
	// type.
	RelativeToNow ExpiryOptionType = "RelativeToNow"
)

type FileOperationResult

type FileOperationResult struct {
	autorest.Response `json:"-"`
	Boolean           *bool `json:"boolean,omitempty"`
}

FileOperationResult is the result of the request or operation.

type FileStatusProperties

type FileStatusProperties struct {
	AccessTime       *int64   `json:"accessTime,omitempty"`
	BlockSize        *int64   `json:"blockSize,omitempty"`
	ChildrenNum      *int64   `json:"childrenNum,omitempty"`
	ExpirationTime   *int64   `json:"expirationTime,omitempty"`
	Group            *string  `json:"group,omitempty"`
	Length           *int64   `json:"length,omitempty"`
	ModificationTime *int64   `json:"modificationTime,omitempty"`
	Owner            *string  `json:"owner,omitempty"`
	PathSuffix       *string  `json:"pathSuffix,omitempty"`
	Permission       *string  `json:"permission,omitempty"`
	Type             FileType `json:"type,omitempty"`
}

FileStatusProperties is data Lake Store file or directory information.

type FileStatusResult

type FileStatusResult struct {
	autorest.Response `json:"-"`
	FileStatus        *FileStatusProperties `json:"FileStatus,omitempty"`
}

FileStatusResult is data Lake Store filesystem file status information response.

type FileStatuses

type FileStatuses struct {
	FileStatus *[]FileStatusProperties `json:"FileStatus,omitempty"`
}

FileStatuses is data Lake Store file status list information.

type FileStatusesResult

type FileStatusesResult struct {
	autorest.Response `json:"-"`
	FileStatuses      *FileStatuses `json:"FileStatuses,omitempty"`
}

FileStatusesResult is data Lake Store filesystem file status list information response.

type FileType

type FileType string

FileType enumerates the values for file type.

const (
	// DIRECTORY specifies the directory state for file type.
	DIRECTORY FileType = "DIRECTORY"
	// FILE specifies the file state for file type.
	FILE FileType = "FILE"
)

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI                 string
	APIVersion              string
	AdlsFileSystemDNSSuffix string
}

ManagementClient is the base client for Filesystem.

func New

func New(adlsFileSystemDNSSuffix string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, adlsFileSystemDNSSuffix string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

func (ManagementClient) Append

func (client ManagementClient) Append(directFilePath string, streamContents io.ReadCloser, op string, appendParameter string, transferEncoding string, offset *int64) (result autorest.Response, err error)

Append appends to the specified file. This method does not support multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option. Use the ConcurrentAppend option if you would like support for concurrent appends.

directFilePath is the Data Lake Store path (starting with '/') of the file to which to append. streamContents is the file contents to include when appending to the file. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. appendParameter is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. offset is the optional offset in the stream to begin the append operation. Default is to append at the end of the stream.

func (ManagementClient) AppendPreparer

func (client ManagementClient) AppendPreparer(directFilePath string, streamContents io.ReadCloser, op string, appendParameter string, transferEncoding string, offset *int64) (*http.Request, error)

AppendPreparer prepares the Append request.

func (ManagementClient) AppendResponder

func (client ManagementClient) AppendResponder(resp *http.Response) (result autorest.Response, err error)

AppendResponder handles the response to the Append request. The method always closes the http.Response Body.

func (ManagementClient) AppendSender

func (client ManagementClient) AppendSender(req *http.Request) (*http.Response, error)

AppendSender sends the Append request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) CheckAccess

func (client ManagementClient) CheckAccess(pathParameter string, op string, fsaction string) (result autorest.Response, err error)

CheckAccess checks if the specified access is available at the given path.

pathParameter is the Data Lake Store path (starting with '/') of the file or directory for which to check access. op is the constant value for the operation. fsaction is file system operation read/write/execute in string form, matching regex pattern '[rwx-]{3}'

func (ManagementClient) CheckAccessPreparer

func (client ManagementClient) CheckAccessPreparer(pathParameter string, op string, fsaction string) (*http.Request, error)

CheckAccessPreparer prepares the CheckAccess request.

func (ManagementClient) CheckAccessResponder

func (client ManagementClient) CheckAccessResponder(resp *http.Response) (result autorest.Response, err error)

CheckAccessResponder handles the response to the CheckAccess request. The method always closes the http.Response Body.

func (ManagementClient) CheckAccessSender

func (client ManagementClient) CheckAccessSender(req *http.Request) (*http.Response, error)

CheckAccessSender sends the CheckAccess request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Concat

func (client ManagementClient) Concat(destinationPath string, sources []string, op string) (result autorest.Response, err error)

Concat concatenates the list of source files into the destination file, removing all source files upon success.

destinationPath is the Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. sources is a list of comma seperated Data Lake Store paths (starting with '/') of the files to concatenate, in the order in which they should be concatenated. op is the constant value for the operation.

func (ManagementClient) ConcatPreparer

func (client ManagementClient) ConcatPreparer(destinationPath string, sources []string, op string) (*http.Request, error)

ConcatPreparer prepares the Concat request.

func (ManagementClient) ConcatResponder

func (client ManagementClient) ConcatResponder(resp *http.Response) (result autorest.Response, err error)

ConcatResponder handles the response to the Concat request. The method always closes the http.Response Body.

func (ManagementClient) ConcatSender

func (client ManagementClient) ConcatSender(req *http.Request) (*http.Response, error)

ConcatSender sends the Concat request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) ConcurrentAppend

func (client ManagementClient) ConcurrentAppend(filePath string, streamContents io.ReadCloser, op string, transferEncoding string, appendMode AppendModeType) (result autorest.Response, err error)

ConcurrentAppend appends to the specified file. This method supports multiple concurrent appends to the file. NOTE: Concurrent append and normal (serial) append CANNOT be used interchangeably. Once a file has been appended to using either append option, it can only be appended to using that append option.

filePath is the Data Lake Store path (starting with '/') of the file to which to append using concurrent append. streamContents is the file contents to include when appending to the file. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. appendMode is indicates the concurrent append call should create the file if it doesn't exist or just open the existing file for append. Possible values include: 'autocreate'

func (ManagementClient) ConcurrentAppendPreparer

func (client ManagementClient) ConcurrentAppendPreparer(filePath string, streamContents io.ReadCloser, op string, transferEncoding string, appendMode AppendModeType) (*http.Request, error)

ConcurrentAppendPreparer prepares the ConcurrentAppend request.

func (ManagementClient) ConcurrentAppendResponder

func (client ManagementClient) ConcurrentAppendResponder(resp *http.Response) (result autorest.Response, err error)

ConcurrentAppendResponder handles the response to the ConcurrentAppend request. The method always closes the http.Response Body.

func (ManagementClient) ConcurrentAppendSender

func (client ManagementClient) ConcurrentAppendSender(req *http.Request) (*http.Response, error)

ConcurrentAppendSender sends the ConcurrentAppend request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Create

func (client ManagementClient) Create(directFilePath string, op string, write string, transferEncoding string, streamContents io.ReadCloser, overwrite *bool) (result autorest.Response, err error)

Create creates a file with optionally specified content.

directFilePath is the Data Lake Store path (starting with '/') of the file to create. op is the constant value for the operation. write is the constant value for the operation. transferEncoding is indicates the data being sent to the server is being streamed in chunks. streamContents is the file contents to include when creating the file. This parameter is optional, resulting in an empty file if not specified. streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.overwrite is the indication of if the file should be overwritten.

func (ManagementClient) CreatePreparer

func (client ManagementClient) CreatePreparer(directFilePath string, op string, write string, transferEncoding string, streamContents io.ReadCloser, overwrite *bool) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ManagementClient) CreateResponder

func (client ManagementClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ManagementClient) CreateSender

func (client ManagementClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Delete

func (client ManagementClient) Delete(filePath string, op string, recursive *bool) (result FileOperationResult, err error)

Delete deletes the requested file or directory, optionally recursively.

filePath is the Data Lake Store path (starting with '/') of the file or directory to delete. op is the constant value for the operation. recursive is the optional switch indicating if the delete should be recursive

func (ManagementClient) DeletePreparer

func (client ManagementClient) DeletePreparer(filePath string, op string, recursive *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagementClient) DeleteResponder

func (client ManagementClient) DeleteResponder(resp *http.Response) (result FileOperationResult, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ManagementClient) DeleteSender

func (client ManagementClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) GetAclStatus

func (client ManagementClient) GetAclStatus(aclFilePath string, op string) (result AclStatusResult, err error)

GetAclStatus gets Access Control List (ACL) entries for the specified file or directory.

aclFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to get the ACL. op is the constant value for the operation.

func (ManagementClient) GetAclStatusPreparer

func (client ManagementClient) GetAclStatusPreparer(aclFilePath string, op string) (*http.Request, error)

GetAclStatusPreparer prepares the GetAclStatus request.

func (ManagementClient) GetAclStatusResponder

func (client ManagementClient) GetAclStatusResponder(resp *http.Response) (result AclStatusResult, err error)

GetAclStatusResponder handles the response to the GetAclStatus request. The method always closes the http.Response Body.

func (ManagementClient) GetAclStatusSender

func (client ManagementClient) GetAclStatusSender(req *http.Request) (*http.Response, error)

GetAclStatusSender sends the GetAclStatus request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) GetContentSummary

func (client ManagementClient) GetContentSummary(getContentSummaryFilePath string, op string) (result ContentSummaryResult, err error)

GetContentSummary gets the file content summary object specified by the file path.

getContentSummaryFilePath is the Data Lake Store path (starting with '/') of the file for which to retrieve the summary. op is the constant value for the operation.

func (ManagementClient) GetContentSummaryPreparer

func (client ManagementClient) GetContentSummaryPreparer(getContentSummaryFilePath string, op string) (*http.Request, error)

GetContentSummaryPreparer prepares the GetContentSummary request.

func (ManagementClient) GetContentSummaryResponder

func (client ManagementClient) GetContentSummaryResponder(resp *http.Response) (result ContentSummaryResult, err error)

GetContentSummaryResponder handles the response to the GetContentSummary request. The method always closes the http.Response Body.

func (ManagementClient) GetContentSummarySender

func (client ManagementClient) GetContentSummarySender(req *http.Request) (*http.Response, error)

GetContentSummarySender sends the GetContentSummary request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) GetFileStatus

func (client ManagementClient) GetFileStatus(getFilePath string, op string) (result FileStatusResult, err error)

GetFileStatus get the file status object specified by the file path.

getFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to retrieve the status. op is the constant value for the operation.

func (ManagementClient) GetFileStatusPreparer

func (client ManagementClient) GetFileStatusPreparer(getFilePath string, op string) (*http.Request, error)

GetFileStatusPreparer prepares the GetFileStatus request.

func (ManagementClient) GetFileStatusResponder

func (client ManagementClient) GetFileStatusResponder(resp *http.Response) (result FileStatusResult, err error)

GetFileStatusResponder handles the response to the GetFileStatus request. The method always closes the http.Response Body.

func (ManagementClient) GetFileStatusSender

func (client ManagementClient) GetFileStatusSender(req *http.Request) (*http.Response, error)

GetFileStatusSender sends the GetFileStatus request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) ListFileStatus

func (client ManagementClient) ListFileStatus(listFilePath string, op string, listSize *int32, listAfter string, listBefore string) (result FileStatusesResult, err error)

ListFileStatus get the list of file status objects specified by the file path, with optional pagination parameters

listFilePath is the Data Lake Store path (starting with '/') of the directory to list. op is the constant value for the operation. listSize is gets or sets the number of items to return. Optional. listAfter is gets or sets the item or lexographical index after which to begin returning results. For example, a file list of 'a','b','d' and listAfter='b' will return 'd', and a listAfter='c' will also return 'd'. Optional. listBefore is gets or sets the item or lexographical index before which to begin returning results. For example, a file list of 'a','b','d' and listBefore='d' will return 'a','b', and a listBefore='c' will also return 'a','b'. Optional.

func (ManagementClient) ListFileStatusPreparer

func (client ManagementClient) ListFileStatusPreparer(listFilePath string, op string, listSize *int32, listAfter string, listBefore string) (*http.Request, error)

ListFileStatusPreparer prepares the ListFileStatus request.

func (ManagementClient) ListFileStatusResponder

func (client ManagementClient) ListFileStatusResponder(resp *http.Response) (result FileStatusesResult, err error)

ListFileStatusResponder handles the response to the ListFileStatus request. The method always closes the http.Response Body.

func (ManagementClient) ListFileStatusSender

func (client ManagementClient) ListFileStatusSender(req *http.Request) (*http.Response, error)

ListFileStatusSender sends the ListFileStatus request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Mkdirs

func (client ManagementClient) Mkdirs(pathParameter string, op string) (result FileOperationResult, err error)

Mkdirs creates a directory.

pathParameter is the Data Lake Store path (starting with '/') of the directory to create. op is the constant value for the operation.

func (ManagementClient) MkdirsPreparer

func (client ManagementClient) MkdirsPreparer(pathParameter string, op string) (*http.Request, error)

MkdirsPreparer prepares the Mkdirs request.

func (ManagementClient) MkdirsResponder

func (client ManagementClient) MkdirsResponder(resp *http.Response) (result FileOperationResult, err error)

MkdirsResponder handles the response to the Mkdirs request. The method always closes the http.Response Body.

func (ManagementClient) MkdirsSender

func (client ManagementClient) MkdirsSender(req *http.Request) (*http.Response, error)

MkdirsSender sends the Mkdirs request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) ModifyAclEntries

func (client ManagementClient) ModifyAclEntries(modifyAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

ModifyAclEntries modifies existing Access Control List (ACL) entries on a file or folder.

modifyAclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being modified. aclspec is the ACL specification included in ACL modification operations in the format '[default:]user|group|other::r|-w|-x|-' op is the constant value for the operation.

func (ManagementClient) ModifyAclEntriesPreparer

func (client ManagementClient) ModifyAclEntriesPreparer(modifyAclFilePath string, aclspec string, op string) (*http.Request, error)

ModifyAclEntriesPreparer prepares the ModifyAclEntries request.

func (ManagementClient) ModifyAclEntriesResponder

func (client ManagementClient) ModifyAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)

ModifyAclEntriesResponder handles the response to the ModifyAclEntries request. The method always closes the http.Response Body.

func (ManagementClient) ModifyAclEntriesSender

func (client ManagementClient) ModifyAclEntriesSender(req *http.Request) (*http.Response, error)

ModifyAclEntriesSender sends the ModifyAclEntries request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) MsConcat

func (client ManagementClient) MsConcat(msConcatDestinationPath string, streamContents io.ReadCloser, op string, deleteSourceDirectory *bool) (result autorest.Response, err error)

MsConcat concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.

msConcatDestinationPath is the Data Lake Store path (starting with '/') of the destination file resulting from the concatenation. streamContents is a list of Data Lake Store paths (starting with '/') of the source files. Must be in the format: sources=<comma separated list> streamContents will be closed upon successful return. Callers should ensure closure when receiving an error.op is the constant value for the operation. deleteSourceDirectory is indicates that as an optimization instead of deleting each individual source stream, delete the source stream folder if all streams are in the same folder instead. This results in a substantial performance improvement when the only streams in the folder are part of the concatenation operation. WARNING: This includes the deletion of any other files that are not source files. Only set this to true when source files are the only files in the source directory.

func (ManagementClient) MsConcatPreparer

func (client ManagementClient) MsConcatPreparer(msConcatDestinationPath string, streamContents io.ReadCloser, op string, deleteSourceDirectory *bool) (*http.Request, error)

MsConcatPreparer prepares the MsConcat request.

func (ManagementClient) MsConcatResponder

func (client ManagementClient) MsConcatResponder(resp *http.Response) (result autorest.Response, err error)

MsConcatResponder handles the response to the MsConcat request. The method always closes the http.Response Body.

func (ManagementClient) MsConcatSender

func (client ManagementClient) MsConcatSender(req *http.Request) (*http.Response, error)

MsConcatSender sends the MsConcat request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Open

func (client ManagementClient) Open(directFilePath string, op string, read string, length *int64, offset *int64) (result ReadCloser, err error)

Open opens and reads from the specified file.

directFilePath is the Data Lake Store path (starting with '/') of the file to open. op is the constant value for the operation. read is the constant value for the operation.

func (ManagementClient) OpenPreparer

func (client ManagementClient) OpenPreparer(directFilePath string, op string, read string, length *int64, offset *int64) (*http.Request, error)

OpenPreparer prepares the Open request.

func (ManagementClient) OpenResponder

func (client ManagementClient) OpenResponder(resp *http.Response) (result ReadCloser, err error)

OpenResponder handles the response to the Open request. The method always closes the http.Response Body.

func (ManagementClient) OpenSender

func (client ManagementClient) OpenSender(req *http.Request) (*http.Response, error)

OpenSender sends the Open request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) RemoveAcl

func (client ManagementClient) RemoveAcl(aclFilePath string, op string) (result autorest.Response, err error)

RemoveAcl removes the existing Access Control List (ACL) of the specified file or directory.

aclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. op is the constant value for the operation.

func (ManagementClient) RemoveAclEntries

func (client ManagementClient) RemoveAclEntries(removeAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

RemoveAclEntries removes existing Access Control List (ACL) entries for a file or folder.

removeAclFilePath is the Data Lake Store path (starting with '/') of the file or directory with the ACL being removed. aclspec is the ACL spec included in ACL removal operations in the format '[default:]user|group|other' op is the constant value for the operation.

func (ManagementClient) RemoveAclEntriesPreparer

func (client ManagementClient) RemoveAclEntriesPreparer(removeAclFilePath string, aclspec string, op string) (*http.Request, error)

RemoveAclEntriesPreparer prepares the RemoveAclEntries request.

func (ManagementClient) RemoveAclEntriesResponder

func (client ManagementClient) RemoveAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)

RemoveAclEntriesResponder handles the response to the RemoveAclEntries request. The method always closes the http.Response Body.

func (ManagementClient) RemoveAclEntriesSender

func (client ManagementClient) RemoveAclEntriesSender(req *http.Request) (*http.Response, error)

RemoveAclEntriesSender sends the RemoveAclEntries request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) RemoveAclPreparer

func (client ManagementClient) RemoveAclPreparer(aclFilePath string, op string) (*http.Request, error)

RemoveAclPreparer prepares the RemoveAcl request.

func (ManagementClient) RemoveAclResponder

func (client ManagementClient) RemoveAclResponder(resp *http.Response) (result autorest.Response, err error)

RemoveAclResponder handles the response to the RemoveAcl request. The method always closes the http.Response Body.

func (ManagementClient) RemoveAclSender

func (client ManagementClient) RemoveAclSender(req *http.Request) (*http.Response, error)

RemoveAclSender sends the RemoveAcl request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) RemoveDefaultAcl

func (client ManagementClient) RemoveDefaultAcl(defaultAclFilePath string, op string) (result autorest.Response, err error)

RemoveDefaultAcl removes the existing Default Access Control List (ACL) of the specified directory.

defaultAclFilePath is the Data Lake Store path (starting with '/') of the directory with the default ACL being removed. op is the constant value for the operation.

func (ManagementClient) RemoveDefaultAclPreparer

func (client ManagementClient) RemoveDefaultAclPreparer(defaultAclFilePath string, op string) (*http.Request, error)

RemoveDefaultAclPreparer prepares the RemoveDefaultAcl request.

func (ManagementClient) RemoveDefaultAclResponder

func (client ManagementClient) RemoveDefaultAclResponder(resp *http.Response) (result autorest.Response, err error)

RemoveDefaultAclResponder handles the response to the RemoveDefaultAcl request. The method always closes the http.Response Body.

func (ManagementClient) RemoveDefaultAclSender

func (client ManagementClient) RemoveDefaultAclSender(req *http.Request) (*http.Response, error)

RemoveDefaultAclSender sends the RemoveDefaultAcl request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) Rename

func (client ManagementClient) Rename(renameFilePath string, destination string, op string) (result FileOperationResult, err error)

Rename rename a file or directory.

renameFilePath is the Data Lake Store path (starting with '/') of the file or directory to move/rename. destination is the path to move/rename the file or folder to op is the constant value for the operation.

func (ManagementClient) RenamePreparer

func (client ManagementClient) RenamePreparer(renameFilePath string, destination string, op string) (*http.Request, error)

RenamePreparer prepares the Rename request.

func (ManagementClient) RenameResponder

func (client ManagementClient) RenameResponder(resp *http.Response) (result FileOperationResult, err error)

RenameResponder handles the response to the Rename request. The method always closes the http.Response Body.

func (ManagementClient) RenameSender

func (client ManagementClient) RenameSender(req *http.Request) (*http.Response, error)

RenameSender sends the Rename request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) SetAcl

func (client ManagementClient) SetAcl(setAclFilePath string, aclspec string, op string) (result autorest.Response, err error)

SetAcl sets the Access Control List (ACL) for a file or folder.

setAclFilePath is the Data Lake Store path (starting with '/') of the file or directory on which to set the ACL. aclspec is the ACL spec included in ACL creation operations in the format '[default:]user|group|other::r|-w|-x|-' op is the constant value for the operation.

func (ManagementClient) SetAclPreparer

func (client ManagementClient) SetAclPreparer(setAclFilePath string, aclspec string, op string) (*http.Request, error)

SetAclPreparer prepares the SetAcl request.

func (ManagementClient) SetAclResponder

func (client ManagementClient) SetAclResponder(resp *http.Response) (result autorest.Response, err error)

SetAclResponder handles the response to the SetAcl request. The method always closes the http.Response Body.

func (ManagementClient) SetAclSender

func (client ManagementClient) SetAclSender(req *http.Request) (*http.Response, error)

SetAclSender sends the SetAcl request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) SetFileExpiry

func (client ManagementClient) SetFileExpiry(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (result autorest.Response, err error)

SetFileExpiry sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

filePath is the Data Lake Store path (starting with '/') of the file on which to set or remove the expiration time. expiryOption is indicates the type of expiration to use for the file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is an integer in milliseconds representing the expiration date relative to when file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an integer in milliseconds representing the expiration date relative to file creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix timestamp relative to 1/1/1970 00:00:00. Possible values include: 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' op is the constant value for the operation. expireTime is the time that the file will expire, corresponding to the ExpiryOption that was set.

func (ManagementClient) SetFileExpiryPreparer

func (client ManagementClient) SetFileExpiryPreparer(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (*http.Request, error)

SetFileExpiryPreparer prepares the SetFileExpiry request.

func (ManagementClient) SetFileExpiryResponder

func (client ManagementClient) SetFileExpiryResponder(resp *http.Response) (result autorest.Response, err error)

SetFileExpiryResponder handles the response to the SetFileExpiry request. The method always closes the http.Response Body.

func (ManagementClient) SetFileExpirySender

func (client ManagementClient) SetFileExpirySender(req *http.Request) (*http.Response, error)

SetFileExpirySender sends the SetFileExpiry request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) SetOwner

func (client ManagementClient) SetOwner(setOwnerFilePath string, op string, owner string, group string) (result autorest.Response, err error)

SetOwner sets the owner of a file or directory.

setOwnerFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to set the owner. op is the constant value for the operation. owner is the AAD Object ID of the user owner of the file or directory. If empty, the property will remain unchanged. group is the AAD Object ID of the group owner of the file or directory. If empty, the property will remain unchanged.

func (ManagementClient) SetOwnerPreparer

func (client ManagementClient) SetOwnerPreparer(setOwnerFilePath string, op string, owner string, group string) (*http.Request, error)

SetOwnerPreparer prepares the SetOwner request.

func (ManagementClient) SetOwnerResponder

func (client ManagementClient) SetOwnerResponder(resp *http.Response) (result autorest.Response, err error)

SetOwnerResponder handles the response to the SetOwner request. The method always closes the http.Response Body.

func (ManagementClient) SetOwnerSender

func (client ManagementClient) SetOwnerSender(req *http.Request) (*http.Response, error)

SetOwnerSender sends the SetOwner request. The method will close the http.Response Body if it receives an error.

func (ManagementClient) SetPermission

func (client ManagementClient) SetPermission(setPermissionFilePath string, op string, permission string) (result autorest.Response, err error)

SetPermission sets the permission of the file or folder.

setPermissionFilePath is the Data Lake Store path (starting with '/') of the file or directory for which to set the permission. op is the constant value for the operation. permission is a string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged.

func (ManagementClient) SetPermissionPreparer

func (client ManagementClient) SetPermissionPreparer(setPermissionFilePath string, op string, permission string) (*http.Request, error)

SetPermissionPreparer prepares the SetPermission request.

func (ManagementClient) SetPermissionResponder

func (client ManagementClient) SetPermissionResponder(resp *http.Response) (result autorest.Response, err error)

SetPermissionResponder handles the response to the SetPermission request. The method always closes the http.Response Body.

func (ManagementClient) SetPermissionSender

func (client ManagementClient) SetPermissionSender(req *http.Request) (*http.Response, error)

SetPermissionSender sends the SetPermission request. The method will close the http.Response Body if it receives an error.

type ReadCloser

type ReadCloser struct {
	autorest.Response `json:"-"`
	Value             *io.ReadCloser `json:"value,omitempty"`
}

ReadCloser is

Jump to

Keyboard shortcuts

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