paths

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *storage.Client
}

Client is the base client for Data Lake Storage Path

func NewWithBaseUri added in v0.21.0

func NewWithBaseUri(baseUri string) (*Client, error)

func (Client) Create

func (c Client) Create(ctx context.Context, fileSystemName string, path string, input CreateInput) (resp CreateResponse, err error)

Create creates a Data Lake Store Gen2 Path within a Storage Account

func (Client) Delete

func (c Client) Delete(ctx context.Context, fileSystemName string, path string) (resp DeleteResponse, err error)

Delete deletes a Data Lake Store Gen2 FileSystem within a Storage Account

func (Client) GetProperties

func (c Client) GetProperties(ctx context.Context, fileSystemName string, path string, input GetPropertiesInput) (resp GetPropertiesResponse, err error)

GetProperties gets the properties for a Data Lake Store Gen2 Path in a FileSystem within a Storage Account

func (Client) SetAccessControl

func (c Client) SetAccessControl(ctx context.Context, fileSystemName string, path string, input SetAccessControlInput) (resp SetPropertiesResponse, err error)

SetProperties sets the access control properties for a Data Lake Store Gen2 Path within a Storage Account File System

type CreateInput

type CreateInput struct {
	Resource PathResource
}

func (CreateInput) ToHeaders added in v0.21.0

func (c CreateInput) ToHeaders() *client.Headers

func (CreateInput) ToOData added in v0.21.0

func (c CreateInput) ToOData() *odata.Query

func (CreateInput) ToQuery added in v0.21.0

func (c CreateInput) ToQuery() *client.QueryParams

type CreateResponse added in v0.21.0

type CreateResponse struct {
	HttpResponse *client.Response
}

type DeleteResponse added in v0.21.0

type DeleteResponse struct {
	HttpResponse *client.Response
}

type GetPropertiesAction

type GetPropertiesAction string
const (
	GetPropertiesActionGetStatus        GetPropertiesAction = "getStatus"
	GetPropertiesActionGetAccessControl GetPropertiesAction = "getAccessControl"
)

type GetPropertiesInput added in v0.21.0

type GetPropertiesInput struct {
	// contains filtered or unexported fields
}

type GetPropertiesResponse

type GetPropertiesResponse struct {
	HttpResponse *client.Response

	ETag         string
	LastModified time.Time
	// ResourceType is only returned for GetPropertiesActionGetStatus requests
	ResourceType PathResource
	Owner        string
	Group        string
	// ACL is only returned for GetPropertiesActionGetAccessControl requests
	ACL string
}

type PathId added in v0.22.0

type PathId struct {
	// AccountId specifies the ID of the Storage Account where this path exists.
	AccountId accounts.AccountId

	// FileSystemName specifies the name of the Data Lake FileSystem where this Path exists.
	FileSystemName string

	// Path specifies the path in question.
	Path string
}

func NewPathID added in v0.22.0

func NewPathID(accountId accounts.AccountId, fileSystemName, path string) PathId

func ParsePathID added in v0.22.0

func ParsePathID(input, domainSuffix string) (*PathId, error)

ParsePathID parses `input` into a Path ID using a known `domainSuffix`

func (PathId) ID added in v0.22.0

func (b PathId) ID() string

func (PathId) String added in v0.22.0

func (b PathId) String() string

type PathResource

type PathResource string
const PathResourceDirectory PathResource = "directory"
const PathResourceFile PathResource = "file"

type SetAccessControlInput

type SetAccessControlInput struct {
	Owner *string
	Group *string
	ACL   *string

	// Optional - A date and time value.
	// Specify this header to perform the operation only if the resource has been modified since the specified date and time.
	IfModifiedSince *string

	// Optional - A date and time value.
	// Specify this header to perform the operation only if the resource has not been modified since the specified date and time.
	IfUnmodifiedSince *string
}

type SetPropertiesResponse added in v0.21.0

type SetPropertiesResponse struct {
	HttpResponse *client.Response
}

Jump to

Keyboard shortcuts

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