initializer

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer struct {
	app.Service
	// contains filtered or unexported fields
}

Initializer defines the configuration required for initailizer to populate the tables

func New

func New(api app.BaseConfig) *Initializer

New returns the Initializer implementation.

func (*Initializer) CreateApiServerAccount added in v1.8.0

func (i *Initializer) CreateApiServerAccount(db *gorm.DB, logger *app.Logger) error

Check if apiserver account exists or not If does not exists, it creates apiserver account

func (*Initializer) Run

func (i *Initializer) Run(ctx context.Context) (*model.Config, error)

Run executes the func which populate the tables

Jump to

Keyboard shortcuts

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