helpers

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerImageFromIST

func GetDockerImageFromIST(i *imagev1.ImageStreamTag) *dockerv10.DockerImage

Unmarshals json data into a DockerImage type

func GetDockerImageFromImage

func GetDockerImageFromImage(i *imagev1.Image) *dockerv10.DockerImage

Unmarshalljson data into a DockerImage type

func ImageExposedPortsToServicePorts

func ImageExposedPortsToServicePorts(config *docker10.DockerConfig) []corev1.ServicePort

Returns a slice of k8s.io v1 ServicePort{} types from a Docker image config.

func ImageInfo

func ImageInfo(image string) (*dockerv10.DockerImage, error)

Returns docker information based on images referenced in spec.

func LabelString

func LabelString(s string) string

Sanitize a string for a k8s label field

func PathToIdentifier

func PathToIdentifier(path string) string

func SkopeoImageInfo

func SkopeoImageInfo(image string) *dockerv10.DockerImage

Inspect a docker image with skope and unmarshal that json output to a dockerv10.DockerImage{} struct.

func SliceInString

func SliceInString(list []string, str string) bool

Checks if a strings in a slice is part of a string.

func StringInSlice

func StringInSlice(a string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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