Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Team Port Settings
Synopsis
- newtype SettingTeamPort = SettingTeamPort (ManagedPtr SettingTeamPort)
- class (GObject o, IsDescendantOf SettingTeamPort o) => IsSettingTeamPort o
- toSettingTeamPort :: (MonadIO m, IsSettingTeamPort o) => o -> m SettingTeamPort
- settingTeamPortAddLinkWatcher :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> TeamLinkWatcher -> m Bool
- settingTeamPortClearLinkWatchers :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m ()
- settingTeamPortGetConfig :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Text
- settingTeamPortGetLacpKey :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Int32
- settingTeamPortGetLacpPrio :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Int32
- settingTeamPortGetLinkWatcher :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> Word32 -> m TeamLinkWatcher
- settingTeamPortGetNumLinkWatchers :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Word32
- settingTeamPortGetPrio :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Int32
- settingTeamPortGetQueueId :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Int32
- settingTeamPortGetSticky :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> m Bool
- settingTeamPortNew :: (HasCallStack, MonadIO m) => m SettingTeamPort
- settingTeamPortRemoveLinkWatcher :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> Word32 -> m ()
- settingTeamPortRemoveLinkWatcherByValue :: (HasCallStack, MonadIO m, IsSettingTeamPort a) => a -> TeamLinkWatcher -> m Bool
- clearSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> m ()
- constructSettingTeamPortConfig :: (IsSettingTeamPort o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> m Text
- setSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> Text -> m ()
- constructSettingTeamPortLacpKey :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingTeamPortLacpKey :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32
- setSettingTeamPortLacpKey :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m ()
- constructSettingTeamPortLacpPrio :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingTeamPortLacpPrio :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32
- setSettingTeamPortLacpPrio :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m ()
- constructSettingTeamPortPrio :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingTeamPortPrio :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32
- setSettingTeamPortPrio :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m ()
- constructSettingTeamPortQueueId :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getSettingTeamPortQueueId :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32
- setSettingTeamPortQueueId :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m ()
- constructSettingTeamPortSticky :: (IsSettingTeamPort o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSettingTeamPortSticky :: (MonadIO m, IsSettingTeamPort o) => o -> m Bool
- setSettingTeamPortSticky :: (MonadIO m, IsSettingTeamPort o) => o -> Bool -> m ()
Exported types
newtype SettingTeamPort Source #
Memory-managed wrapper type.
Instances
Eq SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort (==) :: SettingTeamPort -> SettingTeamPort -> Bool # (/=) :: SettingTeamPort -> SettingTeamPort -> Bool # | |
GObject SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort | |
ManagedPtrNewtype SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort | |
TypedObject SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort | |
HasParentTypes SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort | |
IsGValue (Maybe SettingTeamPort) Source # | Convert |
Defined in GI.NM.Objects.SettingTeamPort gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingTeamPort -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingTeamPort) # | |
type ParentTypes SettingTeamPort Source # | |
Defined in GI.NM.Objects.SettingTeamPort |
class (GObject o, IsDescendantOf SettingTeamPort o) => IsSettingTeamPort o Source #
Type class for types which can be safely cast to SettingTeamPort
, for instance with toSettingTeamPort
.
Instances
(GObject o, IsDescendantOf SettingTeamPort o) => IsSettingTeamPort o Source # | |
Defined in GI.NM.Objects.SettingTeamPort |
toSettingTeamPort :: (MonadIO m, IsSettingTeamPort o) => o -> m SettingTeamPort Source #
Cast to SettingTeamPort
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addLinkWatcher, bindProperty, bindPropertyFull, clearLinkWatchers, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeLinkWatcher, removeLinkWatcherByValue, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getConfig, getData, getDbusPropertyType, getLacpKey, getLacpPrio, getLinkWatcher, getName, getNumLinkWatchers, getPrio, getProperty, getQdata, getQueueId, getSecretFlags, getSticky.
Setters
addLinkWatcher
settingTeamPortAddLinkWatcher Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> TeamLinkWatcher |
|
-> m Bool | Returns: |
Appends a new link watcher to the setting.
Since: 1.12
clearLinkWatchers
settingTeamPortClearLinkWatchers Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m () |
Removes all configured link watchers.
Since: 1.12
getConfig
settingTeamPortGetConfig Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Text | Returns: the SettingTeamPort:config property of the setting |
No description available in the introspection data.
getLacpKey
settingTeamPortGetLacpKey Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Int32 | Returns: the SettingTeamPort:lacpKey property of the setting |
No description available in the introspection data.
Since: 1.12
getLacpPrio
settingTeamPortGetLacpPrio Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Int32 | Returns: the SettingTeamPort:lacpPrio property of the setting |
No description available in the introspection data.
Since: 1.12
getLinkWatcher
settingTeamPortGetLinkWatcher Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> Word32 |
|
-> m TeamLinkWatcher | Returns: the link watcher at index |
No description available in the introspection data.
Since: 1.12
getNumLinkWatchers
settingTeamPortGetNumLinkWatchers Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Word32 | Returns: the number of configured link watchers |
No description available in the introspection data.
Since: 1.12
getPrio
settingTeamPortGetPrio Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Int32 | Returns: the SettingTeamPort:prio property of the setting |
No description available in the introspection data.
Since: 1.12
getQueueId
settingTeamPortGetQueueId Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Int32 | Returns: the |
No description available in the introspection data.
Since: 1.12
getSticky
settingTeamPortGetSticky Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> m Bool | Returns: the SettingTeamPort:sticky property of the setting |
No description available in the introspection data.
Since: 1.12
new
:: (HasCallStack, MonadIO m) | |
=> m SettingTeamPort | Returns: the new empty |
Creates a new SettingTeamPort
object with default values.
removeLinkWatcher
settingTeamPortRemoveLinkWatcher Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the link watcher at index idx
.
Since: 1.12
removeLinkWatcherByValue
settingTeamPortRemoveLinkWatcherByValue Source #
:: (HasCallStack, MonadIO m, IsSettingTeamPort a) | |
=> a |
|
-> TeamLinkWatcher |
|
-> m Bool | Returns: |
Removes the link watcher entry matching link_watcher.
Since: 1.12
Properties
config
The JSON configuration for the team port. The property should contain raw JSON configuration data suitable for teamd, because the value is passed directly to teamd. If not specified, the default configuration is used. See man teamd.conf for the format details.
clearSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> m () Source #
Set the value of the “config
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#config
constructSettingTeamPortConfig :: (IsSettingTeamPort o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “config
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> m Text Source #
Get the value of the “config
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #config
setSettingTeamPortConfig :: (MonadIO m, IsSettingTeamPort o) => o -> Text -> m () Source #
Set the value of the “config
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #config:=
value ]
lacpKey
Corresponds to the teamd ports.PORTIFNAME.lacp_key.
Since: 1.12
constructSettingTeamPortLacpKey :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “lacp-key
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortLacpKey :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32 Source #
Get the value of the “lacp-key
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #lacpKey
setSettingTeamPortLacpKey :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m () Source #
Set the value of the “lacp-key
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #lacpKey:=
value ]
lacpPrio
Corresponds to the teamd ports.PORTIFNAME.lacp_prio.
Since: 1.12
constructSettingTeamPortLacpPrio :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “lacp-prio
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortLacpPrio :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32 Source #
Get the value of the “lacp-prio
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #lacpPrio
setSettingTeamPortLacpPrio :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m () Source #
Set the value of the “lacp-prio
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #lacpPrio:=
value ]
linkWatchers
prio
Corresponds to the teamd ports.PORTIFNAME.prio.
Since: 1.12
constructSettingTeamPortPrio :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “prio
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortPrio :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32 Source #
Get the value of the “prio
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #prio
setSettingTeamPortPrio :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m () Source #
Set the value of the “prio
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #prio:=
value ]
queueId
Corresponds to the teamd ports.PORTIFNAME.queue_id. When set to -1 means the parameter is skipped from the json config.
Since: 1.12
constructSettingTeamPortQueueId :: (IsSettingTeamPort o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “queue-id
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortQueueId :: (MonadIO m, IsSettingTeamPort o) => o -> m Int32 Source #
Get the value of the “queue-id
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #queueId
setSettingTeamPortQueueId :: (MonadIO m, IsSettingTeamPort o) => o -> Int32 -> m () Source #
Set the value of the “queue-id
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #queueId:=
value ]
sticky
Corresponds to the teamd ports.PORTIFNAME.sticky.
Since: 1.12
constructSettingTeamPortSticky :: (IsSettingTeamPort o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “sticky
” property. This is rarely needed directly, but it is used by new
.
getSettingTeamPortSticky :: (MonadIO m, IsSettingTeamPort o) => o -> m Bool Source #
Get the value of the “sticky
” property.
When overloading is enabled, this is equivalent to
get
settingTeamPort #sticky
setSettingTeamPortSticky :: (MonadIO m, IsSettingTeamPort o) => o -> Bool -> m () Source #
Set the value of the “sticky
” property.
When overloading is enabled, this is equivalent to
set
settingTeamPort [ #sticky:=
value ]