alluxio-go: github.com/Alluxio/alluxio-go/option Index | Files

package option

import "github.com/Alluxio/alluxio-go/option"

Package option contains types for method options.

Index

Package Files

create_directory.go create_file.go delete.go doc.go exists.go free.go get_status.go list_status.go mount.go open_file.go rename.go set_attribute.go unmount.go

type CreateDirectory Uses

type CreateDirectory struct {
    AllowExists *bool           `json:"allowExists,omitempty"`
    Mode        *wire.Mode      `json:"mode,omitempty"`
    Recursive   *bool           `json:"recursive,omitempty"`
    WriteType   *wire.WriteType `json:"writeType,omitempty"`
}

CreateDirectory holds the options for creating a directory.

func (*CreateDirectory) SetAllowExists Uses

func (option *CreateDirectory) SetAllowExists(value bool)

SetAllowExists sets the bit that determines whether the directory to be created is allowed to exist.

func (*CreateDirectory) SetMode Uses

func (option *CreateDirectory) SetMode(value wire.Mode)

SetMode sets the access mode.

func (*CreateDirectory) SetRecursive Uses

func (option *CreateDirectory) SetRecursive(value bool)

SetRecursive sets the bit that determines whether non-existent ancestors of the directory to be created should be created as well.

func (*CreateDirectory) SetWriteType Uses

func (option *CreateDirectory) SetWriteType(value wire.WriteType)

SetWriteType sets the write type.

type CreateFile Uses

type CreateFile struct {
    BlockSizeBytes      *int64          `json:"blockSizeBytes,omitempty"`
    LocationPolicyClass *string         `json:"locationPolicyClass,omitempty"`
    Mode                *wire.Mode      `json:"mode,omitempty"`
    Recursive           *bool           `json:"recursive,omitempty"`
    TTL                 *int64          `json:"ttl,omitempty"`
    TTLAction           *wire.TTLAction `json:"ttlAction,omitempty"`
    WriteType           *wire.WriteType `json:"writeType,omitempty"`
}

CreateFile holds the options for creating a file.

func (*CreateFile) SetBlockSizeBytes Uses

func (option *CreateFile) SetBlockSizeBytes(value int64)

SetBlockSizeBytes sets the block size (in bytes).

func (*CreateFile) SetLocationPolicyClass Uses

func (option *CreateFile) SetLocationPolicyClass(value string)

SetLocationPolicyClass sets the location policy class.

func (*CreateFile) SetMode Uses

func (option *CreateFile) SetMode(value wire.Mode)

SetMode sets the mode.

func (*CreateFile) SetRecursive Uses

func (option *CreateFile) SetRecursive(value bool)

SetRecursive sets the bit that determines whether non-existent ancestors of the file to be created should be created as well.

func (*CreateFile) SetTTL Uses

func (option *CreateFile) SetTTL(value int64)

SetTTL sets the time-to-live window. Once this window expires a time-to-live action is performed.

func (*CreateFile) SetTTLAction Uses

func (option *CreateFile) SetTTLAction(value wire.TTLAction)

SetTTLAction sets the time-to-live action, which is execute once the time-to-live window expires.

func (*CreateFile) SetWriteType Uses

func (option *CreateFile) SetWriteType(value wire.WriteType)

SetWriteType sets the write type.

type Delete Uses

type Delete struct {
    Recursive *bool `json:"recursive,omitempty"`
}

Delete holds the options for deleting a path.

func (*Delete) SetRecursive Uses

func (option *Delete) SetRecursive(value bool)

SetRecursive sets the bit which determines whether the path should be deleted recursively.

type Exists Uses

type Exists struct{}

Exists holds the options for checking whether a path exists.

type Free Uses

type Free struct {
    Recursive *bool `json:"recursive,omitempty"`
}

Free holds the options for freeing a path.

func (*Free) SetRecursive Uses

func (option *Free) SetRecursive(value bool)

SetRecursive sets the bit which determines whether the path should be freed recursively.

type GetStatus Uses

