version

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package version provides a command to print the version of opampctl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(options CommandOptions) *cobra.Command

NewCommand creates a new version command.

Types

type CommandOptions

type CommandOptions struct {
	*config.GlobalConfig
	// contains filtered or unexported fields
}

CommandOptions contains the options for the version command.

func (*CommandOptions) Prepare

func (opt *CommandOptions) Prepare(*cobra.Command, []string) error

Prepare prepares the command to run.

func (*CommandOptions) Run

func (opt *CommandOptions) Run(cmd *cobra.Command, _ []string) error

Run executes the command.

type Version

type Version struct {
	ClientVersion *v1version.Info `json:"clientVersion" short:"client" yaml:"clientVersion"`
	ServerVersion *v1version.Info `json:"serverVersion" short:"server" yaml:"serverVersion"`
}

Version is a struct that contains the client and server version information.

Jump to

Keyboard shortcuts

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