Documentation
¶
Index ¶
- func CmpResourceList(a, b *v1.ResourceList) bool
- func CmpResources(a, b *v1.ResourceRequirements) bool
- func EnsureObjectMeta(existing, desired *metav1.ObjectMeta) bool
- func EnsureString(modified *bool, existing *string, required string)
- func GetEnvVar(key, def string) string
- func MergeMapStringString(modified *bool, existing *map[string]string, desired map[string]string)
- func PortFromURL(url *url.URL) int
- func PortaClient(url *url.URL, masterAccessToken string) (*client.ThreeScaleClient, error)
- func PortaClientFromURLString(adminURLStr, masterAccessToken string) (*client.ThreeScaleClient, error)
- func SetURLDefaultPort(rawurl string) string
- func UnwrapRawExtensions(rawExts []runtime.RawExtension) []common.KubernetesObject
- func WrapRawExtension(object runtime.Object) runtime.RawExtension
- func WrapRawExtensions(objects []common.KubernetesObject) []runtime.RawExtension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpResourceList ¶ added in v0.4.0
func CmpResourceList(a, b *v1.ResourceList) bool
CmpResourceList returns true if the resourceList a is equal to b,
func CmpResources ¶ added in v0.4.0
func CmpResources(a, b *v1.ResourceRequirements) bool
CmpResources returns true if the resource requirements a is equal to b,
func EnsureObjectMeta ¶ added in v0.4.0
func EnsureObjectMeta(existing, desired *metav1.ObjectMeta) bool
EnsureObjectMeta ensure Labels, Annotations
func EnsureString ¶ added in v0.4.0
func MergeMapStringString ¶ added in v0.4.0
func PortFromURL ¶
PortFromURL infers port number if it is not explict
func PortaClient ¶
PortaClient instantiates porta_client.ThreeScaleClient from admin url object
func PortaClientFromURLString ¶
func PortaClientFromURLString(adminURLStr, masterAccessToken string) (*client.ThreeScaleClient, error)
PortaClientFromURLString instantiate porta_client.ThreeScaleClient from admin url string
func SetURLDefaultPort ¶
SetURLDefaultPort adds the default Port if not set
func UnwrapRawExtensions ¶ added in v0.3.0
func UnwrapRawExtensions(rawExts []runtime.RawExtension) []common.KubernetesObject
func WrapRawExtension ¶ added in v0.3.0
func WrapRawExtension(object runtime.Object) runtime.RawExtension
func WrapRawExtensions ¶ added in v0.3.0
func WrapRawExtensions(objects []common.KubernetesObject) []runtime.RawExtension
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.