utils

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIdentifierSameAsResourceInfo

func IsIdentifierSameAsResourceInfo(identifier appsv1alpha1.ResourceIdentifier, info ResourceInfo) bool

func IsInitStatus

func IsInitStatus(status *appsv1alpha1.ManifestStatus) bool

Types

type ResourceInfo

type ResourceInfo struct {
	// Ordinal is the index of the template of this resource in
	// the manifetsts of EdgeApplication.
	Ordinal   int    `json:"ordinal"`
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

func GetContainedResourceInfos

func GetContainedResourceInfos(edgeApp *appsv1alpha1.EdgeApplication, yamlSerializer runtime.Serializer) ([]ResourceInfo, error)

func GetResourceInfoOfTemplateInfo

func GetResourceInfoOfTemplateInfo(tmplInfo *TemplateInfo) ResourceInfo

func (*ResourceInfo) String

func (c *ResourceInfo) String() string

type TemplateInfo

type TemplateInfo struct {
	Ordinal  int
	Template *unstructured.Unstructured
}

func GetTemplatesInfosOfEdgeApp

func GetTemplatesInfosOfEdgeApp(edgeApp *appsv1alpha1.EdgeApplication, yamlSerializer runtime.Serializer) ([]*TemplateInfo, error)

Jump to

Keyboard shortcuts

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