mirror of https://github.com/grafana/grafana
Serviceaccounts: create serviceaccount api (#42150)
* WIP * wip * wip * wip * refactor: new return of the create service accoutn * refactor: change to have correct role * refactor: ability to create service accounts * make public * refactor: make ints instead * refactor: remove location sprintf * refactor: added back named constantspull/43101/head
parent
19374fce39
commit
4a3961400a
@ -1,10 +1,16 @@ |
||||
package serviceaccounts |
||||
|
||||
import "context" |
||||
import ( |
||||
"context" |
||||
|
||||
"github.com/grafana/grafana/pkg/models" |
||||
) |
||||
|
||||
type Service interface { |
||||
CreateServiceAccount(ctx context.Context, saForm *CreateServiceaccountForm) (*models.User, error) |
||||
DeleteServiceAccount(ctx context.Context, orgID, serviceAccountID int64) error |
||||
} |
||||
type Store interface { |
||||
CreateServiceAccount(ctx context.Context, saForm *CreateServiceaccountForm) (*models.User, error) |
||||
DeleteServiceAccount(ctx context.Context, orgID, serviceAccountID int64) error |
||||
} |
||||
|
Loading…
Reference in new issue