runtime

package
v0.0.0-...-5e97683 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package runtime is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRuntimeAPI

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

MockRuntimeAPI is a mock of RuntimeAPI interface.

func NewMockRuntimeAPI

func NewMockRuntimeAPI(ctrl *gomock.Controller) *MockRuntimeAPI

NewMockRuntimeAPI creates a new mock instance.

func (*MockRuntimeAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRuntimeAPI) GetRuntimeInformation

func (m *MockRuntimeAPI) GetRuntimeInformation(ctx context.Context, sr *v1beta1.SpecialResource) (*RuntimeInformation, error)

GetRuntimeInformation mocks base method.

func (*MockRuntimeAPI) LogRuntimeInformation

func (m *MockRuntimeAPI) LogRuntimeInformation(info *RuntimeInformation)

LogRuntimeInformation mocks base method.

type MockRuntimeAPIMockRecorder

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

MockRuntimeAPIMockRecorder is the mock recorder for MockRuntimeAPI.

func (*MockRuntimeAPIMockRecorder) GetRuntimeInformation

func (mr *MockRuntimeAPIMockRecorder) GetRuntimeInformation(ctx, sr interface{}) *gomock.Call

GetRuntimeInformation indicates an expected call of GetRuntimeInformation.

func (*MockRuntimeAPIMockRecorder) LogRuntimeInformation

func (mr *MockRuntimeAPIMockRecorder) LogRuntimeInformation(info interface{}) *gomock.Call

LogRuntimeInformation indicates an expected call of LogRuntimeInformation.

type ResourceGroupName

type ResourceGroupName struct {
	DriverBuild            string `json:"driverBuild"`
	DriverContainer        string `json:"driverContainer"`
	RuntimeEnablement      string `json:"runtimeEnablement"`
	DevicePlugin           string `json:"devicePlugin"`
	DeviceMonitoring       string `json:"deviceMonitoring"`
	DeviceDashboard        string `json:"deviceDashboard"`
	DeviceFeatureDiscovery string `json:"deviceFeatureDiscovery"`
	CSIDriver              string `json:"csiDriver"`
}

type RuntimeAPI

type RuntimeAPI interface {
	GetRuntimeInformation(ctx context.Context, sr *srov1beta1.SpecialResource) (*RuntimeInformation, error)
	LogRuntimeInformation(ctx context.Context, info *RuntimeInformation)
}

func NewRuntimeAPI

func NewRuntimeAPI(kubeClient clients.ClientsInterface,
	clusterAPI cluster.Cluster,
	kernelAPI kernel.KernelData,
	clusterInfoAPI upgrade.ClusterInfo,
	proxyAPI proxy.ProxyAPI) RuntimeAPI

type RuntimeInformation

type RuntimeInformation struct {
	Kind                      string                         `json:"kind"`
	OperatingSystemMajor      string                         `json:"operatingSystemMajor"`
	OperatingSystemMajorMinor string                         `json:"operatingSystemMajorMinor"`
	OperatingSystemDecimal    string                         `json:"operatingSystemDecimal"`
	KernelFullVersion         string                         `json:"kernelFullVersion"`
	KernelPatchVersion        string                         `json:"kernelPatchVersion"`
	DriverToolkitImage        string                         `json:"driverToolkitImage"`
	Platform                  string                         `json:"platform"`
	ClusterVersion            string                         `json:"clusterVersion"`
	ClusterVersionMajorMinor  string                         `json:"clusterVersionMajorMinor"`
	ClusterUpgradeInfo        map[string]upgrade.NodeVersion `json:"clusterUpgradeInfo"`
	PushSecretName            string                         `json:"pushSecretName"`
	OSImageURL                string                         `json:"osImageURL"`
	Proxy                     proxy.Configuration            `json:"proxy"`
	GroupName                 ResourceGroupName              `json:"groupName"`
	SpecialResource           srov1beta1.SpecialResource     `json:"specialresource"`
}

Jump to

Keyboard shortcuts

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