util

package
v1.25.12 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: LGPL-3.0 Imports: 11 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// The base directory where all code is copied in the Docker image
	DockerBasedir = "/u01"
	// Where in the build folder the application is put
	DockerfileApplicationFolder = "app"
	ApplicationFolder           = "application"
	// The directory where the application is prepared
	ApplicationBuildFolder = DockerfileApplicationFolder + "/" + ApplicationFolder
	DeliveryMetadataPath   = "metadata/openshift.json"
)

Variables

This section is empty.

Functions

func Exists added in v1.25.3

func Exists(path string) (bool, error)

func ExtractAndRenameDeliverable added in v1.25.3

func ExtractAndRenameDeliverable(dockerBuildFolder string, deliverablePath string) error

func ExtractBinaryFromFile added in v1.25.9

func ExtractBinaryFromFile(file string) (string, error)

func ExtractBinaryFromStdIn

func ExtractBinaryFromStdIn() (string, error)

func GetVersionMetadata added in v1.18.0

func GetVersionMetadata(versionString string) string

func GetVersionWithoutMetadata added in v1.18.0

func GetVersionWithoutMetadata(versionString string) string

func IsFullSemanticVersion added in v1.16.0

func IsFullSemanticVersion(versionString string) bool

func IsSemanticVersion added in v1.16.0

func IsSemanticVersion(versionString string) bool

func IsSemanticVersionWithMeta added in v1.18.0

func IsSemanticVersionWithMeta(versionString string) bool

Types

type FileWriter

type FileWriter func(WriterFunc, ...string) error

func NewFileWriter

func NewFileWriter(targetFolder string) FileWriter

type WriterFunc

type WriterFunc func(io.Writer) error

func NewByteWriter added in v1.4.0

func NewByteWriter(data []byte) WriterFunc

func NewTemplateWriter

func NewTemplateWriter(input interface{}, templatename string, templateString string) WriterFunc

Jump to

Keyboard shortcuts

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