qutils

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: Apache-2.0 Imports: 7 Imported by: 7

README

qframe-utils

Utils package for qframe

Documentation

Index

Constants

View Source
const (
	Version = "0.1.0"
)

Variables

This section is empty.

Functions

func GetGID

func GetGID() uint64

func GetParams

func GetParams(regEx *regexp.Regexp, str string) (paramsMap map[string]string)

func IsInput

func IsInput(list []string, item string) bool

func IsItem

func IsItem(list []string, item string) bool

IsInput checks if a list of inputs (e.g. [one, two]) matches the suffix of item (two-one)

func IsLastSource

func IsLastSource(list []string, item string) bool

IsLastSource checks if a list of inputs (e.g. [one, two]) matches the last item in SourcesPath of item [two,one]

func SanatizeContainerName

func SanatizeContainerName(names []string) string

Types

type DockerServiceTask

type DockerServiceTask struct {
	Name   string
	Slot   string
	TaskID string
}

func ContainerNameExtractService

func ContainerNameExtractService(names []string) (task DockerServiceTask, err error)

Jump to

Keyboard shortcuts

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