util

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package util defines convenience functions for handling slices and debugging.

Note: this package is an implementation detail and shouldn't be used outside of docker2aci.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSClient added in v0.9.3

func GetTLSClient(skipTLSCheck bool) *http.Client

GetTLSClient gets an HTTP client that behaves like the default HTTP client, but optionally skips the TLS certificate verification.

func In

func In(list []string, el string) bool

In checks whether el is in list.

func IndexOf

func IndexOf(list []string, el string) int

IndexOf returns the index of el in list, or -1 if it's not found.

func Quote

func Quote(l []string) []string

Quote takes a slice of strings and returns another slice with them quoted.

func ReverseImages

func ReverseImages(s acirenderer.Images) acirenderer.Images

ReverseImages takes an acirenderer.Images and reverses it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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