Documentation ¶
Index ¶
- Constants
- type API
- type APIType
- type Dependency
- func (r *Dependency) AddCoreDependency(gvk schema.GroupVersionKind)
- func (r *Dependency) AddGVKResolutionError(gvk schema.GroupVersionKind, err error)
- func (r *Dependency) AddGVKResolutionWarning(gvk schema.GroupVersionKind, err error)
- func (r *Dependency) AddPkgDependency(gvk schema.GroupVersionKind, upstream pkgrevid.Upstream)
- func (r *Dependency) AddResolutionError(err error)
- func (r *Dependency) GetResolutionError() error
- func (r *Dependency) HasResolutionError() bool
- func (r *Dependency) ListCoreDependencies() []schema.GroupVersionKind
- func (r *Dependency) ListGVKPkgDependencies() map[schema.GroupVersionKind][]pkgrevid.Upstream
- func (r *Dependency) ListPkgDependencies() []pkgrevid.Upstream
- func (r *Dependency) ListResolutionErrors() map[schema.GroupVersionKind]error
- func (r *Dependency) ListResolutionWarnings() map[schema.GroupVersionKind]error
- func (r *Dependency) PkgString() string
- func (r *Dependency) PrintCoreDependencies()
- func (r *Dependency) PrintPkgDependencies()
- func (r *Dependency) PrintResolutionErrors()
- type Store
- func (r *Store) DeletePkgRev(ctx context.Context, cr *pkgv1alpha1.PackageRevision)
- func (r *Store) GetPkgRevDependencies(ctx context.Context, cr *pkgv1alpha1.PackageRevision) (bool, []pkgrevid.Upstream)
- func (r *Store) InitializeRecorder(recorder recorder.Recorder[diag.Diagnostic])
- func (r *Store) Print(ctx context.Context)
- func (r *Store) UpdateAPIfromAPIResources(ctx context.Context, apiResources []*metav1.APIResourceList)
- func (r *Store) UpdatePkgRevAPI(ctx context.Context, cr *pkgv1alpha1.PackageRevision, outputs []*yaml.RNode)
- func (r *Store) UpdatePkgRevDependencies(ctx context.Context, cr *pkgv1alpha1.PackageRevision, ...)
Constants ¶
View Source
const (
APIServiceName = "apiService"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct {
// contains filtered or unexported fields
}
Dependency is per packageRevision
func NewDependency ¶
func NewDependency(pkgID pkgrevid.PackageRevID) *Dependency
func (*Dependency) AddCoreDependency ¶
func (r *Dependency) AddCoreDependency(gvk schema.GroupVersionKind)
func (*Dependency) AddGVKResolutionError ¶
func (r *Dependency) AddGVKResolutionError(gvk schema.GroupVersionKind, err error)
func (*Dependency) AddGVKResolutionWarning ¶
func (r *Dependency) AddGVKResolutionWarning(gvk schema.GroupVersionKind, err error)
func (*Dependency) AddPkgDependency ¶
func (r *Dependency) AddPkgDependency(gvk schema.GroupVersionKind, upstream pkgrevid.Upstream)
func (*Dependency) AddResolutionError ¶
func (r *Dependency) AddResolutionError(err error)
func (*Dependency) GetResolutionError ¶
func (r *Dependency) GetResolutionError() error
func (*Dependency) HasResolutionError ¶
func (r *Dependency) HasResolutionError() bool
func (*Dependency) ListCoreDependencies ¶
func (r *Dependency) ListCoreDependencies() []schema.GroupVersionKind
func (*Dependency) ListGVKPkgDependencies ¶
func (r *Dependency) ListGVKPkgDependencies() map[schema.GroupVersionKind][]pkgrevid.Upstream
func (*Dependency) ListPkgDependencies ¶
func (r *Dependency) ListPkgDependencies() []pkgrevid.Upstream
ListPkgDependencies lists a unique set of upstream packages
func (*Dependency) ListResolutionErrors ¶
func (r *Dependency) ListResolutionErrors() map[schema.GroupVersionKind]error
func (*Dependency) ListResolutionWarnings ¶
func (r *Dependency) ListResolutionWarnings() map[schema.GroupVersionKind]error
func (*Dependency) PkgString ¶
func (r *Dependency) PkgString() string
func (*Dependency) PrintCoreDependencies ¶
func (r *Dependency) PrintCoreDependencies()
func (*Dependency) PrintPkgDependencies ¶
func (r *Dependency) PrintPkgDependencies()
func (*Dependency) PrintResolutionErrors ¶
func (r *Dependency) PrintResolutionErrors()
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeletePkgRev ¶
func (r *Store) DeletePkgRev(ctx context.Context, cr *pkgv1alpha1.PackageRevision)
func (*Store) GetPkgRevDependencies ¶
func (r *Store) GetPkgRevDependencies(ctx context.Context, cr *pkgv1alpha1.PackageRevision) (bool, []pkgrevid.Upstream)
func (*Store) InitializeRecorder ¶
func (r *Store) InitializeRecorder(recorder recorder.Recorder[diag.Diagnostic])
func (*Store) UpdateAPIfromAPIResources ¶
func (r *Store) UpdateAPIfromAPIResources(ctx context.Context, apiResources []*metav1.APIResourceList)
UpdateAPIfromAPIResources updates the API store from watching the apiResources on the k8s API
func (*Store) UpdatePkgRevAPI ¶
func (r *Store) UpdatePkgRevAPI(ctx context.Context, cr *pkgv1alpha1.PackageRevision, outputs []*yaml.RNode)
func (*Store) UpdatePkgRevDependencies ¶
func (r *Store) UpdatePkgRevDependencies(ctx context.Context, cr *pkgv1alpha1.PackageRevision, packages, inputs, resources []*yaml.RNode)
Click to show internal directories.
Click to hide internal directories.