util

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

CopyFile --

func EncodeXML

func EncodeXML(content interface{}) ([]byte, error)

EncodeXML --

func FileExists

func FileExists(name string) (bool, error)

FileExists --

func FindAllDistinctStringSubmatch

func FindAllDistinctStringSubmatch(data string, regexps ...*regexp.Regexp) []string

FindAllDistinctStringSubmatch --

func SortedMapKeys

func SortedMapKeys(m map[string]interface{}) []string

SortedMapKeys --

func SortedStringMapKeys

func SortedStringMapKeys(m map[string]string) []string

SortedStringMapKeys --

func StringSliceContains

func StringSliceContains(slice []string, items []string) bool

StringSliceContains --

func StringSliceContainsAnyOf

func StringSliceContainsAnyOf(slice []string, items ...string) bool

func StringSliceExists

func StringSliceExists(slice []string, item string) bool

StringSliceExists --

func StringSliceJoin

func StringSliceJoin(slices ...[]string) []string

StringSliceJoin --

func StringSliceUniqueAdd

func StringSliceUniqueAdd(slice *[]string, item string) bool

StringSliceUniqueAdd append the given item if not already present in the slice

func StringSliceUniqueConcat

func StringSliceUniqueConcat(slice *[]string, items []string) bool

StringSliceUniqueConcat append all the items of the "items" slice if they are not already present in the slice

func WriteFileWithBytesMarshallerContent

func WriteFileWithBytesMarshallerContent(buildDir string, relativePath string, content BytesMarshaller) error

WriteFileWithBytesMarshallerContent --

func WriteFileWithContent

func WriteFileWithContent(buildDir string, relativePath string, content []byte) error

WriteFileWithContent --

Types

type BytesMarshaller

type BytesMarshaller interface {
	MarshalBytes() ([]byte, error)
}

BytesMarshaller --

Directories

Path Synopsis
Package bindings provides APIs to transform Kubernetes objects into Camel URIs equivalents
Package bindings provides APIs to transform Kubernetes objects into Camel URIs equivalents
log
Package minishift contains utilities for Minishift deployments
Package minishift contains utilities for Minishift deployments
Package sync provides useful tools to get notified when a file system resource changes
Package sync provides useful tools to get notified when a file system resource changes

Jump to

Keyboard shortcuts

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