util

package
v0.0.0-...-6ecb9a7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEnv

func FormatEnv(env map[string]string) []string

Formats an environment map for use in a Dokku command

func GetGitRepositoryDefaultBranch

func GetGitRepositoryDefaultBranch(url string) (string, error)

Gets the default branch of a git repository without cloning it

func IsCoreEnvVariable

func IsCoreEnvVariable(key string) bool

IsCoreEnvVariable determines whether or not an environment variable key is a core Dokku variables. Core variables should _not_ be settable or viewable by clients.

func MakeWebsocketUpgrader

func MakeWebsocketUpgrader() websocket.Upgrader

func RemoveDuplicates

func RemoveDuplicates(a, b []uint) ([]uint, []uint)

func VerifyEnv

func VerifyEnv(key 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