Documentation
¶
Overview ¶
Package authentication coordinates explicit ACP login without owning the agents' credential files. Discovery and background probes never authenticate.
Index ¶
- Variables
- type Service
- func (s *Service) Cancel(agentID, attemptID string) error
- func (s *Service) CancelAgent(ctx context.Context, agentID string) error
- func (s *Service) Info(ctx context.Context, agentID string) (model.AgentAuthResponse, error)
- func (s *Service) Read(agentID, attemptID string) (model.AgentAuthAttempt, error)
- func (s *Service) Start(ctx context.Context, agentID string, request model.AgentAuthRequest) (model.AgentAuthAttempt, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInProgress = errors.New("Agent authentication is already in progress")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CancelAgent ¶
func (*Service) Read ¶
func (s *Service) Read(agentID, attemptID string) (model.AgentAuthAttempt, error)
func (*Service) Start ¶
func (s *Service) Start(ctx context.Context, agentID string, request model.AgentAuthRequest) (model.AgentAuthAttempt, error)
Start is idempotent for an already working login: verify first, authenticate only when session/new reports missing credentials, then verify again using a fresh process and the exact current environment version.
Click to show internal directories.
Click to hide internal directories.