collector

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0 Imports: 21 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

	KubernetesClient       kubernetes.Interface
	KubernetesClientConfig *restclient.Config
}

func (*Collector) CollectBundle

func (c *Collector) CollectBundle(ctx context.Context, collect api.Collect, timeout time.Duration, pathname string) (os.FileInfo, error)

type Interface

type Interface interface {
	CollectBundle(ctx context.Context, collect api.Collect, timeout time.Duration, pathname string) (os.FileInfo, error)
}

func New

func New(
	logger log.Logger,
	kubernetesClient kubernetes.Interface,
	kubernetesClientConfig *restclient.Config,
) 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, collect api.Collect, timeout time.Duration, dest string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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