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
- func UserAgent() string
- func Version() string
- type AclStatus
- type AclStatusResult
- type AdlsAccessControlException
- type AdlsBadOffsetException
- type AdlsError
- type AdlsFileAlreadyExistsException
- type AdlsFileNotFoundException
- type AdlsIOException
- type AdlsIllegalArgumentException
- type AdlsRemoteException
- type AdlsRuntimeException
- type AdlsSecurityException
- type AdlsUnsupportedOperationException
- type AppendModeType
- type Client
- func (client Client) Append(directFilePath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client Client) AppendPreparer(directFilePath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client Client) AppendResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) AppendSender(req *http.Request) (*http.Response, error)
- func (client Client) CheckAccess(pathParameter string, op string, fsaction string) (result autorest.Response, err error)
- func (client Client) CheckAccessPreparer(pathParameter string, op string, fsaction string) (*http.Request, error)
- func (client Client) CheckAccessResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CheckAccessSender(req *http.Request) (*http.Response, error)
- func (client Client) Concat(destinationPath string, sources []string, op string) (result autorest.Response, err error)
- func (client Client) ConcatPreparer(destinationPath string, sources []string, op string) (*http.Request, error)
- func (client Client) ConcatResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ConcatSender(req *http.Request) (*http.Response, error)
- func (client Client) ConcurrentAppend(filePath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client Client) ConcurrentAppendPreparer(filePath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client Client) ConcurrentAppendResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ConcurrentAppendSender(req *http.Request) (*http.Response, error)
- func (client Client) Create(directFilePath string, op string, write string, transferEncoding string, ...) (result autorest.Response, err error)
- func (client Client) CreatePreparer(directFilePath string, op string, write string, transferEncoding string, ...) (*http.Request, error)
- func (client Client) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CreateSender(req *http.Request) (*http.Response, error)
- func (client Client) Delete(filePath string, op string, recursive *bool) (result FileOperationResult, err error)
- func (client Client) DeletePreparer(filePath string, op string, recursive *bool) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client Client) DeleteSender(req *http.Request) (*http.Response, error)
- func (client Client) GetAclStatus(aclFilePath string, op string) (result AclStatusResult, err error)
- func (client Client) GetAclStatusPreparer(aclFilePath string, op string) (*http.Request, error)
- func (client Client) GetAclStatusResponder(resp *http.Response) (result AclStatusResult, err error)
- func (client Client) GetAclStatusSender(req *http.Request) (*http.Response, error)
- func (client Client) GetContentSummary(getContentSummaryFilePath string, op string) (result ContentSummaryResult, err error)
- func (client Client) GetContentSummaryPreparer(getContentSummaryFilePath string, op string) (*http.Request, error)
- func (client Client) GetContentSummaryResponder(resp *http.Response) (result ContentSummaryResult, err error)
- func (client Client) GetContentSummarySender(req *http.Request) (*http.Response, error)
- func (client Client) GetFileStatus(getFilePath string, op string) (result FileStatusResult, err error)
- func (client Client) GetFileStatusPreparer(getFilePath string, op string) (*http.Request, error)
- func (client Client) GetFileStatusResponder(resp *http.Response) (result FileStatusResult, err error)
- func (client Client) GetFileStatusSender(req *http.Request) (*http.Response, error)
- func (client Client) ListFileStatus(listFilePath string, op string, listSize *int32, listAfter string, ...) (result FileStatusesResult, err error)
- func (client Client) ListFileStatusPreparer(listFilePath string, op string, listSize *int32, listAfter string, ...) (*http.Request, error)
- func (client Client) ListFileStatusResponder(resp *http.Response) (result FileStatusesResult, err error)
- func (client Client) ListFileStatusSender(req *http.Request) (*http.Response, error)
- func (client Client) Mkdirs(pathParameter string, op string) (result FileOperationResult, err error)
- func (client Client) MkdirsPreparer(pathParameter string, op string) (*http.Request, error)
- func (client Client) MkdirsResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client Client) MkdirsSender(req *http.Request) (*http.Response, error)
- func (client Client) ModifyAclEntries(modifyAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client Client) ModifyAclEntriesPreparer(modifyAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client Client) ModifyAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ModifyAclEntriesSender(req *http.Request) (*http.Response, error)
- func (client Client) MsConcat(msConcatDestinationPath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client Client) MsConcatPreparer(msConcatDestinationPath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client Client) MsConcatResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) MsConcatSender(req *http.Request) (*http.Response, error)
- func (client Client) Open(directFilePath string, op string, read string, length *int64, offset *int64) (result ReadCloser, err error)
- func (client Client) OpenPreparer(directFilePath string, op string, read string, length *int64, offset *int64) (*http.Request, error)
- func (client Client) OpenResponder(resp *http.Response) (result ReadCloser, err error)
- func (client Client) OpenSender(req *http.Request) (*http.Response, error)
- func (client Client) RemoveAclEntries(removeAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client Client) RemoveAclEntriesPreparer(removeAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client Client) RemoveAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) RemoveAclEntriesSender(req *http.Request) (*http.Response, error)
- func (client Client) Rename(renameFilePath string, destination string, op string) (result FileOperationResult, err error)
- func (client Client) RenamePreparer(renameFilePath string, destination string, op string) (*http.Request, error)
- func (client Client) RenameResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client Client) RenameSender(req *http.Request) (*http.Response, error)
- func (client Client) SetAcl(setAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client Client) SetAclPreparer(setAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client Client) SetAclResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SetAclSender(req *http.Request) (*http.Response, error)
- func (client Client) SetOwner(setOwnerFilePath string, op string, owner string, group string) (result autorest.Response, err error)
- func (client Client) SetOwnerPreparer(setOwnerFilePath string, op string, owner string, group string) (*http.Request, error)
- func (client Client) SetOwnerResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SetOwnerSender(req *http.Request) (*http.Response, error)
- func (client Client) SetPermission(setPermissionFilePath string, op string, permission string) (result autorest.Response, err error)
- func (client Client) SetPermissionPreparer(setPermissionFilePath string, op string, permission string) (*http.Request, error)
- func (client Client) SetPermissionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SetPermissionSender(req *http.Request) (*http.Response, error)
- type ContentSummary
- type ContentSummaryResult
- type FileOperationResult
- type FileStatusProperties
- type FileStatusResult
- type FileStatuses
- type FileStatusesResult
- type FileType
- type ManagementClient
- func (client ManagementClient) Append(directFilePath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client ManagementClient) AppendPreparer(directFilePath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client ManagementClient) AppendResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) AppendSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) CheckAccess(pathParameter string, op string, fsaction string) (result autorest.Response, err error)
- func (client ManagementClient) CheckAccessPreparer(pathParameter string, op string, fsaction string) (*http.Request, error)
- func (client ManagementClient) CheckAccessResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) CheckAccessSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Concat(destinationPath string, sources []string, op string) (result autorest.Response, err error)
- func (client ManagementClient) ConcatPreparer(destinationPath string, sources []string, op string) (*http.Request, error)
- func (client ManagementClient) ConcatResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) ConcatSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) ConcurrentAppend(filePath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client ManagementClient) ConcurrentAppendPreparer(filePath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client ManagementClient) ConcurrentAppendResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) ConcurrentAppendSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Create(directFilePath string, op string, write string, transferEncoding string, ...) (result autorest.Response, err error)
- func (client ManagementClient) CreatePreparer(directFilePath string, op string, write string, transferEncoding string, ...) (*http.Request, error)
- func (client ManagementClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Delete(filePath string, op string, recursive *bool) (result FileOperationResult, err error)
- func (client ManagementClient) DeletePreparer(filePath string, op string, recursive *bool) (*http.Request, error)
- func (client ManagementClient) DeleteResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client ManagementClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) GetAclStatus(aclFilePath string, op string) (result AclStatusResult, err error)
- func (client ManagementClient) GetAclStatusPreparer(aclFilePath string, op string) (*http.Request, error)
- func (client ManagementClient) GetAclStatusResponder(resp *http.Response) (result AclStatusResult, err error)
- func (client ManagementClient) GetAclStatusSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) GetContentSummary(getContentSummaryFilePath string, op string) (result ContentSummaryResult, err error)
- func (client ManagementClient) GetContentSummaryPreparer(getContentSummaryFilePath string, op string) (*http.Request, error)
- func (client ManagementClient) GetContentSummaryResponder(resp *http.Response) (result ContentSummaryResult, err error)
- func (client ManagementClient) GetContentSummarySender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) GetFileStatus(getFilePath string, op string) (result FileStatusResult, err error)
- func (client ManagementClient) GetFileStatusPreparer(getFilePath string, op string) (*http.Request, error)
- func (client ManagementClient) GetFileStatusResponder(resp *http.Response) (result FileStatusResult, err error)
- func (client ManagementClient) GetFileStatusSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) ListFileStatus(listFilePath string, op string, listSize *int32, listAfter string, ...) (result FileStatusesResult, err error)
- func (client ManagementClient) ListFileStatusPreparer(listFilePath string, op string, listSize *int32, listAfter string, ...) (*http.Request, error)
- func (client ManagementClient) ListFileStatusResponder(resp *http.Response) (result FileStatusesResult, err error)
- func (client ManagementClient) ListFileStatusSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Mkdirs(pathParameter string, op string) (result FileOperationResult, err error)
- func (client ManagementClient) MkdirsPreparer(pathParameter string, op string) (*http.Request, error)
- func (client ManagementClient) MkdirsResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client ManagementClient) MkdirsSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) ModifyAclEntries(modifyAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client ManagementClient) ModifyAclEntriesPreparer(modifyAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client ManagementClient) ModifyAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) ModifyAclEntriesSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) MsConcat(msConcatDestinationPath string, streamContents io.ReadCloser, op string, ...) (result autorest.Response, err error)
- func (client ManagementClient) MsConcatPreparer(msConcatDestinationPath string, streamContents io.ReadCloser, op string, ...) (*http.Request, error)
- func (client ManagementClient) MsConcatResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) MsConcatSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Open(directFilePath string, op string, read string, length *int64, offset *int64) (result ReadCloser, err error)
- func (client ManagementClient) OpenPreparer(directFilePath string, op string, read string, length *int64, offset *int64) (*http.Request, error)
- func (client ManagementClient) OpenResponder(resp *http.Response) (result ReadCloser, err error)
- func (client ManagementClient) OpenSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) RemoveAclEntries(removeAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client ManagementClient) RemoveAclEntriesPreparer(removeAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client ManagementClient) RemoveAclEntriesResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) RemoveAclEntriesSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) Rename(renameFilePath string, destination string, op string) (result FileOperationResult, err error)
- func (client ManagementClient) RenamePreparer(renameFilePath string, destination string, op string) (*http.Request, error)
- func (client ManagementClient) RenameResponder(resp *http.Response) (result FileOperationResult, err error)
- func (client ManagementClient) RenameSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) SetAcl(setAclFilePath string, aclspec string, op string) (result autorest.Response, err error)
- func (client ManagementClient) SetAclPreparer(setAclFilePath string, aclspec string, op string) (*http.Request, error)
- func (client ManagementClient) SetAclResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) SetAclSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) SetOwner(setOwnerFilePath string, op string, owner string, group string) (result autorest.Response, err error)
- func (client ManagementClient) SetOwnerPreparer(setOwnerFilePath string, op string, owner string, group string) (*http.Request, error)
- func (client ManagementClient) SetOwnerResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) SetOwnerSender(req *http.Request) (*http.Response, error)
- func (client ManagementClient) SetPermission(setPermissionFilePath string, op string, permission string) (result autorest.Response, err error)
- func (client ManagementClient) SetPermissionPreparer(setPermissionFilePath string, op string, permission string) (*http.Request, error)
- func (client ManagementClient) SetPermissionResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementClient) SetPermissionSender(req *http.Request) (*http.Response, error)
- type ReadCloser
Constants ¶
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"` 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 NewClientWithBaseURI ¶
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 ¶
AppendResponder handles the response to the Append request. The method always closes the http.Response Body.
func (Client) AppendSender ¶
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 ¶
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 ¶
ConcatResponder handles the response to the Concat request. The method always closes the http.Response Body.
func (Client) ConcatSender ¶
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 ¶
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 ¶
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (Client) CreateSender ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MsConcatResponder handles the response to the MsConcat request. The method always closes the http.Response Body.
func (Client) MsConcatSender ¶
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 ¶
OpenSender sends the Open request. The method will close the http.Response Body if it receives an error.
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 ¶
RemoveAclEntriesSender sends the RemoveAclEntries 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 ¶
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 ¶
SetAclResponder handles the response to the SetAcl request. The method always closes the http.Response Body.
func (Client) SetAclSender ¶
SetAclSender sends the SetAcl 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 ¶
SetOwnerResponder handles the response to the SetOwner request. The method always closes the http.Response Body.
func (Client) SetOwnerSender ¶
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.
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 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"` 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 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
OpenSender sends the Open request. The method will close the http.Response Body if it receives an error.
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 ¶
RemoveAclEntriesSender sends the RemoveAclEntries 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 ¶
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 ¶
SetAclSender sends the SetAcl 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 ¶
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 ¶
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