util

package
v0.0.0-...-d99d806 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PartCountAfterSplitByColon = 2

Variables

This section is empty.

Functions

func Fallback

func Fallback(str ...string) string

variadic string fallback, accepting string params returns the first non-empty value

func GetRegistryURL

func GetRegistryURL(registry *string, registryAuth *builder.RegistryAuth) string

func GetRegistryURLProto

func GetRegistryURLProto(registry *string, registryAuth *agent.DeployRequest_RegistryAuth) string

func JoinV

func JoinV(separator string, items ...string) string

func MapAppsettingsToEnv

func MapAppsettingsToEnv(in *string) (map[string]string, error)

func RemoveJSONComment

func RemoveJSONComment(strIn []byte) []byte

Types

type EmptyImageError

type EmptyImageError struct{}

func (*EmptyImageError) Error

func (e *EmptyImageError) Error() string

type ImageURI

type ImageURI struct {
	Host string
	Name string
	Tag  string
}

func ImageURIFromString

func ImageURIFromString(imageName string) (*ImageURI, error)

ImageURIFromString results in an image that is split respectively imageName can be fully qualified or dockerhub image name plus tag

func (*ImageURI) String

func (image *ImageURI) String() string

func (*ImageURI) StringNoTag

func (image *ImageURI) StringNoTag() string

type InvalidImageURIError

type InvalidImageURIError struct {
	Image string
}

func (*InvalidImageURIError) Error

func (e *InvalidImageURIError) Error() string

type MultiColonRegistryURIError

type MultiColonRegistryURIError struct{}

func (*MultiColonRegistryURIError) Error

Jump to

Keyboard shortcuts

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