collector

package
v1.3.1038 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketCollector

type BucketCollector struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

BucketCollector stores the state for the git collector

func (*BucketCollector) CollectData

func (c *BucketCollector) CollectData(data []byte, outputName string) (string, error)

CollectData collects the data storing it at the given output path and returning the URL to access it

func (*BucketCollector) CollectFiles

func (c *BucketCollector) CollectFiles(patterns []string, outputPath string, basedir string) ([]string, error)

CollectFiles collects files and returns the URLs

type Collector

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 []byte, outputPath string) (string, error)
}

Collector an interface to collect data for storage in git or cloud storage etc

func NewBucketCollector

func NewBucketCollector(bucketURL string, bucket *blob.Bucket, classifier string) (Collector, error)

NewBucketCollector creates a new git based collector

func NewCollector

func NewCollector(storageLocation *jenkinsv1.StorageLocation, settings *jenkinsv1.TeamSettings, gitter gits.Gitter) (Collector, error)

NewCollector creates a new collector from the storage configuration

func NewGitCollector

func NewGitCollector(gitter gits.Gitter, gitURL string, gitBranch string) (Collector, error)

NewGitCollector creates a new git based collector

type GitCollector

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

GitCollector stores the state for the git collector

func (*GitCollector) CollectData

func (c *GitCollector) CollectData(data []byte, outputPath string) (string, error)

CollectData collects the data storing it at the given output path and returning the URL to access it

func (*GitCollector) CollectFiles

func (c *GitCollector) CollectFiles(patterns []string, outputPath string, basedir string) ([]string, error)

CollectFiles collects files and returns the URLs

Jump to

Keyboard shortcuts

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