initialize

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package initialize provides the initialize command, which initializes an installation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCommand

func ClientCommand(builder Builder) *cobra.Command

ClientCommand provides the implementation for "bindplane init client"

func Command

func Command(builder Builder) *cobra.Command

Command returns the BindPlane initialize cobra command

func ServerCommand

func ServerCommand(builder Builder) *cobra.Command

ServerCommand provides the implementation for "bindplane init server"

Types

type Builder

type Builder interface {
	// Build returns a new Initializer
	BuildInitializer(ctx context.Context) (Initializer, error)
}

Builder is an interface for building an Initializer

type Initializer

type Initializer interface {
	// InitializeServer initializes a server config
	InitializeServer(ctx context.Context) error

	// InitializeClient initializes a client config
	InitializeClient(ctx context.Context) error
}

Initializer is an interface for initializing a server or client

func NewInitializer

func NewInitializer(cfg *config.Config, cfgPath string, profiler profile.Profiler) Initializer

NewInitializer returns a new Initializer

Directories

Path Synopsis
Package question is used to create questions for the initialize command.
Package question is used to create questions for the initialize command.

Jump to

Keyboard shortcuts

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