Documentation ¶
Index ¶
- type PackageRevision
- func (f *PackageRevision) GetKptfile(ctx context.Context) (kptfile.KptFile, error)
- func (f *PackageRevision) GetLock() (kptfile.Upstream, kptfile.UpstreamLock, error)
- func (pr *PackageRevision) GetPackageRevision(context.Context) (*v1alpha1.PackageRevision, error)
- func (f *PackageRevision) GetResources(context.Context) (*v1alpha1.PackageRevisionResources, error)
- func (f *PackageRevision) GetUpstreamLock(context.Context) (kptfile.Upstream, kptfile.UpstreamLock, error)
- func (pr *PackageRevision) Key() repository.PackageRevisionKey
- func (pr *PackageRevision) KubeObjectName() string
- func (pr *PackageRevision) KubeObjectNamespace() string
- func (pr *PackageRevision) Lifecycle() v1alpha1.PackageRevisionLifecycle
- func (pr *PackageRevision) UID() types.UID
- func (f *PackageRevision) UpdateLifecycle(context.Context, v1alpha1.PackageRevisionLifecycle) error
- type Repository
- func (r *Repository) CreatePackage(_ context.Context, pr *v1alpha1.Package) (repository.Package, error)
- func (r *Repository) CreatePackageRevision(_ context.Context, pr *v1alpha1.PackageRevision) (repository.PackageDraft, error)
- func (r *Repository) DeletePackage(_ context.Context, pr repository.Package) error
- func (r *Repository) DeletePackageRevision(context.Context, repository.PackageRevision) error
- func (r *Repository) ListPackageRevisions(_ context.Context, filter repository.ListPackageRevisionFilter) ([]repository.PackageRevision, error)
- func (r *Repository) ListPackages(context.Context, repository.ListPackageFilter) ([]repository.Package, error)
- func (r *Repository) UpdatePackageRevision(context.Context, repository.PackageRevision) (repository.PackageDraft, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageRevision ¶
type PackageRevision struct { Name string Namespace string Uid types.UID PackageRevisionKey repository.PackageRevisionKey PackageLifecycle v1alpha1.PackageRevisionLifecycle PackageRevision *v1alpha1.PackageRevision Resources *v1alpha1.PackageRevisionResources Kptfile kptfile.KptFile }
Implementation of the repository.PackageRevision interface for testing.
func (*PackageRevision) GetKptfile ¶
func (*PackageRevision) GetLock ¶
func (f *PackageRevision) GetLock() (kptfile.Upstream, kptfile.UpstreamLock, error)
func (*PackageRevision) GetPackageRevision ¶
func (pr *PackageRevision) GetPackageRevision(context.Context) (*v1alpha1.PackageRevision, error)
func (*PackageRevision) GetResources ¶
func (f *PackageRevision) GetResources(context.Context) (*v1alpha1.PackageRevisionResources, error)
func (*PackageRevision) GetUpstreamLock ¶
func (f *PackageRevision) GetUpstreamLock(context.Context) (kptfile.Upstream, kptfile.UpstreamLock, error)
func (*PackageRevision) Key ¶
func (pr *PackageRevision) Key() repository.PackageRevisionKey
func (*PackageRevision) KubeObjectName ¶
func (pr *PackageRevision) KubeObjectName() string
func (*PackageRevision) KubeObjectNamespace ¶
func (pr *PackageRevision) KubeObjectNamespace() string
func (*PackageRevision) Lifecycle ¶
func (pr *PackageRevision) Lifecycle() v1alpha1.PackageRevisionLifecycle
func (*PackageRevision) UID ¶
func (pr *PackageRevision) UID() types.UID
func (*PackageRevision) UpdateLifecycle ¶
func (f *PackageRevision) UpdateLifecycle(context.Context, v1alpha1.PackageRevisionLifecycle) error
type Repository ¶
type Repository struct { PackageRevisions []repository.PackageRevision Packages []repository.Package }
Implementation of the repository.Repository interface for testing. TODO(mortent): Implement stub functionality for all functions from the interface.
func (*Repository) CreatePackage ¶
func (r *Repository) CreatePackage(_ context.Context, pr *v1alpha1.Package) (repository.Package, error)
func (*Repository) CreatePackageRevision ¶
func (r *Repository) CreatePackageRevision(_ context.Context, pr *v1alpha1.PackageRevision) (repository.PackageDraft, error)
func (*Repository) DeletePackage ¶
func (r *Repository) DeletePackage(_ context.Context, pr repository.Package) error
func (*Repository) DeletePackageRevision ¶
func (r *Repository) DeletePackageRevision(context.Context, repository.PackageRevision) error
func (*Repository) ListPackageRevisions ¶
func (r *Repository) ListPackageRevisions(_ context.Context, filter repository.ListPackageRevisionFilter) ([]repository.PackageRevision, error)
func (*Repository) ListPackages ¶
func (r *Repository) ListPackages(context.Context, repository.ListPackageFilter) ([]repository.Package, error)
func (*Repository) UpdatePackageRevision ¶
func (r *Repository) UpdatePackageRevision(context.Context, repository.PackageRevision) (repository.PackageDraft, error)
Click to show internal directories.
Click to hide internal directories.