util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 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 GetClient

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

GetClient get http client with cluster info.

func GetDeployName

func GetDeployName(service *apistructs.Service) string

func GetDiceWorkspaceFromEnvs

func GetDiceWorkspaceFromEnvs(envs map[string]string) (apistructs.DiceWorkspace, error)

func IsNotFound

func IsNotFound(err error) bool

func ParseAnnotationFromEnv

func ParseAnnotationFromEnv(k string) string

ParseAnnotationFromEnv TODO: get from service group

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)

func VersionHas

func VersionHas(c kubernetes.Interface, v string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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