bootstrap

package
v0.0.0-...-94d0466 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 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 BotService

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

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

func GitspaceService

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

GitspaceService sets up the gitspace service principal that is used during gitspace credential injection for calling Harness APIs.

func NewBotServiceSession

func NewBotServiceSession() *auth.Session

func NewGitspaceServiceSession

func NewGitspaceServiceSession() *auth.Session

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 Harness 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 Harness 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