Documentation
¶
Index ¶
- Variables
- type ActivateKeypads
- type AddTask
- type ClearTaskList
- type ClearTimeProfiles
- type Command
- type CompareACL
- type Context
- type DeleteCard
- type DeleteCards
- type GetACL
- type GetCard
- type GetCards
- type GetDevice
- type GetDevices
- type GetDoorControl
- type GetDoorDelay
- type GetEvent
- type GetEventIndex
- type GetEvents
- type GetListener
- type GetStatus
- type GetTime
- type GetTimeProfile
- type GetTimeProfiles
- type Grant
- type Listen
- type LoadACL
- type OpenDoor
- type PutCard
- type RecordSpecialEvents
- type RefreshTaskList
- type RestoreDefaultParameters
- func (c *RestoreDefaultParameters) CLI() string
- func (c *RestoreDefaultParameters) Description() string
- func (c *RestoreDefaultParameters) Execute(ctx Context) error
- func (c *RestoreDefaultParameters) Help()
- func (c *RestoreDefaultParameters) RequiresConfig() bool
- func (c *RestoreDefaultParameters) Usage() string
- type Revoke
- type SetAddress
- type SetDoorControl
- type SetDoorDelay
- type SetDoorPasscodes
- type SetEventIndex
- type SetInterlock
- type SetListener
- type SetPCControl
- type SetTaskList
- type SetTime
- type SetTimeProfile
- type SetTimeProfiles
- type Show
- type Version
Constants ¶
This section is empty.
Variables ¶
var ActivateKeypadsCmd = ActivateKeypads{}
var AddTaskCmd = AddTask{}
var ClearTaskListCmd = ClearTaskList{}
var ClearTimeProfilesCmd = ClearTimeProfiles{}
var CompareACLCmd = CompareACL{ // contains filtered or unexported fields }
CompareACLCmd is an initialized CompareACL command for the main() command list
var DeleteCardCmd = DeleteCard{}
var DeleteCardsCmd = DeleteCards{}
var GetACLCmd = GetACL{ // contains filtered or unexported fields }
var GetCardCmd = GetCard{}
var GetCardsCmd = GetCards{}
var GetDeviceCmd = GetDevice{}
var GetDevicesCmd = GetDevices{}
var GetDoorControlCmd = GetDoorControl{}
var GetDoorDelayCmd = GetDoorDelay{}
var GetEventCmd = GetEvent{}
var GetEventIndexCmd = GetEventIndex{}
var GetEventsCmd = GetEvents{}
var GetListenerCmd = GetListener{}
var GetStatusCmd = GetStatus{}
var GetTimeCmd = GetTime{}
var GetTimeProfileCmd = GetTimeProfile{}
var GetTimeProfilesCmd = GetTimeProfiles{ // contains filtered or unexported fields }
var GrantCmd = Grant{}
var ListenCmd = Listen{}
var LoadACLCmd = LoadACL{ // contains filtered or unexported fields }
var OpenDoorCmd = OpenDoor{}
var PutCardCmd = PutCard{}
var RecordSpecialEventsCmd = RecordSpecialEvents{}
var RefreshTaskListCmd = RefreshTaskList{}
var RestoreDefaultParametersCmd = RestoreDefaultParameters{}
RestoreDefaultParameters command variable for CLI command list.
var RevokeCmd = Revoke{}
var SetAddressCmd = SetAddress{}
var SetDoorControlCmd = SetDoorControl{}
var SetDoorDelayCmd = SetDoorDelay{}
var SetDoorPasscodesCmd = SetDoorPasscodes{}
SetDoorPasscodes command variable for CLI command list.
var SetEventIndexCmd = SetEventIndex{}
var SetInterlockCmd = SetInterlock{}
var SetListenerCmd = SetListener{}
var SetPCControlCmd = SetPCControl{}
var SetTaskListCmd = SetTaskList{}
var SetTimeCmd = SetTime{}
var SetTimeProfileCmd = SetTimeProfile{}
var SetTimeProfilesCmd = SetTimeProfiles{}
var ShowCmd = Show{}
var VersionCmd = Version{}
VersionCmd is an initialized Version command for the main() command list
Functions ¶
This section is empty.
Types ¶
type ActivateKeypads ¶ added in v0.8.6
type ActivateKeypads struct { }
func (*ActivateKeypads) CLI ¶ added in v0.8.6
func (c *ActivateKeypads) CLI() string
func (*ActivateKeypads) Description ¶ added in v0.8.6
func (c *ActivateKeypads) Description() string
func (*ActivateKeypads) Execute ¶ added in v0.8.6
func (c *ActivateKeypads) Execute(ctx Context) error
func (*ActivateKeypads) Help ¶ added in v0.8.6
func (c *ActivateKeypads) Help()
func (*ActivateKeypads) RequiresConfig ¶ added in v0.8.6
func (c *ActivateKeypads) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*ActivateKeypads) Usage ¶ added in v0.8.6
func (c *ActivateKeypads) Usage() string
type AddTask ¶ added in v0.7.1
type AddTask struct { }
func (*AddTask) Description ¶ added in v0.7.1
func (*AddTask) RequiresConfig ¶ added in v0.7.1
Returns false - configuration is useful but optional.
type ClearTaskList ¶ added in v0.7.1
type ClearTaskList struct { }
func (*ClearTaskList) CLI ¶ added in v0.7.1
func (c *ClearTaskList) CLI() string
func (*ClearTaskList) Description ¶ added in v0.7.1
func (c *ClearTaskList) Description() string
func (*ClearTaskList) Execute ¶ added in v0.7.1
func (c *ClearTaskList) Execute(ctx Context) error
func (*ClearTaskList) Help ¶ added in v0.7.1
func (c *ClearTaskList) Help()
func (*ClearTaskList) RequiresConfig ¶ added in v0.7.1
func (c *ClearTaskList) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*ClearTaskList) Usage ¶ added in v0.7.1
func (c *ClearTaskList) Usage() string
type ClearTimeProfiles ¶ added in v0.7.0
type ClearTimeProfiles struct { }
func (*ClearTimeProfiles) CLI ¶ added in v0.7.0
func (c *ClearTimeProfiles) CLI() string
func (*ClearTimeProfiles) Description ¶ added in v0.7.0
func (c *ClearTimeProfiles) Description() string
func (*ClearTimeProfiles) Execute ¶ added in v0.7.0
func (c *ClearTimeProfiles) Execute(ctx Context) error
func (*ClearTimeProfiles) Help ¶ added in v0.7.0
func (c *ClearTimeProfiles) Help()
func (*ClearTimeProfiles) RequiresConfig ¶ added in v0.7.0
func (c *ClearTimeProfiles) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*ClearTimeProfiles) Usage ¶ added in v0.7.0
func (c *ClearTimeProfiles) Usage() string
type Command ¶
type Command interface { Execute(context Context) error CLI() string Description() string Usage() string Help() RequiresConfig() bool }
Command defines the common functions for CLI command implementations. This will be replaced with the 'uhppoted-lib' implementation in a future iteration.
type CompareACL ¶
type CompareACL struct {
// contains filtered or unexported fields
}
func (*CompareACL) CLI ¶
func (c *CompareACL) CLI() string
func (*CompareACL) Description ¶
func (c *CompareACL) Description() string
func (*CompareACL) Execute ¶
func (c *CompareACL) Execute(ctx Context) error
func (*CompareACL) Help ¶
func (c *CompareACL) Help()
func (*CompareACL) RequiresConfig ¶
func (c *CompareACL) RequiresConfig() bool
Returns true - configuration is not optional for this command to return valid information.
func (*CompareACL) Usage ¶
func (c *CompareACL) Usage() string
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context contains the environment and configuration information required for all commands
type DeleteCard ¶
type DeleteCard struct { }
func (*DeleteCard) CLI ¶
func (c *DeleteCard) CLI() string
func (*DeleteCard) Description ¶
func (c *DeleteCard) Description() string
func (*DeleteCard) Execute ¶
func (c *DeleteCard) Execute(ctx Context) error
func (*DeleteCard) Help ¶
func (c *DeleteCard) Help()
func (*DeleteCard) RequiresConfig ¶
func (c *DeleteCard) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*DeleteCard) Usage ¶
func (c *DeleteCard) Usage() string
type DeleteCards ¶ added in v0.7.0
type DeleteCards struct { }
func (*DeleteCards) CLI ¶ added in v0.7.0
func (c *DeleteCards) CLI() string
func (*DeleteCards) Description ¶ added in v0.7.0
func (c *DeleteCards) Description() string
func (*DeleteCards) Execute ¶ added in v0.7.0
func (c *DeleteCards) Execute(ctx Context) error
func (*DeleteCards) Help ¶ added in v0.7.0
func (c *DeleteCards) Help()
func (*DeleteCards) RequiresConfig ¶ added in v0.7.0
func (c *DeleteCards) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*DeleteCards) Usage ¶ added in v0.7.0
func (c *DeleteCards) Usage() string
type GetACL ¶
type GetACL struct {
// contains filtered or unexported fields
}
func (*GetACL) Description ¶
func (*GetACL) RequiresConfig ¶
Returns true - configuration is not optional for this command to return valid information.
type GetCard ¶
type GetCard struct { }
func (*GetCard) Description ¶
func (*GetCard) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetCards ¶
type GetCards struct { }
func (*GetCards) Description ¶
func (*GetCards) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetDevice ¶
type GetDevice struct { }
func (*GetDevice) Description ¶
func (*GetDevice) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetDevices ¶
type GetDevices struct { }
func (*GetDevices) CLI ¶
func (c *GetDevices) CLI() string
func (*GetDevices) Description ¶
func (c *GetDevices) Description() string
func (*GetDevices) Execute ¶
func (c *GetDevices) Execute(ctx Context) error
func (*GetDevices) Help ¶
func (c *GetDevices) Help()
func (*GetDevices) RequiresConfig ¶
func (c *GetDevices) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetDevices) Usage ¶
func (c *GetDevices) Usage() string
type GetDoorControl ¶
type GetDoorControl struct { }
func (*GetDoorControl) CLI ¶
func (c *GetDoorControl) CLI() string
func (*GetDoorControl) Description ¶
func (c *GetDoorControl) Description() string
func (*GetDoorControl) Execute ¶
func (c *GetDoorControl) Execute(ctx Context) error
func (*GetDoorControl) Help ¶
func (c *GetDoorControl) Help()
func (*GetDoorControl) RequiresConfig ¶
func (c *GetDoorControl) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetDoorControl) Usage ¶
func (c *GetDoorControl) Usage() string
type GetDoorDelay ¶
type GetDoorDelay struct { }
func (*GetDoorDelay) CLI ¶
func (c *GetDoorDelay) CLI() string
func (*GetDoorDelay) Description ¶
func (c *GetDoorDelay) Description() string
func (*GetDoorDelay) Execute ¶
func (c *GetDoorDelay) Execute(ctx Context) error
func (*GetDoorDelay) Help ¶
func (c *GetDoorDelay) Help()
func (*GetDoorDelay) RequiresConfig ¶
func (c *GetDoorDelay) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetDoorDelay) Usage ¶
func (c *GetDoorDelay) Usage() string
type GetEvent ¶
type GetEvent struct { }
func (*GetEvent) Description ¶
func (*GetEvent) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetEventIndex ¶
type GetEventIndex struct { }
func (*GetEventIndex) CLI ¶
func (c *GetEventIndex) CLI() string
func (*GetEventIndex) Description ¶
func (c *GetEventIndex) Description() string
func (*GetEventIndex) Execute ¶
func (c *GetEventIndex) Execute(ctx Context) error
func (*GetEventIndex) Help ¶
func (c *GetEventIndex) Help()
func (*GetEventIndex) RequiresConfig ¶
func (c *GetEventIndex) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetEventIndex) Usage ¶
func (c *GetEventIndex) Usage() string
type GetEvents ¶
type GetEvents struct { }
func (*GetEvents) Description ¶
func (*GetEvents) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetListener ¶
type GetListener struct { }
func (*GetListener) CLI ¶
func (c *GetListener) CLI() string
func (*GetListener) Description ¶
func (c *GetListener) Description() string
func (*GetListener) Execute ¶
func (c *GetListener) Execute(ctx Context) error
func (*GetListener) Help ¶
func (c *GetListener) Help()
func (*GetListener) RequiresConfig ¶
func (c *GetListener) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetListener) Usage ¶
func (c *GetListener) Usage() string
type GetStatus ¶
type GetStatus struct { }
func (*GetStatus) Description ¶
func (*GetStatus) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetTime ¶
type GetTime struct { }
func (*GetTime) Description ¶
func (*GetTime) RequiresConfig ¶
Returns false - configuration is useful but optional.
type GetTimeProfile ¶ added in v0.7.0
type GetTimeProfile struct { }
func (*GetTimeProfile) CLI ¶ added in v0.7.0
func (c *GetTimeProfile) CLI() string
func (*GetTimeProfile) Description ¶ added in v0.7.0
func (c *GetTimeProfile) Description() string
func (*GetTimeProfile) Execute ¶ added in v0.7.0
func (c *GetTimeProfile) Execute(ctx Context) error
func (*GetTimeProfile) Help ¶ added in v0.7.0
func (c *GetTimeProfile) Help()
func (*GetTimeProfile) RequiresConfig ¶ added in v0.7.0
func (c *GetTimeProfile) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetTimeProfile) Usage ¶ added in v0.7.0
func (c *GetTimeProfile) Usage() string
type GetTimeProfiles ¶ added in v0.7.0
type GetTimeProfiles struct {
// contains filtered or unexported fields
}
func (*GetTimeProfiles) CLI ¶ added in v0.7.0
func (c *GetTimeProfiles) CLI() string
func (*GetTimeProfiles) Description ¶ added in v0.7.0
func (c *GetTimeProfiles) Description() string
func (*GetTimeProfiles) Execute ¶ added in v0.7.0
func (c *GetTimeProfiles) Execute(ctx Context) error
func (*GetTimeProfiles) Help ¶ added in v0.7.0
func (c *GetTimeProfiles) Help()
func (*GetTimeProfiles) RequiresConfig ¶ added in v0.7.0
func (c *GetTimeProfiles) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*GetTimeProfiles) Usage ¶ added in v0.7.0
func (c *GetTimeProfiles) Usage() string
type Grant ¶
type Grant struct { }
func (*Grant) Description ¶
func (*Grant) RequiresConfig ¶
Returns true - configuration is not optional for this command to return valid information.
type Listen ¶
type Listen struct { }
func (*Listen) Description ¶
func (*Listen) RequiresConfig ¶
Returns false - configuration is useful but optional.
type LoadACL ¶
type LoadACL struct {
// contains filtered or unexported fields
}
func (*LoadACL) Description ¶
func (*LoadACL) RequiresConfig ¶
Returns true - configuration is not optional for this command to return valid information.
type OpenDoor ¶
type OpenDoor struct { }
func (*OpenDoor) Description ¶
func (*OpenDoor) RequiresConfig ¶
Returns false - configuration is useful but optional.
type PutCard ¶
type PutCard struct { }
func (*PutCard) Description ¶
func (*PutCard) RequiresConfig ¶
Returns false - configuration is useful but optional.
type RecordSpecialEvents ¶ added in v0.6.7
type RecordSpecialEvents struct { }
Command implementation for record-special-events to enable or disable events for door open, door closed and door button pressed.
func (*RecordSpecialEvents) CLI ¶ added in v0.6.7
func (c *RecordSpecialEvents) CLI() string
Returns the 'record-special-events' command string for the CLI interface.
func (*RecordSpecialEvents) Description ¶ added in v0.6.7
func (c *RecordSpecialEvents) Description() string
Returns the 'record-special-events' command summary for the CLI interface.
func (*RecordSpecialEvents) Execute ¶ added in v0.6.7
func (c *RecordSpecialEvents) Execute(ctx Context) error
Gets the device ID and enable/disable value from the command line and sends a record-special-events to the designated controller.
func (*RecordSpecialEvents) Help ¶ added in v0.6.7
func (c *RecordSpecialEvents) Help()
Outputs the 'record-special-events' command help for the CLI interface.
func (*RecordSpecialEvents) RequiresConfig ¶ added in v0.6.7
func (c *RecordSpecialEvents) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*RecordSpecialEvents) Usage ¶ added in v0.6.7
func (c *RecordSpecialEvents) Usage() string
Returns the 'record-special-events' command parameters for the CLI interface.
type RefreshTaskList ¶ added in v0.7.1
type RefreshTaskList struct { }
func (*RefreshTaskList) CLI ¶ added in v0.7.1
func (c *RefreshTaskList) CLI() string
func (*RefreshTaskList) Description ¶ added in v0.7.1
func (c *RefreshTaskList) Description() string
func (*RefreshTaskList) Execute ¶ added in v0.7.1
func (c *RefreshTaskList) Execute(ctx Context) error
func (*RefreshTaskList) Help ¶ added in v0.7.1
func (c *RefreshTaskList) Help()
func (*RefreshTaskList) RequiresConfig ¶ added in v0.7.1
func (c *RefreshTaskList) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*RefreshTaskList) Usage ¶ added in v0.7.1
func (c *RefreshTaskList) Usage() string
type RestoreDefaultParameters ¶ added in v0.8.8
type RestoreDefaultParameters struct { }
Command implementation for restore-default-parameters to reset a controller to the manufacturer default configuration.
func (*RestoreDefaultParameters) CLI ¶ added in v0.8.8
func (c *RestoreDefaultParameters) CLI() string
Returns the 'restore-default-parameters' command string for the CLI interface.
func (*RestoreDefaultParameters) Description ¶ added in v0.8.8
func (c *RestoreDefaultParameters) Description() string
Returns the 'restore-default-parameters' command summary for the CLI interface.
func (*RestoreDefaultParameters) Execute ¶ added in v0.8.8
func (c *RestoreDefaultParameters) Execute(ctx Context) error
Gets the controller ID from the command line and sends a restore-default-parameters command to the designated controller.
func (*RestoreDefaultParameters) Help ¶ added in v0.8.8
func (c *RestoreDefaultParameters) Help()
Outputs the 'restore-default-parameters' command help for the CLI interface.
func (*RestoreDefaultParameters) RequiresConfig ¶ added in v0.8.8
func (c *RestoreDefaultParameters) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*RestoreDefaultParameters) Usage ¶ added in v0.8.8
func (c *RestoreDefaultParameters) Usage() string
Returns the 'restore-default-parameters' command parameters for the CLI interface.
type Revoke ¶
type Revoke struct { }
func (*Revoke) Description ¶
func (*Revoke) RequiresConfig ¶
Returns true - configuration is not optional for this command to return valid information.
type SetAddress ¶
type SetAddress struct { }
func (*SetAddress) CLI ¶
func (c *SetAddress) CLI() string
func (*SetAddress) Description ¶
func (c *SetAddress) Description() string
func (*SetAddress) Execute ¶
func (c *SetAddress) Execute(ctx Context) error
func (*SetAddress) Help ¶
func (c *SetAddress) Help()
func (*SetAddress) RequiresConfig ¶
func (c *SetAddress) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetAddress) Usage ¶
func (c *SetAddress) Usage() string
type SetDoorControl ¶
type SetDoorControl struct { }
func (*SetDoorControl) CLI ¶
func (c *SetDoorControl) CLI() string
func (*SetDoorControl) Description ¶
func (c *SetDoorControl) Description() string
func (*SetDoorControl) Execute ¶
func (c *SetDoorControl) Execute(ctx Context) error
func (*SetDoorControl) Help ¶
func (c *SetDoorControl) Help()
func (*SetDoorControl) RequiresConfig ¶
func (c *SetDoorControl) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetDoorControl) Usage ¶
func (c *SetDoorControl) Usage() string
type SetDoorDelay ¶
type SetDoorDelay struct { }
func (*SetDoorDelay) CLI ¶
func (c *SetDoorDelay) CLI() string
func (*SetDoorDelay) Description ¶
func (c *SetDoorDelay) Description() string
func (*SetDoorDelay) Execute ¶
func (c *SetDoorDelay) Execute(ctx Context) error
func (*SetDoorDelay) Help ¶
func (c *SetDoorDelay) Help()
func (*SetDoorDelay) RequiresConfig ¶
func (c *SetDoorDelay) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetDoorDelay) Usage ¶
func (c *SetDoorDelay) Usage() string
type SetDoorPasscodes ¶ added in v0.8.7
type SetDoorPasscodes struct { }
Command implementation for set-door-passcodes to set up to four supervisor passcodes for a door.
The command will use up to four of the codes supplied on the command line. Valid passcodes are PIN codes in the range [1..999999] and invalid codes will be replaced with a 0 PIN ('no code').
func (*SetDoorPasscodes) CLI ¶ added in v0.8.7
func (c *SetDoorPasscodes) CLI() string
Returns the 'set-door-passcodes' command string for the CLI interface.
func (*SetDoorPasscodes) Description ¶ added in v0.8.7
func (c *SetDoorPasscodes) Description() string
Returns the 'set-door-passcodes' command summary for the CLI interface.
func (*SetDoorPasscodes) Execute ¶ added in v0.8.7
func (c *SetDoorPasscodes) Execute(ctx Context) error
Gets the device ID, door and passwords list from the command line and sends a set-super-control command to the designated controller.
func (*SetDoorPasscodes) Help ¶ added in v0.8.7
func (c *SetDoorPasscodes) Help()
Outputs the 'set-door-passcodes' command help for the CLI interface.
func (*SetDoorPasscodes) RequiresConfig ¶ added in v0.8.7
func (c *SetDoorPasscodes) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetDoorPasscodes) Usage ¶ added in v0.8.7
func (c *SetDoorPasscodes) Usage() string
Returns the 'set-door-passcodes' command parameters for the CLI interface.
type SetEventIndex ¶
type SetEventIndex struct { }
func (*SetEventIndex) CLI ¶
func (c *SetEventIndex) CLI() string
func (*SetEventIndex) Description ¶
func (c *SetEventIndex) Description() string
func (*SetEventIndex) Execute ¶
func (c *SetEventIndex) Execute(ctx Context) error
func (*SetEventIndex) Help ¶
func (c *SetEventIndex) Help()
func (*SetEventIndex) RequiresConfig ¶
func (c *SetEventIndex) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetEventIndex) Usage ¶
func (c *SetEventIndex) Usage() string
type SetInterlock ¶ added in v0.8.5
type SetInterlock struct { }
func (*SetInterlock) CLI ¶ added in v0.8.5
func (c *SetInterlock) CLI() string
func (*SetInterlock) Description ¶ added in v0.8.5
func (c *SetInterlock) Description() string
func (*SetInterlock) Execute ¶ added in v0.8.5
func (c *SetInterlock) Execute(ctx Context) error
func (*SetInterlock) Help ¶ added in v0.8.5
func (c *SetInterlock) Help()
func (*SetInterlock) RequiresConfig ¶ added in v0.8.5
func (c *SetInterlock) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetInterlock) Usage ¶ added in v0.8.5
func (c *SetInterlock) Usage() string
type SetListener ¶
type SetListener struct { }
func (*SetListener) CLI ¶
func (c *SetListener) CLI() string
func (*SetListener) Description ¶
func (c *SetListener) Description() string
func (*SetListener) Execute ¶
func (c *SetListener) Execute(ctx Context) error
func (*SetListener) Help ¶
func (c *SetListener) Help()
func (*SetListener) RequiresConfig ¶
func (c *SetListener) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetListener) Usage ¶
func (c *SetListener) Usage() string
type SetPCControl ¶ added in v0.8.4
type SetPCControl struct { }
Command implementation for set-pc-control to enable or disable remote host access control.
The access controller expects the host to communicate at least once every 30 seconds otherwise it reverts to local control of access using the stored list of cards (the communication does not have to a 'set-pc-control' command). If the access controller has reverted to local control because no message has been received from the host for more than 30 seconds, any subsequent communication from the remote host will re-establish remote control again.
func (*SetPCControl) CLI ¶ added in v0.8.4
func (c *SetPCControl) CLI() string
Returns the 'set-pc-control' command string for the CLI interface.
func (*SetPCControl) Description ¶ added in v0.8.4
func (c *SetPCControl) Description() string
Returns the 'set-pc-control' command summary for the CLI interface.
func (*SetPCControl) Execute ¶ added in v0.8.4
func (c *SetPCControl) Execute(ctx Context) error
Gets the device ID and enable/disable value from the command line and sends a set-pc-control command to the designated controller.
func (*SetPCControl) Help ¶ added in v0.8.4
func (c *SetPCControl) Help()
Outputs the 'set-pc-control' command help for the CLI interface.
func (*SetPCControl) RequiresConfig ¶ added in v0.8.4
func (c *SetPCControl) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetPCControl) Usage ¶ added in v0.8.4
func (c *SetPCControl) Usage() string
Returns the 'set-pc-control' command parameters for the CLI interface.
type SetTaskList ¶ added in v0.7.1
type SetTaskList struct { }
func (*SetTaskList) CLI ¶ added in v0.7.1
func (c *SetTaskList) CLI() string
func (*SetTaskList) Description ¶ added in v0.7.1
func (c *SetTaskList) Description() string
func (*SetTaskList) Execute ¶ added in v0.7.1
func (c *SetTaskList) Execute(ctx Context) error
func (*SetTaskList) Help ¶ added in v0.7.1
func (c *SetTaskList) Help()
func (*SetTaskList) RequiresConfig ¶ added in v0.7.1
func (c *SetTaskList) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetTaskList) Usage ¶ added in v0.7.1
func (c *SetTaskList) Usage() string
type SetTime ¶
type SetTime struct { }
func (*SetTime) Description ¶
func (*SetTime) RequiresConfig ¶
Returns false - configuration is useful but optional.
type SetTimeProfile ¶ added in v0.7.0
type SetTimeProfile struct { }
func (*SetTimeProfile) CLI ¶ added in v0.7.0
func (c *SetTimeProfile) CLI() string
func (*SetTimeProfile) Description ¶ added in v0.7.0
func (c *SetTimeProfile) Description() string
func (*SetTimeProfile) Execute ¶ added in v0.7.0
func (c *SetTimeProfile) Execute(ctx Context) error
func (*SetTimeProfile) Help ¶ added in v0.7.0
func (c *SetTimeProfile) Help()
func (*SetTimeProfile) RequiresConfig ¶ added in v0.7.0
func (c *SetTimeProfile) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetTimeProfile) Usage ¶ added in v0.7.0
func (c *SetTimeProfile) Usage() string
type SetTimeProfiles ¶ added in v0.7.0
type SetTimeProfiles struct { }
func (*SetTimeProfiles) CLI ¶ added in v0.7.0
func (c *SetTimeProfiles) CLI() string
func (*SetTimeProfiles) Description ¶ added in v0.7.0
func (c *SetTimeProfiles) Description() string
func (*SetTimeProfiles) Execute ¶ added in v0.7.0
func (c *SetTimeProfiles) Execute(ctx Context) error
func (*SetTimeProfiles) Help ¶ added in v0.7.0
func (c *SetTimeProfiles) Help()
func (*SetTimeProfiles) RequiresConfig ¶ added in v0.7.0
func (c *SetTimeProfiles) RequiresConfig() bool
Returns false - configuration is useful but optional.
func (*SetTimeProfiles) Usage ¶ added in v0.7.0
func (c *SetTimeProfiles) Usage() string
type Show ¶
type Show struct { }
func (*Show) Description ¶
func (*Show) RequiresConfig ¶
Returns true - configuration is not optional for this command to return valid information.
type Version ¶
type Version struct { }
Version is a CLI command implementation that displays the CLI version information.
func (*Version) Description ¶
Description returns the 'version' command short form help
func (*Version) RequiresConfig ¶
Returns false - configuration is unused and optional.
Source Files
¶
- activate-keypads.go
- add_task.go
- clear_task_list.go
- clear_time_profiles.go
- command.go
- common.go
- compare_acl.go
- delete_card.go
- delete_cards.go
- get_acl.go
- get_card.go
- get_cards.go
- get_device.go
- get_devices.go
- get_door_control.go
- get_door_delay.go
- get_event.go
- get_event_index.go
- get_events.go
- get_listener.go
- get_status.go
- get_time.go
- get_time_profile.go
- get_time_profiles.go
- grant.go
- listen.go
- load_acl.go
- open_door.go
- put_card.go
- record_special_events.go
- refresh_task_list.go
- restore_default_parameters.go
- revoke.go
- set_address.go
- set_door_control.go
- set_door_delay.go
- set_door_passcodes.go
- set_event_index.go
- set_interlock.go
- set_listener.go
- set_pc_control.go
- set_task_list.go
- set_time.go
- set_time_profile.go
- set_time_profiles.go
- show.go
- version.go