1 package filesystemapi
2
3
4
5
6
7
8
9 import (
10 "context"
11 "github.com/Azure/azure-sdk-for-go/services/datalake/store/2016-11-01/filesystem"
12 "github.com/Azure/go-autorest/autorest"
13 "github.com/gofrs/uuid"
14 "io"
15 )
16
17
18 type ClientAPI interface {
19 Append(ctx context.Context, accountName string, pathParameter string, streamContents io.ReadCloser, offset *int64, syncFlag filesystem.SyncFlag, leaseID *uuid.UUID, fileSessionID *uuid.UUID) (result autorest.Response, err error)
20 CheckAccess(ctx context.Context, accountName string, pathParameter string, fsaction string) (result autorest.Response, err error)
21 Concat(ctx context.Context, accountName string, pathParameter string, sources []string) (result autorest.Response, err error)
22 ConcurrentAppend(ctx context.Context, accountName string, pathParameter string, streamContents io.ReadCloser, appendMode filesystem.AppendModeType, syncFlag filesystem.SyncFlag) (result autorest.Response, err error)
23 Create(ctx context.Context, accountName string, pathParameter string, streamContents io.ReadCloser, overwrite *bool, syncFlag filesystem.SyncFlag, leaseID *uuid.UUID, permission *int32) (result autorest.Response, err error)
24 Delete(ctx context.Context, accountName string, pathParameter string, recursive *bool) (result filesystem.FileOperationResult, err error)
25 GetACLStatus(ctx context.Context, accountName string, pathParameter string, tooID *bool) (result filesystem.ACLStatusResult, err error)
26 GetContentSummary(ctx context.Context, accountName string, pathParameter string) (result filesystem.ContentSummaryResult, err error)
27 GetFileStatus(ctx context.Context, accountName string, pathParameter string, tooID *bool) (result filesystem.FileStatusResult, err error)
28 ListFileStatus(ctx context.Context, accountName string, pathParameter string, listSize *int32, listAfter string, listBefore string, tooID *bool) (result filesystem.FileStatusesResult, err error)
29 Mkdirs(ctx context.Context, accountName string, pathParameter string, permission *int32) (result filesystem.FileOperationResult, err error)
30 ModifyACLEntries(ctx context.Context, accountName string, pathParameter string, aclspec string) (result autorest.Response, err error)
31 MsConcat(ctx context.Context, accountName string, pathParameter string, streamContents io.ReadCloser, deleteSourceDirectory *bool) (result autorest.Response, err error)
32 Open(ctx context.Context, accountName string, pathParameter string, length *int64, offset *int64, fileSessionID *uuid.UUID) (result filesystem.ReadCloser, err error)
33 RemoveACL(ctx context.Context, accountName string, pathParameter string) (result autorest.Response, err error)
34 RemoveACLEntries(ctx context.Context, accountName string, pathParameter string, aclspec string) (result autorest.Response, err error)
35 RemoveDefaultACL(ctx context.Context, accountName string, pathParameter string) (result autorest.Response, err error)
36 Rename(ctx context.Context, accountName string, pathParameter string, destination string) (result filesystem.FileOperationResult, err error)
37 SetACL(ctx context.Context, accountName string, pathParameter string, aclspec string) (result autorest.Response, err error)
38 SetFileExpiry(ctx context.Context, accountName string, pathParameter string, expiryOption filesystem.ExpiryOptionType, expireTime *int64) (result autorest.Response, err error)
39 SetOwner(ctx context.Context, accountName string, pathParameter string, owner string, group string) (result autorest.Response, err error)
40 SetPermission(ctx context.Context, accountName string, pathParameter string, permission string) (result autorest.Response, err error)
41 }
42
43 var _ ClientAPI = (*filesystem.Client)(nil)
44
View as plain text