Documentation
¶
Index ¶
- Variables
- type Index
- func (idx *Index) GetClusterComponentType(name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetClusterTrait(name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetComponent(namespace, name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetComponentType(name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetDeploymentPipeline(name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetProject(namespace, name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetReleaseBindingForEnv(projectName, componentName, envName string) (*index.ResourceEntry, bool)
- func (idx *Index) GetTrait(name string) (*index.ResourceEntry, bool)
- func (idx *Index) GetTypedClusterComponentType(name string) (*typed.ClusterComponentType, error)
- func (idx *Index) GetTypedClusterTrait(name string) (*typed.ClusterTrait, error)
- func (idx *Index) GetTypedComponent(namespace, name string) (*typed.Component, error)
- func (idx *Index) GetTypedComponentType(name string) (*typed.ComponentType, error)
- func (idx *Index) GetTypedTrait(name string) (*typed.Trait, error)
- func (idx *Index) GetTypedWorkloadForComponent(projectName, componentName string) (*typed.Workload, error)
- func (idx *Index) GetWorkloadForComponent(projectName, componentName string) (*index.ResourceEntry, bool)
- func (idx *Index) ListComponents() []*index.ResourceEntry
- func (idx *Index) ListComponentsForProject(projectName string) []*index.ResourceEntry
- func (idx *Index) ListReleaseBindings() []*index.ResourceEntry
- func (idx *Index) ListReleases() []*index.ResourceEntry
- func (idx *Index) ListReleasesForComponent(projectName, componentName string) []*index.ResourceEntry
- type OwnerRef
Constants ¶
This section is empty.
Variables ¶
var ( ComponentGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "Component"} ComponentTypeGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "ComponentType"} WorkloadGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "Workload"} TraitGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "Trait"} ComponentReleaseGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "ComponentRelease"} ReleaseBindingGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "ReleaseBinding"} DeploymentPipelineGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "DeploymentPipeline"} ProjectGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "Project"} EnvironmentGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "Environment"} DataPlaneGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "DataPlane"} ClusterComponentTypeGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "ClusterComponentType"} ClusterTraitGVK = schema.GroupVersionKind{Group: "openchoreo.dev", Version: "v1alpha1", Kind: "ClusterTrait"} )
OpenChoreo resource GroupVersionKinds
Functions ¶
This section is empty.
Types ¶
type Index ¶
Index wraps the generic index with OpenChoreo-specific functionality
func (*Index) GetClusterComponentType ¶ added in v1.0.0
func (idx *Index) GetClusterComponentType(name string) (*index.ResourceEntry, bool)
GetClusterComponentType retrieves a cluster component type by name
func (*Index) GetClusterTrait ¶ added in v1.0.0
func (idx *Index) GetClusterTrait(name string) (*index.ResourceEntry, bool)
GetClusterTrait retrieves a cluster trait by name
func (*Index) GetComponent ¶
func (idx *Index) GetComponent(namespace, name string) (*index.ResourceEntry, bool)
GetComponent retrieves a component by namespace and name
func (*Index) GetComponentType ¶
func (idx *Index) GetComponentType(name string) (*index.ResourceEntry, bool)
GetComponentType retrieves a component type by name
func (*Index) GetDeploymentPipeline ¶
func (idx *Index) GetDeploymentPipeline(name string) (*index.ResourceEntry, bool)
GetDeploymentPipeline retrieves a deployment pipeline by name
func (*Index) GetProject ¶ added in v0.15.0
func (idx *Index) GetProject(namespace, name string) (*index.ResourceEntry, bool)
GetProject retrieves a project by namespace and name
func (*Index) GetReleaseBindingForEnv ¶
func (idx *Index) GetReleaseBindingForEnv(projectName, componentName, envName string) (*index.ResourceEntry, bool)
GetReleaseBindingForEnv retrieves a release binding for a specific component and environment Returns the first binding found for the given component and environment
func (*Index) GetTrait ¶
func (idx *Index) GetTrait(name string) (*index.ResourceEntry, bool)
GetTrait retrieves a trait by name
func (*Index) GetTypedClusterComponentType ¶ added in v1.0.0
func (idx *Index) GetTypedClusterComponentType(name string) (*typed.ClusterComponentType, error)
GetTypedClusterComponentType retrieves a cluster component type by name and returns a typed wrapper
func (*Index) GetTypedClusterTrait ¶ added in v1.0.0
func (idx *Index) GetTypedClusterTrait(name string) (*typed.ClusterTrait, error)
GetTypedClusterTrait retrieves a cluster trait by name and returns a typed wrapper
func (*Index) GetTypedComponent ¶
GetTypedComponent retrieves a component by namespace and name and returns a typed wrapper
func (*Index) GetTypedComponentType ¶
func (idx *Index) GetTypedComponentType(name string) (*typed.ComponentType, error)
GetTypedComponentType retrieves a component type by name and returns a typed wrapper
func (*Index) GetTypedTrait ¶
GetTypedTrait retrieves a trait by name and returns a typed wrapper
func (*Index) GetTypedWorkloadForComponent ¶
func (idx *Index) GetTypedWorkloadForComponent(projectName, componentName string) (*typed.Workload, error)
GetTypedWorkloadForComponent retrieves the workload for a specific component and returns a typed wrapper
func (*Index) GetWorkloadForComponent ¶
func (idx *Index) GetWorkloadForComponent(projectName, componentName string) (*index.ResourceEntry, bool)
GetWorkloadForComponent retrieves the workload for a specific component
func (*Index) ListComponents ¶
func (idx *Index) ListComponents() []*index.ResourceEntry
ListComponents returns all components
func (*Index) ListComponentsForProject ¶
func (idx *Index) ListComponentsForProject(projectName string) []*index.ResourceEntry
ListComponentsForProject returns all components for a specific project
func (*Index) ListReleaseBindings ¶
func (idx *Index) ListReleaseBindings() []*index.ResourceEntry
ListReleaseBindings returns all release bindings
func (*Index) ListReleases ¶
func (idx *Index) ListReleases() []*index.ResourceEntry
ListReleases returns all component releases
func (*Index) ListReleasesForComponent ¶
func (idx *Index) ListReleasesForComponent(projectName, componentName string) []*index.ResourceEntry
ListReleasesForComponent returns all component releases for a specific component
type OwnerRef ¶
OwnerRef represents OpenChoreo-specific owner reference information
func ExtractOwnerRef ¶
func ExtractOwnerRef(entry *index.ResourceEntry) *OwnerRef
ExtractOwnerRef extracts owner reference information from a resource entry