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)
}
Click to show internal directories.
Click to hide internal directories.