update

package
v1.29.0 Latest Latest
Warning

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

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

Documentation

Overview

Package update contains the update command, which upgrades a specific agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentCommand

func AgentCommand(builder Builder) *cobra.Command

AgentCommand returns the iris update agent cobra command

func Command

func Command(builder Builder) *cobra.Command

Command returns the iris update cobra command

Types

type Builder

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

Builder is an interface for building an Updater.

type Updater

type Updater interface {
	// UpdateAgent updates the agent with the given id to the given version.
	UpdateAgent(ctx context.Context, id, version string) error
}

Updater is an interface for updating BindPlane resources.

func NewUpdater

func NewUpdater(client client.BindPlane) Updater

NewUpdater returns a new Updater.

Jump to

Keyboard shortcuts

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