registry

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedToDownloadAppSpecsError = func(err error) error {
		return errors.Wrap(err, "Failed to download application specs")
	}

	FailedToParseApplicationSpecsError = func(err error) error {
		return errors.Wrap(err, "Failed to parse application specs")
	}

	FailedToGetSpecsFromGithubError = func(err error) error {
		return errors.Wrap(err, "Failed to get application specs from github")
	}
)

Functions

This section is empty.

Types

type GithubSpecReader

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

func NewGithubSpecReader

func NewGithubSpecReader(ctx context.Context, location v1.GithubRepositoryLocation) *GithubSpecReader

func (*GithubSpecReader) GetSpecs

func (r *GithubSpecReader) GetSpecs() ([]*v1.ApplicationSpec, error)

type RemoteSpecReader

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

func NewRemoteSpecReader

func NewRemoteSpecReader(ctx context.Context, url string) *RemoteSpecReader

func (*RemoteSpecReader) GetSpecs

func (r *RemoteSpecReader) GetSpecs() ([]*v1.ApplicationSpec, error)

type SpecReader

type SpecReader interface {
	GetSpecs() ([]*v1.ApplicationSpec, error)
}

Jump to

Keyboard shortcuts

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