option

package
v0.0.0-...-d8c9fa5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: Apache-2.0, BSD-2-Clause, EPL-1.0, + 1 more Imports: 1 Imported by: 1

Documentation

Overview

Package option contains types for method options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDirectory

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

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

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

SetMode sets the access mode.

func (*CreateDirectory) SetRecursive

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

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

SetWriteType sets the write type.

type CreateFile

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

func (option *CreateFile) SetBlockSizeBytes(value int64)

SetBlockSizeBytes sets the block size (in bytes).

func (*CreateFile) SetLocationPolicyClass

func (option *CreateFile) SetLocationPolicyClass(value string)

SetLocationPolicyClass sets the location policy class.

func (*CreateFile) SetMode

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

SetMode sets the mode.

func (*CreateFile) SetRecursive

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

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

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

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

SetWriteType sets the write type.

type Delete

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

Delete holds the options for deleting a path.

func (*Delete) SetRecursive

func (option *Delete) SetRecursive(value bool)

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

type Exists

type Exists struct{}

Exists holds the options for checking whether a path exists.

type Free

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

Free holds the options for freeing a path.

func (*Free) SetRecursive

func (option *Free) SetRecursive(value bool)

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

type GetStatus

type GetStatus struct{}

GetStatus holds the options for fetching a path status.

type ListStatus

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

ListStatus holds the options for listing a path.

func (*ListStatus) SetLoadMetadataType

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

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

type Mount

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

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

SetProperties sets the mount point properties.

func (*Mount) SetReadOnly

func (option *Mount) SetReadOnly(value bool)

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

func (*Mount) SetShared

func (option *Mount) SetShared(value bool)

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

type OpenFile

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

func (option *OpenFile) SetLocationPolicyClass(value string)

SetLocationPolicyClass sets the location policy class.

func (*OpenFile) SetReadType

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

SetReadType sets the read type.

type Rename

type Rename struct{}

Rename holds the options for renaming a path.

type SetAttribute

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

func (option *SetAttribute) SetGroup(value string)

SetGroup sets the group.

func (*SetAttribute) SetMode

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

SetMode sets the access mode.

func (*SetAttribute) SetOwner

func (option *SetAttribute) SetOwner(value string)

SetOwner sets the owner.

func (*SetAttribute) SetPersisted

func (option *SetAttribute) SetPersisted(value bool)

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

func (*SetAttribute) SetPinned

func (option *SetAttribute) SetPinned(value bool)

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

func (*SetAttribute) SetRecursive

func (option *SetAttribute) SetRecursive(value bool)

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

func (*SetAttribute) SetTTL

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

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

type Unmount struct{}

Unmount holds the options for unmounting a path.

Jump to

Keyboard shortcuts

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