Documentation
¶
Index ¶
- Constants
- func SetupDefaultReconcilers(ctx context.Context, log *logrus.Entry, reconcilers []EnableableReconciler, ...) error
- func SetupStaticServiceAccounts(ctx context.Context, database db.Database, serviceAccounts ServiceAccounts) error
- type EnableableReconciler
- type ServiceAccount
- type ServiceAccountRole
- type ServiceAccounts
Constants ¶
View Source
const NaisServiceAccountPrefix = "nais-"
Variables ¶
This section is empty.
Functions ¶
func SetupDefaultReconcilers ¶
func SetupStaticServiceAccounts ¶
func SetupStaticServiceAccounts(ctx context.Context, database db.Database, serviceAccounts ServiceAccounts) error
SetupStaticServiceAccounts Create a set of service accounts with roles and API keys
Types ¶
type EnableableReconciler ¶
type EnableableReconciler sqlc.ReconcilerName
func (*EnableableReconciler) Decode ¶
func (e *EnableableReconciler) Decode(s string) error
type ServiceAccount ¶
type ServiceAccount struct { Name string `json:"name"` Roles []ServiceAccountRole `json:"roles"` APIKey string `json:"apiKey"` }
type ServiceAccountRole ¶
type ServiceAccounts ¶
type ServiceAccounts []ServiceAccount
func (*ServiceAccounts) Decode ¶
func (s *ServiceAccounts) Decode(value string) error
Click to show internal directories.
Click to hide internal directories.