Documentation ¶
Index ¶
- Constants
- func GetCommitFileReader(path string, commit *object.Commit) pkgio.Reader[*yaml.RNode]
- func GetFSReader(path string) pkgio.Reader[[]byte]
- func GetFSYAMLReader(path string, matchgvks []schema.GroupVersionKind) pkgio.Reader[*yaml.RNode]
- type APILoaderFile2APIStoreAndAPI
- type APILoaderInternal
- type APIStoreLoader
- type DataLoader
- type DataLoaderUpstream
- type DevLoader
- type InputLoader
- type UpstreamCallBackFn
- type UpstreamLoader
Constants ¶
View Source
const (
ManagedFieldManagerInput = "inputfileloader"
)
Variables ¶
This section is empty.
Functions ¶
func GetCommitFileReader ¶ added in v0.0.9
func GetFSYAMLReader ¶
Types ¶
type APILoaderFile2APIStoreAndAPI ¶
type APILoaderFile2APIStoreAndAPI struct { Flags *genericclioptions.ConfigFlags Client resourceclient.Client APIStore *api.APIStore Branch string // not relevant in commit case InternalGVKs sets.Set[schema.GroupVersionKind] RepoPath string // not relevant in commit case PathInRepo string DBPath string }
Loader to load files from fs and apply them to api and apistore
func (*APILoaderFile2APIStoreAndAPI) Load ¶
func (r *APILoaderFile2APIStoreAndAPI) Load(ctx context.Context) error
func (*APILoaderFile2APIStoreAndAPI) LoadFromCommit ¶ added in v0.0.9
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 { Flags *genericclioptions.ConfigFlags 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 { Flags *genericclioptions.ConfigFlags Path string }
type InputLoader ¶
type InputLoader struct { Client resourceclient.Client Branch string NewInput sets.Set[corev1.ObjectReference] APIStore *api.APIStore InternalAPISet sets.Set[schema.GroupVersionKind] }
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 }
UpstreamLoader
Click to show internal directories.
Click to hide internal directories.