Documentation
¶
Index ¶
- Variables
- func ApplyWorkspaceAuth(ctx context.Context, resolver TokenResolver, projectID uuid.UUID, ...) (workspaceinfra.SetupRequest, error)
- type ProjectSecurity
- type SaveCredentialInput
- type ScopeInput
- type ScopedSecurity
- type SecurityManager
- type Service
- func (s *Service) DeleteCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
- func (s *Service) ImportGHCLICredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
- func (s *Service) ProbeResolvedCredential(ctx context.Context, projectID uuid.UUID, repositoryURL string) (domain.TokenProbe, error)
- func (s *Service) ReadProjectSecurity(ctx context.Context, projectID uuid.UUID) (ProjectSecurity, error)
- func (s *Service) ResolveProjectCredential(ctx context.Context, projectID uuid.UUID) (domain.ResolvedCredential, error)
- func (s *Service) RetestCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
- func (s *Service) SaveManualCredential(ctx context.Context, input SaveCredentialInput) (ProjectSecurity, error)
- func (s *Service) SealToken(token string, source domain.Source) (domain.StoredCredential, error)
- type TokenResolver
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApplyWorkspaceAuth ¶
func ApplyWorkspaceAuth( ctx context.Context, resolver TokenResolver, projectID uuid.UUID, request workspaceinfra.SetupRequest, ) (workspaceinfra.SetupRequest, error)
Types ¶
type ProjectSecurity ¶
type ProjectSecurity struct {
Effective ScopedSecurity
Organization ScopedSecurity
ProjectOverride ScopedSecurity
}
type SaveCredentialInput ¶
type ScopedSecurity ¶
type SecurityManager ¶
type SecurityManager interface {
ReadProjectSecurity(ctx context.Context, projectID uuid.UUID) (ProjectSecurity, error)
SaveManualCredential(ctx context.Context, input SaveCredentialInput) (ProjectSecurity, error)
ImportGHCLICredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
RetestCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
DeleteCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteCredential ¶
func (s *Service) DeleteCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
func (*Service) ImportGHCLICredential ¶
func (s *Service) ImportGHCLICredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
func (*Service) ProbeResolvedCredential ¶
func (*Service) ReadProjectSecurity ¶
func (*Service) ResolveProjectCredential ¶
func (*Service) RetestCredential ¶
func (s *Service) RetestCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
func (*Service) SaveManualCredential ¶
func (s *Service) SaveManualCredential(ctx context.Context, input SaveCredentialInput) (ProjectSecurity, error)
type TokenResolver ¶
Click to show internal directories.
Click to hide internal directories.