fixtures

package
v0.0.0-...-96f7096 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NaisServiceAccountPrefix = "nais-"

Variables

This section is empty.

Functions

func SetupDefaultReconcilers

func SetupDefaultReconcilers(ctx context.Context, log *logrus.Entry, reconcilers []EnableableReconciler, database db.Database) error

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 ServiceAccountRole struct {
	Name sqlc.RoleName `json:"name"`
}

type ServiceAccounts

type ServiceAccounts []ServiceAccount

func (*ServiceAccounts) Decode

func (s *ServiceAccounts) Decode(value string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL