utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponentLabels

func GetComponentLabels(component types.ComponentName, crName string) types.Labels

GetComponentLabels returns the Labels object for the given component

func GetObjectName

func GetObjectName(component types.ComponentName, crName string) types.ObjectName

GetObjectName gets the object name by joining CR name and component

func GetXrootdVersionInfo

func GetXrootdVersionInfo(runtimeClient client.Client, namespace string, versionName string) (result *catalogv1alpha1.XrootdVersion, err error)

GetXrootdVersionInfo returns the XrootdVersion CR object with Name as `versionName`

func MergeLabels

func MergeLabels(args ...types.Labels) types.Labels

MergeLabels merges the given Labels to return one Labels object

func SuffixName

func SuffixName(name string, suffix string, suffixes ...string) string

SuffixName joins the given suffixes with the given name using - as delimiter

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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