collector

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 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, input CollectorInput) error

type CollectorInput added in v0.23.0

type CollectorInput struct {
	CustomerID string
	ChannelID  string
	Specs      []string
	SpecFiles  []string
	Dest       string
	Opts       Options
}

type Interface

type Interface interface {
	CollectBundle(ctx context.Context, input CollectorInput) 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, input CollectorInput) error

type Options added in v0.19.0

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

Jump to

Keyboard shortcuts

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