version

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: Apache-2.0 Imports: 1 Imported by: 15

Documentation

Overview

Package version allows to capture and store information about Aptomi binary (version, commit, date) so that we know when and how it was built.

Index

Constants

This section is empty.

Variables

View Source
var BuildInfoObject = &runtime.Info{
	Kind:        "version",
	Constructor: func() runtime.Object { return &BuildInfo{} },
}

BuildInfoObject is an informational data structure with Kind and Constructor for Version

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	runtime.TypeKind `yaml:",inline"`
	GitVersion       string
	GitCommit        string
	BuildDate        string
}

BuildInfo represents version, commit and date for aptomi binary, so that we know when and how it was built

func GetBuildInfo

func GetBuildInfo() *BuildInfo

GetBuildInfo returns BuildInfo for aptomi

func (*BuildInfo) AsColumns added in v0.1.6

func (buildInfo *BuildInfo) AsColumns() map[string]string

AsColumns returns PolicyData representation as columns

func (*BuildInfo) GetDefaultColumns added in v0.1.6

func (buildInfo *BuildInfo) GetDefaultColumns() []string

GetDefaultColumns returns default set of columns to be displayed

Jump to

Keyboard shortcuts

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