Documentation
¶
Index ¶
- Variables
- func AdminUser(ctx context.Context, config *types.Config, userCtrl *user.Controller) error
- func NewPipelineServiceSession() *auth.Session
- func NewSystemServiceSession() *auth.Session
- func PipelineService(ctx context.Context, config *types.Config, serviceCtrl *service.Controller) error
- func System(config *types.Config, userCtrl *user.Controller, ...) func(context.Context) error
- func SystemService(ctx context.Context, config *types.Config, serviceCtrl *service.Controller) error
- type Bootstrap
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAdminEmailRequired = errors.New("config.Principal.Admin.Email is required")
View Source
var WireSet = wire.NewSet(ProvideBootstrap)
WireSet provides a wire set for this package.
Functions ¶
func NewSystemServiceSession ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.