fsmode

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type Index struct {
	*index.Index
	// contains filtered or unexported fields
}

Index wraps the generic index with OpenChoreo-specific functionality

func WrapIndex

func WrapIndex(idx *index.Index) *Index

WrapIndex wraps an existing 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

func (idx *Index) GetTypedComponent(namespace, name string) (*typed.Component, error)

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

func (idx *Index) GetTypedTrait(name string) (*typed.Trait, error)

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

type OwnerRef struct {
	ProjectName   string
	ComponentName string
}

OwnerRef represents OpenChoreo-specific owner reference information

func ExtractOwnerRef

func ExtractOwnerRef(entry *index.ResourceEntry) *OwnerRef

ExtractOwnerRef extracts owner reference information from a resource entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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