Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRepository ¶
type HTTPRepository struct { BaseURL string Client interface { Do(req *http.Request) (*http.Response, error) } }
HTTPRepository represents remote bundle repository which is accessed via HTTP.
func NewHTTPRepository ¶
func NewHTTPRepository(cfg RepositoryConfig) *HTTPRepository
NewHTTPRepository creates new instance of HTTPRepository.
func (*HTTPRepository) BundleReader ¶
func (p *HTTPRepository) BundleReader(name BundleName, version BundleVersion) (r io.Reader, closer func(), err error)
BundleReader calls repository for a specific bundle and returns means to read bundle content.
func (*HTTPRepository) IndexReader ¶
func (p *HTTPRepository) IndexReader() (r io.Reader, closer func(), err error)
IndexReader acquire repository index.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader provides loading of bundles from repository and representing them as bundles and charts.
func NewLoader ¶
NewLoader returns new instance of Loader.
func (*Loader) Load ¶
Load takes stream with compressed tgz archive as io.Reader, tries to unpack it to tmp directory, and then loads it as YBundle and helm Chart
type LocalRepository ¶
type LocalRepository struct {
// contains filtered or unexported fields
}
LocalRepository provide access to bundles repository
func NewLocalRepository ¶
func NewLocalRepository(path string) *LocalRepository
NewLocalRepository creates structure which allow us to access local repository
func (*LocalRepository) GetBundlePath ¶
func (p *LocalRepository) GetBundlePath(name string) (string, error)
GetBundlePath returns path to the bundle from local repository
func (*LocalRepository) GetIndexFile ¶
func (p *LocalRepository) GetIndexFile() (io.Reader, func(), error)
GetIndexFile returns index.yaml file from local repository
type Populator ¶
type Populator struct {
// contains filtered or unexported fields
}
Populator is responsible for populating bundles and charts into storage. Source data is provided by bundleLoader.
Source Files
¶
- form.go
- loader.go
- local_repository.go
- populator.go
- repository.go