Documentation
¶
Index ¶
- Variables
- func ApplyWorkspaceAuth(ctx context.Context, resolver TokenResolver, projectID uuid.UUID, ...) (workspaceinfra.SetupRequest, error)
- type OrgInput
- type OrgSaveCredentialInput
- type OrgSecurity
- type OrgSecurityManager
- 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) DeleteOrgCredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
- func (s *Service) ImportGHCLICredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
- func (s *Service) ImportOrgGHCLICredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
- func (s *Service) ProbeResolvedCredential(ctx context.Context, projectID uuid.UUID, repositoryURL string) (domain.TokenProbe, error)
- func (s *Service) ReadOrgSecurity(ctx context.Context, orgID uuid.UUID) (OrgSecurity, 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) RetestOrgCredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
- func (s *Service) SaveManualCredential(ctx context.Context, input SaveCredentialInput) (ProjectSecurity, error)
- func (s *Service) SaveOrgManualCredential(ctx context.Context, input OrgSaveCredentialInput) (OrgSecurity, 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 OrgSaveCredentialInput ¶ added in v0.3.0
type OrgSecurity ¶ added in v0.3.0
type OrgSecurity struct {
Organization ScopedSecurity
}
type OrgSecurityManager ¶ added in v0.3.0
type OrgSecurityManager interface {
ReadOrgSecurity(ctx context.Context, orgID uuid.UUID) (OrgSecurity, error)
SaveOrgManualCredential(ctx context.Context, input OrgSaveCredentialInput) (OrgSecurity, error)
ImportOrgGHCLICredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
RetestOrgCredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
DeleteOrgCredential(ctx context.Context, input OrgInput) (OrgSecurity, error)
}
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) DeleteOrgCredential ¶ added in v0.3.0
func (*Service) ImportGHCLICredential ¶
func (s *Service) ImportGHCLICredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
func (*Service) ImportOrgGHCLICredential ¶ added in v0.3.0
func (*Service) ProbeResolvedCredential ¶
func (*Service) ReadOrgSecurity ¶ added in v0.3.0
func (*Service) ReadProjectSecurity ¶
func (*Service) ResolveProjectCredential ¶
func (*Service) RetestCredential ¶
func (s *Service) RetestCredential(ctx context.Context, input ScopeInput) (ProjectSecurity, error)
func (*Service) RetestOrgCredential ¶ added in v0.3.0
func (*Service) SaveManualCredential ¶
func (s *Service) SaveManualCredential(ctx context.Context, input SaveCredentialInput) (ProjectSecurity, error)
func (*Service) SaveOrgManualCredential ¶ added in v0.3.0
func (s *Service) SaveOrgManualCredential(ctx context.Context, input OrgSaveCredentialInput) (OrgSecurity, error)
type TokenResolver ¶
Click to show internal directories.
Click to hide internal directories.