drivers

package
v1.0.0-2021-09-09-19-4... Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverFactory

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

DriverFactory is factory to install all drivers

func NewDriverFactory

func NewDriverFactory(kubeclient kubernetes.Interface) *DriverFactory

func (*DriverFactory) LogDriver

func (d *DriverFactory) LogDriver() LogInterface

func (*DriverFactory) SetLogDriver

func (d *DriverFactory) SetLogDriver(logDriver LogInterface)

type LogDriver

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

func NewLogDriver

func NewLogDriver(kubeclient kubernetes.Interface) *LogDriver

func (*LogDriver) GetContainerLog

func (l *LogDriver) GetContainerLog(namespace, podID, containerName string, query url.Values, stdout io.Writer) error

type LogInterface

type LogInterface interface {
	// GetContainerLog read log of a certain container
	GetContainerLog(namespace, podID, containerName string, query url.Values, stdout io.Writer) error
}

LogInterface is the interface to provide log

Jump to

Keyboard shortcuts

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