Documentation ¶
Overview ¶
Package option contains types for method options.
Index ¶
- type CreateDirectory
- type CreateFile
- func (option *CreateFile) SetBlockSizeBytes(value int64)
- func (option *CreateFile) SetLocationPolicyClass(value string)
- func (option *CreateFile) SetMode(value wire.Mode)
- func (option *CreateFile) SetRecursive(value bool)
- func (option *CreateFile) SetTTL(value int64)
- func (option *CreateFile) SetTTLAction(value wire.TTLAction)
- func (option *CreateFile) SetWriteType(value wire.WriteType)
- type Delete
- type Exists
- type Free
- type GetStatus
- type ListStatus
- type Mount
- type OpenFile
- type Rename
- type SetAttribute
- func (option *SetAttribute) SetGroup(value string)
- func (option *SetAttribute) SetMode(value wire.Mode)
- func (option *SetAttribute) SetOwner(value string)
- func (option *SetAttribute) SetPersisted(value bool)
- func (option *SetAttribute) SetPinned(value bool)
- func (option *SetAttribute) SetRecursive(value bool)
- func (option *SetAttribute) SetTTL(value int64)
- func (option *SetAttribute) SetTTLAction(value wire.TTLAction)
- type Unmount
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 ¶
SetRecursive sets the bit which determines whether the path should be deleted recursively.
type Free ¶
type Free struct {
Recursive *bool `json:"recursive,omitempty"`
}
Free holds the options for freeing a path.
func (*Free) SetRecursive ¶
SetRecursive sets the bit which determines whether the path should be freed recursively.
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"` }
Mount holds the options for mounting a path.
func (*Mount) SetProperties ¶
SetProperties sets the mount point properties.
func (*Mount) SetReadOnly ¶
SetReadOnly sets the bit which determines whether the mount point is read-only.
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 ¶
SetLocationPolicyClass sets the location policy class.
func (*OpenFile) SetReadType ¶
SetReadType sets the read type.
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.