type GetStatus struct{}

GetStatus holds the options for fetching a path status.

type ListStatus Uses

type ListStatus struct {
    LoadMetadataType *wire.LoadMetadataType `json:"loadMetadataType,omitempty"`
}

ListStatus holds the options for listing a path.

func (*ListStatus) SetLoadMetadataType Uses

func (option *ListStatus) SetLoadMetadataType(value wire.LoadMetadataType)

SetLoadMetadataType sets the type, which determines whether to load metadata for children of a directory.

type Mount Uses

type Mount struct {
    Properties map[string]string `json:"properties,omitempty"`
    ReadOnly   *bool             `json:"readOnly,omitempty"`
    Shared     *bool             `json:"shared,omitempty"`
}

Mount holds the options for mounting a path.

func (*Mount) SetProperties Uses

func (option *Mount) SetProperties(value map[string]string)

SetProperties sets the mount point properties.

func (*Mount) SetReadOnly Uses

func (option *Mount) SetReadOnly(value bool)

SetReadOnly sets the bit which determines whether the mount point is read-only.

func (*Mount) SetShared Uses

func (option *Mount) SetShared(value bool)

SetShared which determines whether this mount point is shared among multiple users.

type OpenFile Uses

type OpenFile struct {
    LocationPolicyClass *string        `json:"locationPolicyClass,omitempty"`
    ReadType            *wire.ReadType `json:"readType,omitempty"`
}

OpenFile holds the options for opening a file.

func (*OpenFile) SetLocationPolicyClass Uses

func (option *OpenFile) SetLocationPolicyClass(value string)

SetLocationPolicyClass sets the location policy class.

func (*OpenFile) SetReadType Uses

func (option *OpenFile) SetReadType(value wire.ReadType)

SetReadType sets the read type.

type Rename Uses

type Rename struct{}

Rename holds the options for renaming a path.

type SetAttribute Uses

type SetAttribute struct {
    Group     *string         `json:"group,omitempty"`
    Mode      *wire.Mode      `json:"mode,omitempty"`
    Owner     *string         `json:"owner,omitempty"`
    Persisted *bool           `json:"persisted,omitempty"`
    Pinned    *bool           `json:"pinned,omitempty"`
    Recursive *bool           `json:"recursive,omitempty"`
    TTL       *int64          `json:"ttl,omitempty"`
    TTLAction *wire.TTLAction `json:"ttlAction,omitempty"`
}

SetAttribute holds the options for setting path attributes.

func (*SetAttribute) SetGroup Uses

func (option *SetAttribute) SetGroup(value string)

SetGroup sets the group.

func (*SetAttribute) SetMode Uses

func (option *SetAttribute) SetMode(value wire.Mode)

SetMode sets the access mode.

func (*SetAttribute) SetOwner Uses

func (option *SetAttribute) SetOwner(value string)

SetOwner sets the owner.

func (*SetAttribute) SetPersisted Uses

func (option *SetAttribute) SetPersisted(value bool)

SetPersisted sets the bit which determines whether the path is persisted.

func (*SetAttribute) SetPinned Uses

func (option *SetAttribute) SetPinned(value bool)

SetPinned sets the bit which determines whether a path is pinned.

func (*SetAttribute) SetRecursive Uses

func (option *SetAttribute) SetRecursive(value bool)

SetRecursive sets the bit which determines whether the attributes should be set recursively.

func (*SetAttribute) SetTTL Uses

func (option *SetAttribute) SetTTL(value int64)

SetTTL sets the time-to-live window. Once this window expires a time-to-live action is performed.

func (*SetAttribute) SetTTLAction Uses

func (option *SetAttribute) SetTTLAction(value wire.TTLAction)

SetTTLAction sets the time-to-live action, which is execute once the time-to-live window expires.

type Unmount Uses

type Unmount struct{}

Unmount holds the options for unmounting a path.

Package option imports 1 packages (graph) and is imported by 2 packages. Updated 2018-01-01. Refresh now. Tools for package owners.