service

package
v0.3.83-rc-239cfd4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLogBytes = 2000000

Variables

This section is empty.

Functions

func ConvertLogs

func ConvertLogs(rawLog []byte) ([]*binoculars.LogLine, []error)

func GetPatchBytes

func GetPatchBytes(patchData *nodePatch) ([]byte, error)

Types

type CordonService

type CordonService interface {
	CordonNode(ctx context.Context, request *binoculars.CordonRequest) error
}

type KubernetesCordonService

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

func NewKubernetesCordonService

func NewKubernetesCordonService(
	cordonConfig configuration.CordonConfiguration,
	permissionsChecker authorization.PermissionChecker,
	clientProvider cluster.KubernetesClientProvider,
) *KubernetesCordonService

func (*KubernetesCordonService) CordonNode

type KubernetesLogService

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

func NewKubernetesLogService

func NewKubernetesLogService(clientProvider cluster.KubernetesClientProvider) *KubernetesLogService

func (*KubernetesLogService) GetLogs

func (l *KubernetesLogService) GetLogs(ctx context.Context, params *LogParams) ([]*binoculars.LogLine, error)

type LogParams

type LogParams struct {
	Principal  authorization.Principal
	Namespace  string
	PodName    string
	SinceTime  string
	LogOptions *v1.PodLogOptions
}

type LogService

type LogService interface {
	GetLogs(ctx context.Context, params *LogParams) ([]*binoculars.LogLine, error)
}

Jump to

Keyboard shortcuts

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