gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingTeamPort

Description

Team Port Settings

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf SettingTeamPort o) => IsSettingTeamPort o Source # 
Instance details

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

addLinkWatcher

settingTeamPortAddLinkWatcher Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> TeamLinkWatcher

linkWatcher: the link watcher to add

-> m Bool

Returns: True if the link watcher is added; False if an identical link watcher was already there.

Appends a new link watcher to the setting.

Since: 1.12

clearLinkWatchers

settingTeamPortClearLinkWatchers Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m () 

Removes all configured link watchers.

Since: 1.12

getConfig

settingTeamPortGetConfig Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Text

Returns: the SettingTeamPort:config property of the setting

No description available in the introspection data.

getLacpKey

settingTeamPortGetLacpKey Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Int32

Returns: the SettingTeamPort:lacpKey property of the setting

No description available in the introspection data.

Since: 1.12

getLacpPrio

settingTeamPortGetLacpPrio Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Int32

Returns: the SettingTeamPort:lacpPrio property of the setting

No description available in the introspection data.

Since: 1.12

getLinkWatcher

settingTeamPortGetLinkWatcher Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> Word32

idx: index number of the link watcher to return

-> m TeamLinkWatcher

Returns: the link watcher at index idx.

No description available in the introspection data.

Since: 1.12

getNumLinkWatchers

settingTeamPortGetNumLinkWatchers Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Word32

Returns: the number of configured link watchers

No description available in the introspection data.

Since: 1.12

getPrio

settingTeamPortGetPrio Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Int32

Returns: the SettingTeamPort:prio property of the setting

No description available in the introspection data.

Since: 1.12

getQueueId

settingTeamPortGetQueueId Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Int32

Returns: the SettingTeamPort:queue_id property of the setting

No description available in the introspection data.

Since: 1.12

getSticky

settingTeamPortGetSticky Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> m Bool

Returns: the SettingTeamPort:sticky property of the setting

No description available in the introspection data.

Since: 1.12

new

settingTeamPortNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingTeamPort

Returns: the new empty SettingTeamPort object

Creates a new SettingTeamPort object with default values.

removeLinkWatcher

settingTeamPortRemoveLinkWatcher Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> Word32

idx: index number of the link watcher to remove

-> m () 

Removes the link watcher at index idx.

Since: 1.12

removeLinkWatcherByValue

settingTeamPortRemoveLinkWatcherByValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingTeamPort a) 
=> a

setting: the SettingTeamPort

-> TeamLinkWatcher

linkWatcher: the link watcher to remove

-> m Bool

Returns: True if the link watcher was found and removed, False otherwise.

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 ]