catalog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIServiceName = "apiService"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Type     APIType
	Kind     string
	Resource string
	PkgRevID pkgrevid.PackageRevID
	Versions map[string][]string // key is version and value is pkgRev
}

type APIType

type APIType int
const (
	APIType_Core APIType = iota
	APIType_Package
)

func (APIType) String

func (r APIType) String() string

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 NewStore

func NewStore() *Store

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) Print

func (r *Store) Print(ctx context.Context)

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)

Jump to

Keyboard shortcuts

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