util

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 11 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 GetClient added in v1.1.0

func GetClient(clusterName string, manageConfig *apistructs.ManageConfig) (string, *httpclient.HTTPClient, error)

GetClient get http client with cluster info.

func IsNotFound added in v1.0.0

func IsNotFound(err error) bool

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