Documentation ¶
Index ¶
- type ServiceAccountsProxy
- func (s *ServiceAccountsProxy) AddServiceAccountToken(ctx context.Context, serviceAccountID int64, ...) (*apikey.APIKey, error)
- func (s *ServiceAccountsProxy) CreateServiceAccount(ctx context.Context, orgID int64, ...) (*serviceaccounts.ServiceAccountDTO, error)
- func (s *ServiceAccountsProxy) DeleteServiceAccount(ctx context.Context, orgID, serviceAccountID int64) error
- func (s *ServiceAccountsProxy) DeleteServiceAccountToken(ctx context.Context, orgID int64, serviceAccountID int64, tokenID int64) error
- func (s *ServiceAccountsProxy) EnableServiceAccount(ctx context.Context, orgID int64, serviceAccountID int64, enable bool) error
- func (s *ServiceAccountsProxy) ListTokens(ctx context.Context, query *serviceaccounts.GetSATokensQuery) ([]apikey.APIKey, error)
- func (s *ServiceAccountsProxy) MigrateApiKey(ctx context.Context, orgID int64, keyId int64) error
- func (s *ServiceAccountsProxy) MigrateApiKeysToServiceAccounts(ctx context.Context, orgID int64) (*serviceaccounts.MigrationResult, error)
- func (s *ServiceAccountsProxy) RetrieveServiceAccount(ctx context.Context, orgID, serviceAccountID int64) (*serviceaccounts.ServiceAccountProfileDTO, error)
- func (s *ServiceAccountsProxy) RetrieveServiceAccountIdByName(ctx context.Context, orgID int64, name string) (int64, error)
- func (s *ServiceAccountsProxy) SearchOrgServiceAccounts(ctx context.Context, query *serviceaccounts.SearchOrgServiceAccountsQuery) (*serviceaccounts.SearchOrgServiceAccountsResult, error)
- func (s *ServiceAccountsProxy) UpdateServiceAccount(ctx context.Context, orgID, serviceAccountID int64, ...) (*serviceaccounts.ServiceAccountProfileDTO, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceAccountsProxy ¶
type ServiceAccountsProxy struct {
// contains filtered or unexported fields
}
func ProvideServiceAccountsProxy ¶
func ProvideServiceAccountsProxy( cfg *setting.Cfg, ac accesscontrol.AccessControl, accesscontrolService accesscontrol.Service, features featuremgmt.FeatureToggles, permissionService accesscontrol.ServiceAccountPermissionsService, proxiedService *manager.ServiceAccountsService, routeRegister routing.RouteRegister, ) (*ServiceAccountsProxy, error)
func (*ServiceAccountsProxy) AddServiceAccountToken ¶
func (s *ServiceAccountsProxy) AddServiceAccountToken(ctx context.Context, serviceAccountID int64, cmd *serviceaccounts.AddServiceAccountTokenCommand) (*apikey.APIKey, error)
func (*ServiceAccountsProxy) CreateServiceAccount ¶
func (s *ServiceAccountsProxy) CreateServiceAccount(ctx context.Context, orgID int64, saForm *serviceaccounts.CreateServiceAccountForm) (*serviceaccounts.ServiceAccountDTO, error)
func (*ServiceAccountsProxy) DeleteServiceAccount ¶
func (s *ServiceAccountsProxy) DeleteServiceAccount(ctx context.Context, orgID, serviceAccountID int64) error
func (*ServiceAccountsProxy) DeleteServiceAccountToken ¶
func (*ServiceAccountsProxy) EnableServiceAccount ¶
func (*ServiceAccountsProxy) ListTokens ¶
func (s *ServiceAccountsProxy) ListTokens(ctx context.Context, query *serviceaccounts.GetSATokensQuery) ([]apikey.APIKey, error)
func (*ServiceAccountsProxy) MigrateApiKey ¶
func (*ServiceAccountsProxy) MigrateApiKeysToServiceAccounts ¶
func (s *ServiceAccountsProxy) MigrateApiKeysToServiceAccounts(ctx context.Context, orgID int64) (*serviceaccounts.MigrationResult, error)
func (*ServiceAccountsProxy) RetrieveServiceAccount ¶
func (s *ServiceAccountsProxy) RetrieveServiceAccount(ctx context.Context, orgID, serviceAccountID int64) (*serviceaccounts.ServiceAccountProfileDTO, error)
func (*ServiceAccountsProxy) RetrieveServiceAccountIdByName ¶
func (*ServiceAccountsProxy) SearchOrgServiceAccounts ¶
func (s *ServiceAccountsProxy) SearchOrgServiceAccounts(ctx context.Context, query *serviceaccounts.SearchOrgServiceAccountsQuery) (*serviceaccounts.SearchOrgServiceAccountsResult, error)
func (*ServiceAccountsProxy) UpdateServiceAccount ¶
func (s *ServiceAccountsProxy) UpdateServiceAccount(ctx context.Context, orgID, serviceAccountID int64, saForm *serviceaccounts.UpdateServiceAccountForm) (*serviceaccounts.ServiceAccountProfileDTO, error)
Click to show internal directories.
Click to hide internal directories.