podhandler

package
v0.0.0-...-3df867b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodHandler

type PodHandler struct {
	Decoder *admission.Decoder
	Log     logr.Logger
}

PodHandler .

func NewPodHandler

func NewPodHandler(log logr.Logger) *PodHandler

NewPodHandler constructor

func (*PodHandler) Command

func (p *PodHandler) Command(filePath string) []string

Command returns the desired command for the current filetailer

func (*PodHandler) Container

func (p *PodHandler) Container(name string, volumeMount corev1.VolumeMount, command []string) corev1.Container

Container returns the assembled container for the current tailer

func (*PodHandler) ContainerNames

func (p *PodHandler) ContainerNames(containers []corev1.Container) []string

ContainerNames .

func (*PodHandler) ContainerizedVolumeName

func (p *PodHandler) ContainerizedVolumeName(containerName string, volumePath string) string

ContainerizedVolumeName .

func (*PodHandler) Containers

func (p *PodHandler) Containers(filePaths []string, volumePaths []string, containerName string) []corev1.Container

Containers assembles the required containers

func (*PodHandler) Handle

Handle .

func (*PodHandler) Volumes

func (p *PodHandler) Volumes(volumePaths []string) []corev1.Volume

Volumes makes corev1.Volumes from the given paths

Jump to

Keyboard shortcuts

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