apiloader

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedFieldManagerInput = "inputfileloader"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APILoaderFile2APIStoreAndAPI

type APILoaderFile2APIStoreAndAPI struct {
	Cfg          *genericclioptions.ChoreoConfig
	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 (*APILoaderFile2APIStoreAndAPI) LoadFromCommit

func (r *APILoaderFile2APIStoreAndAPI) LoadFromCommit(ctx context.Context, commit *object.Commit) error

type APILoaderInternal

type APILoaderInternal struct {
	APIStore   *api.APIStore
	Cfg        *genericclioptions.ChoreoConfig
	DBPath     string
	PathInRepo string
}

func (*APILoaderInternal) Load

func (r *APILoaderInternal) Load(ctx context.Context) error

type APIStoreLoader

type APIStoreLoader struct {
	APIStore     *api.APIStore
	InternalGVKs sets.Set[schema.GroupVersionKind]
	PathInRepo   string
	DBPath       string
}

func (*APIStoreLoader) Load

Jump to

Keyboard shortcuts

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