Documentation ¶
Index ¶
- Constants
- func GetCommitFileReader(path string, commit *object.Commit) pkgio.Reader[*yaml.RNode]
- func GetFSReader(path string) pkgio.Reader[[]byte]
- func GetFSReconcilerReader(path string) pkgio.Reader[[]byte]
- func GetFSStarReader(path string) pkgio.Reader[[]byte]
- func GetFSYAMLReader(path string, matchgvks []schema.GroupVersionKind) pkgio.Reader[*yaml.RNode]
- func GetRunningConfigReader(path string) pkgio.Reader[[]byte]
- type DataLoader
- type DataLoaderUpstream
- type DevLoader
- type InputLoader
- type RunningConfigLoader
- type SchemaLoader
- type UpstreamCallBackFn
- type UpstreamLoader
Constants ¶
View Source
const (
ManagedFieldManagerInput = "inputfileloader"
)
Variables ¶
This section is empty.
Functions ¶
func GetCommitFileReader ¶ added in v0.0.9
func GetFSReconcilerReader ¶ added in v0.0.15
func GetFSYAMLReader ¶
Types ¶
type DataLoader ¶
type DataLoader struct { Cfg *genericclioptions.ChoreoConfig Client resourceclient.Client Branch string GVKs []schema.GroupVersionKind RepoPth string PathInRepo string // used to clean reasources //APIStore *api.APIStore InternalAPISet sets.Set[schema.GroupVersionKind] Annotation string }
type DataLoaderUpstream ¶
type DataLoaderUpstream struct { Cfg *genericclioptions.ChoreoConfig PathInRepo string //UpstreamClient resourceclient.Client // used to read data from commit from upstream repo Client resourceclient.Client Branch string ChildGVKSet sets.Set[schema.GroupVersionKind] UpstreamAnnotationValue string NewUpstreamData sets.Set[corev1.ObjectReference] }
type DevLoader ¶ added in v0.0.9
type DevLoader struct { Cfg *genericclioptions.ChoreoConfig RepoPath string PathInRepo string Libraries []*choreov1alpha1.Library Reconcilers []*choreov1alpha1.Reconciler }
func (*DevLoader) LoadLibraries ¶ added in v0.0.15
type InputLoader ¶
type InputLoader struct { Client resourceclient.Client Branch string NewInput sets.Set[corev1.ObjectReference] //APIStore *api.APIStore GVKs []schema.GroupVersionKind InternalAPISet sets.Set[schema.GroupVersionKind] Annotation string }
type RunningConfigLoader ¶ added in v0.0.15
type RunningConfigLoader struct { Cfg *genericclioptions.ChoreoConfig //Client resourceclient.Client //Branch string RepoPath string PathInRepo string RunningConfigs map[string]any }
UpstreamLoader
type SchemaLoader ¶ added in v0.0.15
type SchemaLoader struct { Parent instance.ChoreoInstance Cfg *genericclioptions.ChoreoConfig //Client resourceclient.Client //Branch string RepoPath string PathInRepo string TempDir string }
UpstreamLoader
type UpstreamCallBackFn ¶
type UpstreamCallBackFn func(ctx context.Context, parentName string, repo repository.Repository, upstreamRef *choreov1alpha1.UpstreamRef, cfg *genericclioptions.ChoreoConfig, commit *object.Commit, annotationVal string) error
type UpstreamLoader ¶
type UpstreamLoader struct { Parent instance.ChoreoInstance Cfg *genericclioptions.ChoreoConfig Client resourceclient.Client Branch string RepoPath string PathInRepo string TempDir string ProgressFn func(string) }
UpstreamLoader
Click to show internal directories.
Click to hide internal directories.