initialdata

package
v0.0.0-...-294dc8c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InitialDataHelp contains the short help text for the command.
	InitialDataHelp = "Creates initial data if there is an empty datastore"

	// InitialDataHelpExtra contains the long help text for the command without
	// the headline.
	InitialDataHelpExtra = `` /* 173-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the subcommand.

func InitialData

func InitialData(ctx context.Context, in *proto.InitialDataRequest, superadminSecretFile string, ba backendAction) (*proto.InitialDataResponse, error)

InitialData sets initial data in the datastore.

func Run

func Run(ctx context.Context, gc gRPCClient, data []byte) error

Run calls respective procedure to set initial data to an empty database via given gRPC client.

func SetSuperadminPassword

func SetSuperadminPassword(ctx context.Context, superadminSecretFile string, ba backendAction) error

SetSuperadminPassword sets the first password for the superadmin according to respective secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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