util

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02_15-04-05"

TimeFormat is used to name log files generated by deploy step

Variables

This section is empty.

Functions

func ApplyDefaultRepo

func ApplyDefaultRepo(globalConfig string, defaultRepo *string, tag string) (string, error)

ApplyDefaultRepo applies the default repo to a given image tag.

func WithLogFile

func WithLogFile(filename string, out io.Writer, muted Muted) (io.Writer, func(error), error)

WithLogFile returns a multiwriter that writes both to a file and a buffer, with the buffer being written to the provided output buffer in case of error

Types

type Muted

type Muted interface {
	MuteDeploy() bool
}

type StringSet

type StringSet map[string]unit

StringSet helps to de-duplicate a set of strings.

func NewStringSet

func NewStringSet() StringSet

NewStringSet returns a new StringSet object.

func (StringSet) Insert

func (s StringSet) Insert(strings ...string)

Insert adds strings to the set.

func (StringSet) ToList

func (s StringSet) ToList() []string

ToList returns the sorted list of inserted strings.

Jump to

Keyboard shortcuts

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