remotemanifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facility

type Facility interface {
	Fetch() ([]reg.Manifest, error)
}

Facility requires a single method, called Fetch(), which corresponds to fetching a set of promoter manifests.

type Fake

type Fake struct {
	// contains filtered or unexported fields
}

Fake is a fake remote manifest. It is fake in the sense that it will never fetch anything from any remote.

func NewFake

func NewFake(manifests []reg.Manifest) *Fake

NewFake creates a new Fake.

func (*Fake) Fetch

func (remote *Fake) Fetch() ([]reg.Manifest, error)

Fetch just returns the manifests that were set in NewFakeRemoteManifest.

type Git

type Git struct {
	// contains filtered or unexported fields
}

Git stores the Git-based information in order to fetch the Git contents (and to parse them into promoter manifests).

func NewGit

func NewGit(
	repoURLStr string,
	repoBranch string,
	thinManifestDirPath string,
) (*Git, error)

NewGit creates a new Git implementation for defining a remote set of promoter manifest.

func (*Git) Fetch

func (remote *Git) Fetch() ([]reg.Manifest, error)

Fetch gets the remote Git contents and parses it into promoter manifests. It could be the case that the repository is defined simply as a local path on disk (in the case of e2e tests where we do not have a full-fledghed online repository for the manifests we want to audit) --- in such cases, we have to use the local path instead of freshly cloning a remote repo.

Jump to

Keyboard shortcuts

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