version

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "mdz version mdz1.0.0"

Version variable to set mdz version

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand is a func that execute some commands and return a *cobra.Command struct

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a struct that return *VersionStore struct

func NewVersionController

func NewVersionController() *Controller

NewVersionController return a *Controller struct with a new version store

func (*Controller) GetStore

func (c *Controller) GetStore() *Store

GetStore is a func that return a *VersionStore struct

func (*Controller) Render

func (c *Controller) Render(cmd *cobra.Command, args []string) error

Render is a func that receive a struct *cobra.Command

func (*Controller) Run

func (c *Controller) Run(cmd *cobra.Command, args []string) (pkg.Renderable, error)

Run is a func that return a Renderable interface

type Store

type Store struct {
	Version   string `json:"version"`
	BuildDate string `json:"buildDate"`
	Commit    string `json:"commit"`
}

Store is a struct designed to encapsulate payload data.

func NewDefaultVersionStore

func NewDefaultVersionStore() *Store

NewDefaultVersionStore return a *VersionStore struct with the version

Jump to

Keyboard shortcuts

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