Documentation ¶
Index ¶
- func ServiceAccountDeletions(dialect migrator.Dialect) []string
- type ServiceAccountsStoreImpl
- func (s *ServiceAccountsStoreImpl) AddServiceAccountToken(ctx context.Context, serviceAccountId int64, ...) (*apikey.APIKey, error)
- func (s *ServiceAccountsStoreImpl) CreateServiceAccount(ctx context.Context, orgId int64, ...) (*serviceaccounts.ServiceAccountDTO, error)
- func (s *ServiceAccountsStoreImpl) CreateServiceAccountFromApikey(ctx context.Context, key *apikey.APIKey) error
- func (s *ServiceAccountsStoreImpl) DeleteServiceAccount(ctx context.Context, orgId, serviceAccountId int64) error
- func (s *ServiceAccountsStoreImpl) DeleteServiceAccountToken(ctx context.Context, orgId, serviceAccountId, tokenId int64) error
- func (s *ServiceAccountsStoreImpl) GetUsageMetrics(ctx context.Context) (*serviceaccounts.Stats, error)
- func (s *ServiceAccountsStoreImpl) ListTokens(ctx context.Context, query *serviceaccounts.GetSATokensQuery) ([]apikey.APIKey, error)
- func (s *ServiceAccountsStoreImpl) MigrateApiKey(ctx context.Context, orgId int64, keyId int64) error
- func (s *ServiceAccountsStoreImpl) MigrateApiKeysToServiceAccounts(ctx context.Context, orgId int64) (*serviceaccounts.MigrationResult, error)
- func (s *ServiceAccountsStoreImpl) RetrieveServiceAccount(ctx context.Context, orgId, serviceAccountId int64) (*serviceaccounts.ServiceAccountProfileDTO, error)
- func (s *ServiceAccountsStoreImpl) RetrieveServiceAccountIdByName(ctx context.Context, orgId int64, name string) (int64, error)
- func (s *ServiceAccountsStoreImpl) RevokeServiceAccountToken(ctx context.Context, orgId, serviceAccountId, tokenId int64) error
- func (s *ServiceAccountsStoreImpl) SearchOrgServiceAccounts(ctx context.Context, query *serviceaccounts.SearchOrgServiceAccountsQuery) (*serviceaccounts.SearchOrgServiceAccountsResult, error)
- func (s *ServiceAccountsStoreImpl) UpdateServiceAccount(ctx context.Context, orgId, serviceAccountId int64, ...) (*serviceaccounts.ServiceAccountProfileDTO, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceAccountDeletions ¶
Types ¶
type ServiceAccountsStoreImpl ¶
type ServiceAccountsStoreImpl struct {
// contains filtered or unexported fields
}
func (*ServiceAccountsStoreImpl) AddServiceAccountToken ¶
func (s *ServiceAccountsStoreImpl) AddServiceAccountToken(ctx context.Context, serviceAccountId int64, cmd *serviceaccounts.AddServiceAccountTokenCommand) (*apikey.APIKey, error)
func (*ServiceAccountsStoreImpl) CreateServiceAccount ¶
func (s *ServiceAccountsStoreImpl) CreateServiceAccount(ctx context.Context, orgId int64, saForm *serviceaccounts.CreateServiceAccountForm) (*serviceaccounts.ServiceAccountDTO, error)
CreateServiceAccount creates service account
func (*ServiceAccountsStoreImpl) CreateServiceAccountFromApikey ¶
func (*ServiceAccountsStoreImpl) DeleteServiceAccount ¶
func (s *ServiceAccountsStoreImpl) DeleteServiceAccount(ctx context.Context, orgId, serviceAccountId int64) error
DeleteServiceAccount deletes service account and all associated tokens
func (*ServiceAccountsStoreImpl) DeleteServiceAccountToken ¶
func (s *ServiceAccountsStoreImpl) DeleteServiceAccountToken(ctx context.Context, orgId, serviceAccountId, tokenId int64) error
func (*ServiceAccountsStoreImpl) GetUsageMetrics ¶
func (s *ServiceAccountsStoreImpl) GetUsageMetrics(ctx context.Context) (*serviceaccounts.Stats, error)
func (*ServiceAccountsStoreImpl) ListTokens ¶
func (s *ServiceAccountsStoreImpl) ListTokens( ctx context.Context, query *serviceaccounts.GetSATokensQuery, ) ([]apikey.APIKey, error)
func (*ServiceAccountsStoreImpl) MigrateApiKey ¶
func (*ServiceAccountsStoreImpl) MigrateApiKeysToServiceAccounts ¶
func (s *ServiceAccountsStoreImpl) MigrateApiKeysToServiceAccounts(ctx context.Context, orgId int64) (*serviceaccounts.MigrationResult, error)
func (*ServiceAccountsStoreImpl) RetrieveServiceAccount ¶
func (s *ServiceAccountsStoreImpl) RetrieveServiceAccount(ctx context.Context, orgId, serviceAccountId int64) (*serviceaccounts.ServiceAccountProfileDTO, error)
RetrieveServiceAccount returns a service account by its ID
func (*ServiceAccountsStoreImpl) RetrieveServiceAccountIdByName ¶
func (*ServiceAccountsStoreImpl) RevokeServiceAccountToken ¶
func (s *ServiceAccountsStoreImpl) RevokeServiceAccountToken(ctx context.Context, orgId, serviceAccountId, tokenId int64) error
func (*ServiceAccountsStoreImpl) SearchOrgServiceAccounts ¶
func (s *ServiceAccountsStoreImpl) SearchOrgServiceAccounts(ctx context.Context, query *serviceaccounts.SearchOrgServiceAccountsQuery) (*serviceaccounts.SearchOrgServiceAccountsResult, error)
func (*ServiceAccountsStoreImpl) UpdateServiceAccount ¶
func (s *ServiceAccountsStoreImpl) UpdateServiceAccount( ctx context.Context, orgId, serviceAccountId int64, saForm *serviceaccounts.UpdateServiceAccountForm, ) (*serviceaccounts.ServiceAccountProfileDTO, error)
UpdateServiceAccount updates service account
Click to show internal directories.
Click to hide internal directories.