Documentation
¶
Index ¶
- Constants
- func AddAdminUser(ctx context.Context, authService auth.Service, ...) (*model.Credential, error)
- func CreateInitialAdminUser(ctx context.Context, authService auth.Service, cfg *config.Config, ...) (*model.Credential, error)
- func CreateInitialAdminUserWithKeys(ctx context.Context, authService auth.Service, cfg *config.Config, ...) (*model.Credential, error)
- func CreateRBACBasePolicies(ctx context.Context, authService auth.Service, ts time.Time) error
- func SetupACLBaseGroups(ctx context.Context, authService auth.Service, ts time.Time) error
- func SetupAdminUser(ctx context.Context, authService auth.Service, cfg *config.Config, ...) (*model.Credential, error)
- func SetupBaseGroups(ctx context.Context, authService auth.Service, cfg *config.Config, ...) error
- func SetupRBACBaseGroups(ctx context.Context, authService auth.Service, ts time.Time) error
Constants ¶
View Source
const ( AdminsGroup = "Admins" SuperUsersGroup = "SuperUsers" DevelopersGroup = "Developers" ViewersGroup = "Viewers" )
Variables ¶
This section is empty.
Functions ¶
func AddAdminUser ¶
func AddAdminUser(ctx context.Context, authService auth.Service, user *model.SuperuserConfiguration) (*model.Credential, error)
func CreateInitialAdminUser ¶
func CreateRBACBasePolicies ¶
func SetupACLBaseGroups ¶
func SetupAdminUser ¶
func SetupAdminUser(ctx context.Context, authService auth.Service, cfg *config.Config, superuser *model.SuperuserConfiguration) (*model.Credential, error)
SetupAdminUser setup base groups, policies and create admin user
func SetupBaseGroups ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.