bootstrap

package
v1.0.1-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAdminEmailRequired = errors.New("config.Principal.Admin.Email is required")

WireSet provides a wire set for this package.

Functions

func AdminUser

func AdminUser(ctx context.Context, config *types.Config, userCtrl *user.Controller) error

AdminUser sets up the admin user based on the config (if provided).

func NewPipelineServiceSession

func NewPipelineServiceSession() *auth.Session

func NewSystemServiceSession

func NewSystemServiceSession() *auth.Session

func PipelineService

func PipelineService(
	ctx context.Context,
	config *types.Config,
	serviceCtrl *service.Controller,
) error

PipelineService sets up the pipeline service principal that is used during pipeline executions for calling gitness APIs.

func System

func System(config *types.Config, userCtrl *user.Controller,
	serviceCtrl *service.Controller) func(context.Context) error

func SystemService

func SystemService(
	ctx context.Context,
	config *types.Config,
	serviceCtrl *service.Controller,
) error

SystemService sets up the gitness service principal that is used for resources that are automatically created by the system.

Types

type Bootstrap

type Bootstrap func(context.Context) error

Bootstrap is an abstraction of a function that bootstraps a system.

func ProvideBootstrap

func ProvideBootstrap(config *types.Config, userCtrl *user.Controller,
	serviceCtrl *service.Controller) Bootstrap

Jump to

Keyboard shortcuts

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