util

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDcosConstraints

func BuildDcosConstraints(enable bool, labels map[string]string, preserveProjects map[string]struct{}, workspaceTags map[string]struct{}) [][]string

func CombineLabels

func CombineLabels(parent, child map[string]string) map[string]string

func GetAndSetTokenAuth

func GetAndSetTokenAuth(client *httpclient.HTTPClient, executorName string)

call this in goroutine

func ParseEnableTagOption

func ParseEnableTagOption(options map[string]string, key string, defaultValue bool) (bool, error)

func ParsePreserveProjects

func ParsePreserveProjects(options map[string]string, key string) map[string]struct{}

func ParseServiceDependency

func ParseServiceDependency(runtime *apistructs.ServiceGroup) ([][]*apistructs.Service, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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