Documentation
¶
Index ¶
- func NewAuthCommand(d *shared.Deps) *ffcli.Command
- func NewAuthDoctorCommand(d *shared.Deps) *ffcli.Command
- func NewPermissionWarning(err error) error
- func SetKeychainAvailable(fn func() (bool, error)) func()
- func SetListCredentialSummaries(fn func() ([]authsvc.Credential, error)) func()
- func SetListStoredCredentials(fn func() ([]authsvc.Credential, error)) func()
- func SetLoginJWTGenerator(fn func(string, string, *ecdsa.PrivateKey) (string, error)) func()
- func SetLogoutCredentialRemovers(remove func(string, authsvc.RemoveOptions) error, ...) func()
- func SetMigrateKeychainToConfig(...) func()
- func SetStatusValidateCredential(fn func(context.Context, authsvc.Credential) error) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthDoctorCommand ¶
AuthDoctor command factory
func NewPermissionWarning ¶
NewPermissionWarning builds a permission warning error for tests.
func SetKeychainAvailable ¶ added in v1.260825.0
SetKeychainAvailable replaces the keychain availability hook for tests. It returns a restore function to reset the previous handler.
func SetListCredentialSummaries ¶
func SetListCredentialSummaries(fn func() ([]authsvc.Credential, error)) func()
SetListCredentialSummaries replaces the metadata-only credential listing hook for tests. It returns a restore function to reset the previous handler.
func SetListStoredCredentials ¶
func SetListStoredCredentials(fn func() ([]authsvc.Credential, error)) func()
SetListStoredCredentials replaces the full credential listing hook for tests. It returns a restore function to reset the previous handler.
func SetLoginJWTGenerator ¶
SetLoginJWTGenerator replaces the JWT generator for tests. It returns a restore function to reset the previous handler.
func SetLogoutCredentialRemovers ¶ added in v1.260825.0
func SetLogoutCredentialRemovers(remove func(string, authsvc.RemoveOptions) error, removeAll func(authsvc.RemoveOptions) error) func()
SetLogoutCredentialRemovers replaces the credential removal hooks for tests. It returns a restore function to reset the previous handlers.
func SetMigrateKeychainToConfig ¶ added in v1.260610.0
func SetMigrateKeychainToConfig(fn func(authsvc.MigrateKeychainToConfigOptions) (authsvc.MigrateKeychainToConfigResult, error)) func()
SetMigrateKeychainToConfig replaces the keychain-to-config migration hook for tests. It returns a restore function to reset the previous handler.
func SetStatusValidateCredential ¶
func SetStatusValidateCredential(fn func(context.Context, authsvc.Credential) error) func()
SetStatusValidateCredential replaces the validation hook for tests. It returns a restore function to reset the previous handler.
Types ¶
This section is empty.