collector

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Logger log.Logger
}

func (*Collector) CollectBundle

func (c *Collector) CollectBundle(
	ctx context.Context,
	customerID string,
	specs []string,
	specFiles []string,
	dest string,
	opts Options,
) error

type Interface

type Interface interface {
	CollectBundle(
		ctx context.Context,
		customerID string,
		specs []string,
		specFiles []string,
		dest string,
		opts Options,
	) error
}

func New

func New(
	logger log.Logger,
) Interface

type MockCollector

type MockCollector struct {
	mock.Mock

	Fs         afero.Fs
	BundlePath string
}

func NewMock

func NewMock(fs afero.Fs, bundlePath string) *MockCollector

func (*MockCollector) CollectBundle

func (c *MockCollector) CollectBundle(
	ctx context.Context,
	customerID string,
	specs []string,
	specFiles []string,
	dest string,
	opts Options,
) error

type Options added in v0.19.0

type Options struct {
	EnableCore       bool
	EnableDocker     bool
	EnableJournald   bool
	EnableKubernetes bool
	EnableRetraced   bool
	Timeout          time.Duration
	CustomerEndpoint string
}

Jump to

Keyboard shortcuts

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