initialize

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 14 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(bindplane *cli.BindPlane, h profile.Helper) *cobra.Command

ClientCommand provides the implementation for "bindplane init client"

func Command

func Command(bindplane *cli.BindPlane, h profile.Helper, mode Mode) *cobra.Command

Command returns the BindPlane initialize cobra command

func ServerCommand

func ServerCommand(bindplane *cli.BindPlane, h profile.Helper) *cobra.Command

ServerCommand provides the implementation for "bindplane init server"

Types

type Mode

type Mode string

Mode defines which initialize commands should be supported

var (
	// ServerMode enables the server initialize command
	ServerMode Mode = "server"
	// ClientMode enables the client initialize command
	ClientMode Mode = "client"
	// DualMode enables both client and server initialize commands
	DualMode Mode = "dual"
)

type ProfileUpdater

type ProfileUpdater func(spec *model.ProfileSpec) error

ProfileUpdater handles the actual updates to a profile

Jump to

Keyboard shortcuts

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