install

package
v1.32.1 Latest Latest
Warning

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

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

Documentation

Overview

Package install provides the install command, which installs a new agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentCommand

func AgentCommand(builder Builder) *cobra.Command

AgentCommand returns the BindPlane install agent cobra command

func Command

func Command(builder Builder) *cobra.Command

Command returns the BindPlane install cobra command.

Types

type Builder

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

Builder is an interface for building an Installer

type Installer

type Installer interface {
	// GetAgentInstallCommand returns the install command for an agent
	GetAgentInstallCommand(ctx context.Context, opts client.AgentInstallOptions) (string, error)
}

Installer is an interface for getting the install command for an agent

func NewInstaller

func NewInstaller(client client.BindPlane) Installer

NewInstaller returns a new Installer

Jump to

Keyboard shortcuts

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