import "github.com/jenkins-x/jx/pkg/collector"
bucket_collector.go git_collector.go helpers.go interface.go
BucketCollector stores the state for the git collector
CollectData collects the data storing it at the given output path and returning the URL to access it
func (c *BucketCollector) CollectFiles(patterns []string, outputPath string, basedir string) ([]string, error)
CollectFiles collects files and returns the URLs
type Collector interface { // CollectFiles collects the given file paths and collects them into the storage // relative to the given output path. Returns the list of URLs to access the files CollectFiles(patterns []string, outputPath string, basedir string) ([]string, error) // CollectData collects the data storing it at the given output path and returning the URL // to access it CollectData(data io.Reader, outputPath string) (string, error) }
Collector an interface to collect data for storage in git or cloud storage etc
func NewBucketCollector(bucketURL string, classifier string, provider buckets.Provider) (Collector, error)
NewBucketCollector creates a new git based collector
func NewCollector(storageLocation v1.StorageLocation, gitter gits.Gitter, gitKind string) (Collector, error)
NewCollector creates a new collector from the storage configuration
func NewGitCollector(gitter gits.Gitter, gitURL string, gitBranch string, gitKind string) (Collector, error)
NewGitCollector creates a new git based collector
type GitCollector struct {
// contains filtered or unexported fields
}
GitCollector stores the state for the git collector
CollectData collects the data storing it at the given output path and returning the URL to access it
func (c *GitCollector) CollectFiles(patterns []string, outputPath string, basedir string) ([]string, error)
CollectFiles collects files and returns the URLs
Package collector imports 16 packages (graph). Updated 2020-08-23. Refresh now. Tools for package owners.