Documentation
¶
Index ¶
- Constants
- func GetFSReader(path string) pkgio.Reader[[]byte]
- func GetFSYAMLReader(path string, matchgvks []schema.GroupVersionKind) pkgio.Reader[*yaml.RNode]
- type APILoaderCommit2APIStore
- type APILoaderFile2APIStoreAndAPI
- type APILoaderInternal
- type APIStoreLoader
- type DataLoader
- type DataLoaderUpstream
- type InputLoader
- type LibraryLoader
- type ReconcilerLoader
- type UpstreamCallBackFn
- type UpstreamLoader
Constants ¶
View Source
const (
ManagedFieldManagerInput = "inputfileloader"
)
Variables ¶
This section is empty.
Functions ¶
func GetFSYAMLReader ¶
Types ¶
type APILoaderCommit2APIStore ¶
type APILoaderCommit2APIStore struct { Client resourceclient.Client // client to read from the db repo since this reader reads the api from commit APIStore *api.APIStore InternalGVKs sets.Set[schema.GroupVersionKind] PathInRepo string DBPath string }
This loader is reading committed apis from the commit
type APILoaderFile2APIStoreAndAPI ¶
type APILoaderFile2APIStoreAndAPI struct { Flags *genericclioptions.ConfigFlags Client resourceclient.Client APIStore *api.APIStore Branch string InternalGVKs sets.Set[schema.GroupVersionKind] RepoPath string PathInRepo string DBPath string }
Loader to load files from fs and apply them to api and apistore
type APILoaderInternal ¶
type APILoaderInternal struct { APIStore *api.APIStore Flags *genericclioptions.ConfigFlags DBPath string PathInRepo string }
type APIStoreLoader ¶
type APIStoreLoader struct { APIStore *api.APIStore InternalGVKs sets.Set[schema.GroupVersionKind] PathInRepo string DBPath string }
func (*APIStoreLoader) Load ¶
func (r *APIStoreLoader) Load(ctx context.Context, u *unstructured.Unstructured) error
type DataLoader ¶
type DataLoader struct { Flags *genericclioptions.ConfigFlags Client resourceclient.Client Branch string GVKs []schema.GroupVersionKind RepoPth string PathInRepo string // used to clean reasources APIStore *api.APIStore InternalAPISet sets.Set[schema.GroupVersionKind] }
type DataLoaderUpstream ¶
type DataLoaderUpstream struct { 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 InputLoader ¶
type InputLoader struct { Client resourceclient.Client Branch string NewInput sets.Set[corev1.ObjectReference] APIStore *api.APIStore InternalAPISet sets.Set[schema.GroupVersionKind] }
type LibraryLoader ¶
type ReconcilerLoader ¶
type UpstreamCallBackFn ¶
type UpstreamCallBackFn func(ctx context.Context, repo repository.Repository, pathInRepo string, flags *genericclioptions.ConfigFlags, commit *object.Commit, annotationVal string) error
type UpstreamLoader ¶
type UpstreamLoader struct { Flags *genericclioptions.ConfigFlags Client resourceclient.Client Branch string RepoPath string PathInRepo string TempDir string CallbackFn UpstreamCallBackFn }
Click to show internal directories.
Click to hide internal directories.