Documentation ¶
Index ¶
- type PackageRevision
- func (pr *PackageRevision) GetPackageRevision() *v1alpha1.PackageRevision
- func (f *PackageRevision) GetResources(context.Context) (*v1alpha1.PackageRevisionResources, error)
- func (f *PackageRevision) GetUpstreamLock() (kptfile.Upstream, kptfile.UpstreamLock, error)
- func (pr *PackageRevision) Key() repository.PackageRevisionKey
- func (pr *PackageRevision) KubeObjectName() string
- func (pr *PackageRevision) Lifecycle() v1alpha1.PackageRevisionLifecycle
- type Repository
- func (r *Repository) CreatePackageRevision(_ context.Context, pr *v1alpha1.PackageRevision) (repository.PackageDraft, error)
- func (r *Repository) DeletePackageRevision(context.Context, repository.PackageRevision) error
- func (r *Repository) ListPackageRevisions(context.Context, repository.ListPackageRevisionFilter) ([]repository.PackageRevision, error)
- func (r *Repository) UpdatePackage(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 PackageRevisionKey repository.PackageRevisionKey PackageLifecycle v1alpha1.PackageRevisionLifecycle PackageRevision *v1alpha1.PackageRevision Resources *v1alpha1.PackageRevisionResources Upstream kptfile.Upstream UpstreamLock kptfile.UpstreamLock }
Implementation of the repository.PackageRevision interface for testing.
func (*PackageRevision) GetPackageRevision ¶
func (pr *PackageRevision) GetPackageRevision() *v1alpha1.PackageRevision
func (*PackageRevision) GetResources ¶
func (f *PackageRevision) GetResources(context.Context) (*v1alpha1.PackageRevisionResources, error)
func (*PackageRevision) GetUpstreamLock ¶
func (f *PackageRevision) GetUpstreamLock() (kptfile.Upstream, kptfile.UpstreamLock, error)
func (*PackageRevision) Key ¶
func (pr *PackageRevision) Key() repository.PackageRevisionKey
func (*PackageRevision) KubeObjectName ¶
func (pr *PackageRevision) KubeObjectName() string
func (*PackageRevision) Lifecycle ¶
func (pr *PackageRevision) Lifecycle() v1alpha1.PackageRevisionLifecycle
type Repository ¶
type Repository struct {
PackageRevisions []repository.PackageRevision
}
Implementation of the repository.Repository interface for testing. TODO(mortent): Implement stub functionality for all functions from the interface.
func (*Repository) CreatePackageRevision ¶
func (r *Repository) CreatePackageRevision(_ context.Context, pr *v1alpha1.PackageRevision) (repository.PackageDraft, error)
func (*Repository) DeletePackageRevision ¶
func (r *Repository) DeletePackageRevision(context.Context, repository.PackageRevision) error
func (*Repository) ListPackageRevisions ¶
func (r *Repository) ListPackageRevisions(context.Context, repository.ListPackageRevisionFilter) ([]repository.PackageRevision, error)
func (*Repository) UpdatePackage ¶
func (r *Repository) UpdatePackage(context.Context, repository.PackageRevision) (repository.PackageDraft, error)
Click to show internal directories.
Click to hide internal directories.