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) RemoveACL(aclFilePath string, op string) (result autorest.Response, err 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) RemoveACLPreparer(aclFilePath string, op string) (*http.Request, error)
- func (client Client) RemoveACLResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) RemoveACLSender(req *http.Request) (*http.Response, error)
- func (client Client) RemoveDefaultACL(defaultACLFilePath string, op string) (result autorest.Response, err error)
- func (client Client) RemoveDefaultACLPreparer(defaultACLFilePath string, op string) (*http.Request, error)
- func (client Client) RemoveDefaultACLResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) RemoveDefaultACLSender(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) SetFileExpiry(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (result autorest.Response, err error)
- func (client Client) SetFileExpiryPreparer(filePath string, expiryOption ExpiryOptionType, op string, expireTime *int64) (*http.Request, error)
- func (client Client) SetFileExpiryResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SetFileExpirySender(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 ExpiryOptionType
- type FileOperationResult
- type FileStatusProperties
- type FileStatusResult
- type FileStatuses
- type FileStatusesResult
- type FileType
- type ManagementClient
- 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"` 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 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) RemoveACL ¶
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 ¶
RemoveACLEntriesSender sends the RemoveACLEntries request. The method will close the http.Response Body if it receives an error.
func (Client) RemoveACLPreparer ¶
RemoveACLPreparer prepares the RemoveACL request.
func (Client) RemoveACLResponder ¶
RemoveACLResponder handles the response to the RemoveACL request. The method always closes the http.Response Body.
func (Client) RemoveACLSender ¶
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 ¶
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 ¶
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) 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 ¶
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 ¶
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 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 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.
type ReadCloser ¶
type ReadCloser struct { autorest.Response `json:"-"` Value *io.ReadCloser `json:"value,omitempty"` }
ReadCloser is