version

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package version implements the version command for any microservice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Command

type Command interface {
	// CobraCommand returns the actual cobra command for the version command.
	CobraCommand() *cobra.Command
	// Execute represents the cobra run method.
	Execute(cmd *cobra.Command, args []string)
}

Command represents the version command for any microservice.

func New

func New(config Config) (Command, error)

type Config

type Config struct {
	Description    string
	GitCommit      string
	Name           string
	Source         string
	Version        string
	VersionBundles []versionbundle.Bundle
}

Jump to

Keyboard shortcuts

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