actions

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigActionContext

type ConfigActionContext struct {
	ConfigFile string
	Identities identity.Identities
}

type ConfigInitActionContext

type ConfigInitActionContext struct {
	ConfigActionContext
	Scope ScopeConfig
}

func (ConfigInitActionContext) Execute

func (context ConfigInitActionContext) Execute() error

type PasswordScopeValue

type PasswordScopeValue string
const (
	PasswordScopeGlobal   PasswordScopeValue = "global"
	PasswordScopeUser     PasswordScopeValue = "user"
	PasswordScopeIdentity PasswordScopeValue = "identity"
)

func (PasswordScopeValue) IsValid

func (v PasswordScopeValue) IsValid() bool

type ScopeConfig

type ScopeConfig struct {
	Password PasswordScopeValue
}

func (*ScopeConfig) Apply

func (c *ScopeConfig) Apply(entry ScopeEntry) error

type ScopeEntry

type ScopeEntry struct {
	Scope string
	Value string
}

func (*ScopeEntry) Set

func (s *ScopeEntry) Set(input string) error

func (*ScopeEntry) String

func (s *ScopeEntry) String() string

func (*ScopeEntry) Type

func (s *ScopeEntry) Type() string

type UserAction

type UserAction uint8
const (
	UserActionSync UserAction = iota
	UserActionAdd
	UserActionRemove
	UserActionUpdate
)

type UserActionClassification

type UserActionClassification uint8
const (
	UserActionClassificationNone UserActionClassification = iota
	UserActionClassificationAdd
	UserActionClassificationDelete
	UserActionClassificationUpdate

	UserActionClassificationSkip  = 1 << 6
	UserActionClassificationError = 1 << 7
)

func (UserActionClassification) String

func (c UserActionClassification) String() string

type UserActionClassificationResult added in v0.9.0

type UserActionClassificationResult struct {
	Classification UserActionClassification
	Reason         error
}

type UserActionContext

type UserActionContext struct {
	Flags      UserActionFlags
	ConfigFile string
	Identities identity.Identities
}

func (UserActionContext) Execute

func (ctx UserActionContext) Execute(action UserAction) error

type UserActionFlags

type UserActionFlags uint8
const (
	UserActionFlagDryRun UserActionFlags = 1 << iota
	UserActionFlagUpdate
	UserActionFlagVerbose
	UserActionFlagForce
)
const UserActionFlagNone UserActionFlags = 0

Jump to

Keyboard shortcuts

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