faketime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PluginName            = "FaketimePlugin"
	ContainerName         = "fake-time-sidecar"
	InitContainerName     = "libfaketime"
	ModifyProcessName     = "cloudnativegame.io/process-name"
	FakeTime              = "cloudnativegame.io/fake-time"
	IMAGE_ENV             = "FAKETIME_PLUGIN_IMAGE"
	LIBFAKETIME_IMAGE_ENV = "LIBFAKETIME_PLUGIN_IMAGE"
	LibFakeTimePath       = "/usr/local/lib/faketime/libfaketime.so.1"
	LibFakeTimeMountPath  = "/usr/local/lib/faketime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FaketimePlugin

type FaketimePlugin struct {
}

func NewSgPlugin

func NewSgPlugin() *FaketimePlugin

func (*FaketimePlugin) MatchAnnotations

func (s *FaketimePlugin) MatchAnnotations(podAnnots map[string]string) bool

func (*FaketimePlugin) Name

func (s *FaketimePlugin) Name() string

func (*FaketimePlugin) Patch

func (s *FaketimePlugin) Patch(pod *apiv1.Pod, operation addmissionV1.Operation) []utils.PatchOperation

Jump to

Keyboard shortcuts

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