appinfo

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

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

AppInfo represents an application config file

func NewAppInfo

func NewAppInfo(appConfigFile string) *AppInfo

NewAppInfo returns a representation of an application config file

func NewFakeAppInfo

func NewFakeAppInfo(fs *afero.Fs, appConfigFile string, appConfigStr string) *AppInfo

NewFakeAppInfo returns a fake representation of an application config file for unit-testing

func (*AppInfo) GetAppConfigFile

func (cfg *AppInfo) GetAppConfigFile() string

GetAppConfigFile returns the app file

func (*AppInfo) GetAppDescription

func (cfg *AppInfo) GetAppDescription() string

GetAppDescription returns the description of an application file

func (*AppInfo) GetAppFileDir

func (cfg *AppInfo) GetAppFileDir() string

GetAppFileDir returns the app file directory

func (*AppInfo) GetAppName

func (cfg *AppInfo) GetAppName() string

GetAppName returns the name of the application

func (*AppInfo) GetAppVersion

func (cfg *AppInfo) GetAppVersion() string

GetAppVersion returns the version of an application file

func (*AppInfo) GetDockerRunArgs

func (cfg *AppInfo) GetDockerRunArgs() (dockerRunArgs []string)

GetDockerRunArgs returns for an app file the resolved docker run arguments

func (*AppInfo) GetDockerfile

func (cfg *AppInfo) GetDockerfile() string

GetDockerfile returns for an app file the resolved dockerfile

func (*AppInfo) GetResolvedAppConfig

func (cfg *AppInfo) GetResolvedAppConfig() string

GetResolvedAppConfig returns the resolved app file

func (*AppInfo) IsConsoleApp

func (cfg *AppInfo) IsConsoleApp() bool

IsConsoleApp returns true if a TTY should be allocated and stdin should be opened (default behavior)

Jump to

Keyboard shortcuts

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