Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { SetRole(role ManagerRole) SetMode(role ManagerRole) }
type ManagerMode ¶
type ManagerMode int
const ( ManagerModeUnset ManagerMode = iota ManagerModeAutonomous ManagerModeManaged )
func (ManagerMode) IsAutonomous ¶
func (m ManagerMode) IsAutonomous() bool
IsAutonomous returns true if the manager mode is autonomous
func (ManagerMode) IsManaged ¶
func (m ManagerMode) IsManaged() bool
IsManaged returns true if the manager mode is managed mode
type ManagerRole ¶
type ManagerRole int
const ( ManagerRoleUnset ManagerRole = iota ManagerRolePrincipal ManagerRoleAgent )
func (ManagerRole) IsAgent ¶
func (r ManagerRole) IsAgent() bool
IsAgent returns true if the manager role is agent
func (ManagerRole) IsPrincipal ¶
func (r ManagerRole) IsPrincipal() bool
IsPrincipal returns true if the manager role is principal
Click to show internal directories.
Click to hide internal directories.