manager

package
v0.0.0-...-d16afb3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SourceUIDAnnotation is an annotation that represents the UID of the source resource.
	// It is added to the resources managed on the target.
	SourceUIDAnnotation = "argocd.argoproj.io/source-uid"
)

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