Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServiceAccountFeatureToggleNotFound = "FeatureToggle serviceAccounts not found, try adding it to your custom.ini"
)
Functions ¶
func RegisterRoles ¶
func RegisterRoles(ac accesscontrol.AccessControl) error
Types ¶
type ServiceAccountsService ¶
type ServiceAccountsService struct {
// contains filtered or unexported fields
}
func ProvideServiceAccountsService ¶
func ProvideServiceAccountsService( cfg *setting.Cfg, features featuremgmt.FeatureToggles, store *sqlstore.SQLStore, ac accesscontrol.AccessControl, routeRegister routing.RouteRegister, usageStats usagestats.Service, ) (*ServiceAccountsService, error)
func (*ServiceAccountsService) CreateServiceAccount ¶
func (sa *ServiceAccountsService) CreateServiceAccount(ctx context.Context, orgID int64, name string) (*serviceaccounts.ServiceAccountDTO, error)
func (*ServiceAccountsService) DeleteServiceAccount ¶
func (sa *ServiceAccountsService) DeleteServiceAccount(ctx context.Context, orgID, serviceAccountID int64) error
Click to show internal directories.
Click to hide internal directories.