hooks

package
v0.59.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 20 Imported by: 18

Documentation

Index

Constants

View Source
const HookSidecarListAnnotationName = "hooks.kubevirt.io/hookSidecars"
View Source
const HookSocketsSharedDirectory = "/var/run/kubevirt-hooks"

Variables

This section is empty.

Functions

This section is empty.

Types

type HookSidecar

type HookSidecar struct {
	Image           string           `json:"image"`
	ImagePullPolicy k8sv1.PullPolicy `json:"imagePullPolicy"`
	Command         []string         `json:"command,omitempty"`
	Args            []string         `json:"args,omitempty"`
}

type HookSidecarList

type HookSidecarList []HookSidecar

func UnmarshalHookSidecarList

func UnmarshalHookSidecarList(vmiObject *v1.VirtualMachineInstance) (HookSidecarList, error)

type Manager

type Manager interface {
	Collect(uint, time.Duration) error
	OnDefineDomain(*virtwrapApi.DomainSpec, *v1.VirtualMachineInstance) (string, error)
	PreCloudInitIso(*v1.VirtualMachineInstance, *cloudinit.CloudInitData) (*cloudinit.CloudInitData, error)
}

func GetManager

func GetManager() Manager

type MockManager added in v0.57.0

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

Mock of Manager interface

func NewMockManager added in v0.57.0

func NewMockManager(ctrl *gomock.Controller) *MockManager

func (*MockManager) Collect added in v0.57.0

func (_m *MockManager) Collect(_param0 uint, _param1 time.Duration) error

func (*MockManager) EXPECT added in v0.57.0

func (_m *MockManager) EXPECT() *_MockManagerRecorder

func (*MockManager) OnDefineDomain added in v0.57.0

func (_m *MockManager) OnDefineDomain(_param0 *api.DomainSpec, _param1 *v1.VirtualMachineInstance) (string, error)

func (*MockManager) PreCloudInitIso added in v0.57.0

func (_m *MockManager) PreCloudInitIso(_param0 *v1.VirtualMachineInstance, _param1 *cloud_init.CloudInitData) (*cloud_init.CloudInitData, error)

Directories

Path Synopsis
Package info is a generated protocol buffer package.
Package info is a generated protocol buffer package.
Package v1alpha1 is a generated protocol buffer package.
Package v1alpha1 is a generated protocol buffer package.
Package v1alpha2 is a generated protocol buffer package.
Package v1alpha2 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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