utils

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadWithProgress

func DownloadWithProgress(ctx context.Context, log logger.Logger, url string, filename string) error

func IsStringInSlice

func IsStringInSlice(haystack []string, needle string) bool

func RenderKustomizeFile

func RenderKustomizeFile(outdir string, resources []string, ignoreFn func(s string) bool) error

Types

type Pair

type Pair[A any, B any] struct {
	// contains filtered or unexported fields
}

func NewPair

func NewPair[A any, B any](a A, b B) Pair[A, B]

func (*Pair[A, B]) A

func (p *Pair[A, B]) A() A

func (*Pair[A, B]) B

func (p *Pair[A, B]) B() B

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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