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 ¶
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
Click to show internal directories.
Click to hide internal directories.