fake

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) GetLock added in v0.0.7

func (*PackageRevision) GetPackageRevision

func (pr *PackageRevision) GetPackageRevision() *v1alpha1.PackageRevision

func (*PackageRevision) GetResources

func (*PackageRevision) GetUpstreamLock

func (f *PackageRevision) GetUpstreamLock() (kptfile.Upstream, kptfile.UpstreamLock, error)

func (*PackageRevision) Key

func (*PackageRevision) KubeObjectName

func (pr *PackageRevision) KubeObjectName() string

func (*PackageRevision) Lifecycle

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

Jump to

Keyboard shortcuts

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