collector

package module
v0.0.0-...-fc02357 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: Apache-2.0 Imports: 9 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 {
	Output Output
	// contains filtered or unexported fields
}

func New

func New(c *Config) *Collector

func (*Collector) Cleanup

func (cr *Collector) Cleanup() error

func (*Collector) CollectPodLogs

func (cr *Collector) CollectPodLogs(pod string) ([]string, error)

func (*Collector) CollectServiceLogs

func (cr *Collector) CollectServiceLogs(service string) ([]string, error)

func (*Collector) Start

func (cr *Collector) Start() error

func (*Collector) WithLocalOuput

func (cr *Collector) WithLocalOuput(dstDir string) error

func (*Collector) WithS3Output

func (cr *Collector) WithS3Output(keyId, keySecret, region, bucketName, bucketPrefix string) error

type Config

type Config struct {
	RemoteUser    string
	RemotePort    int32
	RemoteKeyFile string
	K8sClient     kubernetes.Interface
	Namespace     string
}

type Output

type Output interface {
	Put(io.ReadSeeker, string) (string, error)
}

Directories

Path Synopsis
pkg
s3
scp

Jump to

Keyboard shortcuts

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