version

package
v1.20.0 Latest Latest
Warning

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

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

Documentation

Overview

Package version provides the version command, which prints the BindPlane version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(builder Builder) *cobra.Command

Command returns a new BindPlane versions cobra command.

Types

type Builder

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

Builder is an interface for building a Versioner.

type Versioner

type Versioner interface {
	// GetServerVersion returns the server version.
	GetServerVersion(ctx context.Context) (version.Version, error)
	// GetClientVersion returns the client version.
	GetClientVersion(ctx context.Context) (version.Version, error)
}

Versioner is an interface for retrieving BindPlane versions.

func NewVersioner

func NewVersioner(client client.BindPlane) Versioner

NewVersioner returns a new Versioner.

Jump to

Keyboard shortcuts

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