manager

package
v0.0.0-...-9adde1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL