Documentation
¶
Index ¶
- Constants
- type AgentSession
- type AuthInfoHandlers
- type AuthStatusResponse
- type AuthType
- type AuthTypesResponse
- type OAuthCallbackRequest
- type OAuthLoginRequest
- type OAuthLoginResponse
- type OAuthSession
- type OAuthSessionResponse
- type OAuthTokenResponse
- type Proxy
- type RepositoryInfo
- type ScriptTemplateData
- type StartRequest
Constants ¶
View Source
const ( ScriptWithGithub = "agentapi_with_github.sh" ScriptDefault = "agentapi_default.sh" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentSession ¶
type AgentSession struct {
ID string
Port int
Process *exec.Cmd
Cancel context.CancelFunc
StartedAt time.Time
UserID string
Status string
Environment map[string]string
Tags map[string]string
// contains filtered or unexported fields
}
AgentSession represents a running agentapi server instance
type AuthInfoHandlers ¶ added in v1.9.1
type AuthInfoHandlers struct {
// contains filtered or unexported fields
}
func NewAuthInfoHandlers ¶ added in v1.9.1
func NewAuthInfoHandlers(cfg *config.Config) *AuthInfoHandlers
func (*AuthInfoHandlers) GetAuthStatus ¶ added in v1.9.1
func (h *AuthInfoHandlers) GetAuthStatus(c echo.Context) error
func (*AuthInfoHandlers) GetAuthTypes ¶ added in v1.9.1
func (h *AuthInfoHandlers) GetAuthTypes(c echo.Context) error
type AuthStatusResponse ¶ added in v1.9.1
type AuthStatusResponse struct {
Authenticated bool `json:"authenticated"`
AuthType string `json:"auth_type,omitempty"`
UserID string `json:"user_id,omitempty"`
Role string `json:"role,omitempty"`
Permissions []string `json:"permissions,omitempty"`
GitHubUser *auth.GitHubUserInfo `json:"github_user,omitempty"`
}
type AuthTypesResponse ¶ added in v1.9.1
type OAuthCallbackRequest ¶ added in v1.9.1
OAuthCallbackRequest represents the OAuth callback parameters
type OAuthLoginRequest ¶ added in v1.9.1
type OAuthLoginRequest struct {
RedirectURI string `json:"redirect_uri"`
}
OAuthLoginRequest represents the request body for OAuth login
type OAuthLoginResponse ¶ added in v1.9.1
OAuthLoginResponse represents the response for OAuth login
type OAuthSession ¶ added in v1.9.1
type OAuthSession struct {
ID string
UserContext *auth.UserContext
CreatedAt time.Time
ExpiresAt time.Time
}
OAuthSession represents an authenticated OAuth session
type OAuthSessionResponse ¶ added in v1.9.1
type OAuthSessionResponse struct {
SessionID string `json:"session_id"`
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresAt time.Time `json:"expires_at"`
User *auth.UserContext `json:"user"`
}
OAuthSessionResponse represents the response with session information
type OAuthTokenResponse ¶ added in v1.9.1
type OAuthTokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresAt time.Time `json:"expires_at"`
User *auth.UserContext `json:"user"`
}
OAuthTokenResponse represents the response after successful OAuth
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy represents the HTTP proxy server
type RepositoryInfo ¶ added in v0.10.0
RepositoryInfo contains repository information extracted from tags
type ScriptTemplateData ¶ added in v0.10.0
type ScriptTemplateData struct {
AgentAPIArgs string
ClaudeArgs string
GitHubToken string
GitHubAppID string
GitHubInstallationID string
GitHubAppPEMPath string
GitHubAPI string
GitHubPersonalAccessToken string
RepoFullName string
CloneDir string
UserID string
MCPConfigs string
}
ScriptTemplateData holds data for script templates
Click to show internal directories.
Click to hide internal directories.