cri

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GPUConfig_GpuConfig_not_set_case case_GPUConfig_GpuConfig = 0
View Source
const GPUConfig_NvidiaRuntime_case case_GPUConfig_GpuConfig = 1

Variables

View Source
var File_components_cri_action_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CNIConfig

type CNIConfig struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

TODO: allow overriding cni config?

func (*CNIConfig) ClearBinDir

func (x *CNIConfig) ClearBinDir()

func (*CNIConfig) ClearConfigDir

func (x *CNIConfig) ClearConfigDir()

func (*CNIConfig) Defaulting

func (x *CNIConfig) Defaulting()

func (*CNIConfig) GetBinDir

func (x *CNIConfig) GetBinDir() string

func (*CNIConfig) GetConfigDir

func (x *CNIConfig) GetConfigDir() string

func (*CNIConfig) HasBinDir

func (x *CNIConfig) HasBinDir() bool

func (*CNIConfig) HasConfigDir

func (x *CNIConfig) HasConfigDir() bool

func (*CNIConfig) ProtoMessage

func (*CNIConfig) ProtoMessage()

func (*CNIConfig) ProtoReflect

func (x *CNIConfig) ProtoReflect() protoreflect.Message

func (*CNIConfig) Reset

func (x *CNIConfig) Reset()

func (*CNIConfig) SetBinDir

func (x *CNIConfig) SetBinDir(v string)

func (*CNIConfig) SetConfigDir

func (x *CNIConfig) SetConfigDir(v string)

func (*CNIConfig) String

func (x *CNIConfig) String() string

func (*CNIConfig) Validate

func (x *CNIConfig) Validate() error

type CNIConfig_builder

type CNIConfig_builder struct {

	// CNI plugin directory
	// Defaults to "/opt/cni/bin"
	BinDir *string
	// CNI config directory
	// Defaults to "/etc/cni/net.d"
	ConfigDir *string
	// contains filtered or unexported fields
}

func (CNIConfig_builder) Build

func (b0 CNIConfig_builder) Build() *CNIConfig

type DownloadCRIBinaries

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

func (*DownloadCRIBinaries) ClearMetadata

func (x *DownloadCRIBinaries) ClearMetadata()

func (*DownloadCRIBinaries) ClearSpec

func (x *DownloadCRIBinaries) ClearSpec()

func (*DownloadCRIBinaries) ClearStatus

func (x *DownloadCRIBinaries) ClearStatus()

func (*DownloadCRIBinaries) GetMetadata

func (x *DownloadCRIBinaries) GetMetadata() *api.Metadata

func (*DownloadCRIBinaries) GetSpec

func (*DownloadCRIBinaries) GetStatus

func (*DownloadCRIBinaries) HasMetadata

func (x *DownloadCRIBinaries) HasMetadata() bool

func (*DownloadCRIBinaries) HasSpec

func (x *DownloadCRIBinaries) HasSpec() bool

func (*DownloadCRIBinaries) HasStatus

func (x *DownloadCRIBinaries) HasStatus() bool

func (*DownloadCRIBinaries) ProtoMessage

func (*DownloadCRIBinaries) ProtoMessage()

func (*DownloadCRIBinaries) ProtoReflect

func (x *DownloadCRIBinaries) ProtoReflect() protoreflect.Message

func (*DownloadCRIBinaries) Redact

func (x *DownloadCRIBinaries) Redact()

func (*DownloadCRIBinaries) Reset

func (x *DownloadCRIBinaries) Reset()

func (*DownloadCRIBinaries) SetMetadata

func (x *DownloadCRIBinaries) SetMetadata(v *api.Metadata)

func (*DownloadCRIBinaries) SetSpec

func (*DownloadCRIBinaries) SetStatus

func (*DownloadCRIBinaries) String

func (x *DownloadCRIBinaries) String() string

type DownloadCRIBinariesSpec

type DownloadCRIBinariesSpec struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*DownloadCRIBinariesSpec) ClearContainerdVersion

func (x *DownloadCRIBinariesSpec) ClearContainerdVersion()

func (*DownloadCRIBinariesSpec) ClearRuncVersion

func (x *DownloadCRIBinariesSpec) ClearRuncVersion()

func (*DownloadCRIBinariesSpec) GetContainerdVersion

func (x *DownloadCRIBinariesSpec) GetContainerdVersion() string

func (*DownloadCRIBinariesSpec) GetRuncVersion

func (x *DownloadCRIBinariesSpec) GetRuncVersion() string

func (*DownloadCRIBinariesSpec) HasContainerdVersion

func (x *DownloadCRIBinariesSpec) HasContainerdVersion() bool

func (*DownloadCRIBinariesSpec) HasRuncVersion

func (x *DownloadCRIBinariesSpec) HasRuncVersion() bool

func (*DownloadCRIBinariesSpec) ProtoMessage

func (*DownloadCRIBinariesSpec) ProtoMessage()

func (*DownloadCRIBinariesSpec) ProtoReflect

func (x *DownloadCRIBinariesSpec) ProtoReflect() protoreflect.Message

func (*DownloadCRIBinariesSpec) Reset

func (x *DownloadCRIBinariesSpec) Reset()

func (*DownloadCRIBinariesSpec) SetContainerdVersion

func (x *DownloadCRIBinariesSpec) SetContainerdVersion(v string)

func (*DownloadCRIBinariesSpec) SetRuncVersion

func (x *DownloadCRIBinariesSpec) SetRuncVersion(v string)

func (*DownloadCRIBinariesSpec) String

func (x *DownloadCRIBinariesSpec) String() string

type DownloadCRIBinariesSpec_builder

type DownloadCRIBinariesSpec_builder struct {
	ContainerdVersion *string
	RuncVersion       *string
	// contains filtered or unexported fields
}

func (DownloadCRIBinariesSpec_builder) Build

type DownloadCRIBinariesStatus

type DownloadCRIBinariesStatus struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*DownloadCRIBinariesStatus) ClearContainerdDownloadUrl

func (x *DownloadCRIBinariesStatus) ClearContainerdDownloadUrl()

func (*DownloadCRIBinariesStatus) ClearContainerdPath

func (x *DownloadCRIBinariesStatus) ClearContainerdPath()

func (*DownloadCRIBinariesStatus) ClearRuncDownloadUrl

func (x *DownloadCRIBinariesStatus) ClearRuncDownloadUrl()

func (*DownloadCRIBinariesStatus) ClearRuncPath

func (x *DownloadCRIBinariesStatus) ClearRuncPath()

func (*DownloadCRIBinariesStatus) GetContainerdDownloadUrl

func (x *DownloadCRIBinariesStatus) GetContainerdDownloadUrl() string

func (*DownloadCRIBinariesStatus) GetContainerdPath

func (x *DownloadCRIBinariesStatus) GetContainerdPath() string

func (*DownloadCRIBinariesStatus) GetRuncDownloadUrl

func (x *DownloadCRIBinariesStatus) GetRuncDownloadUrl() string

func (*DownloadCRIBinariesStatus) GetRuncPath

func (x *DownloadCRIBinariesStatus) GetRuncPath() string

func (*DownloadCRIBinariesStatus) HasContainerdDownloadUrl

func (x *DownloadCRIBinariesStatus) HasContainerdDownloadUrl() bool

func (*DownloadCRIBinariesStatus) HasContainerdPath

func (x *DownloadCRIBinariesStatus) HasContainerdPath() bool

func (*DownloadCRIBinariesStatus) HasRuncDownloadUrl

func (x *DownloadCRIBinariesStatus) HasRuncDownloadUrl() bool

func (*DownloadCRIBinariesStatus) HasRuncPath

func (x *DownloadCRIBinariesStatus) HasRuncPath() bool

func (*DownloadCRIBinariesStatus) ProtoMessage

func (*DownloadCRIBinariesStatus) ProtoMessage()

func (*DownloadCRIBinariesStatus) ProtoReflect

func (*DownloadCRIBinariesStatus) Reset

func (x *DownloadCRIBinariesStatus) Reset()

func (*DownloadCRIBinariesStatus) SetContainerdDownloadUrl

func (x *DownloadCRIBinariesStatus) SetContainerdDownloadUrl(v string)

func (*DownloadCRIBinariesStatus) SetContainerdPath

func (x *DownloadCRIBinariesStatus) SetContainerdPath(v string)

func (*DownloadCRIBinariesStatus) SetRuncDownloadUrl

func (x *DownloadCRIBinariesStatus) SetRuncDownloadUrl(v string)

func (*DownloadCRIBinariesStatus) SetRuncPath

func (x *DownloadCRIBinariesStatus) SetRuncPath(v string)

func (*DownloadCRIBinariesStatus) String

func (x *DownloadCRIBinariesStatus) String() string

type DownloadCRIBinariesStatus_builder

type DownloadCRIBinariesStatus_builder struct {
	ContainerdDownloadUrl *string
	ContainerdPath        *string
	RuncDownloadUrl       *string
	RuncPath              *string
	// contains filtered or unexported fields
}

func (DownloadCRIBinariesStatus_builder) Build

type DownloadCRIBinaries_builder

type DownloadCRIBinaries_builder struct {
	Metadata *api.Metadata
	Spec     *DownloadCRIBinariesSpec
	Status   *DownloadCRIBinariesStatus
	// contains filtered or unexported fields
}

func (DownloadCRIBinaries_builder) Build

type GPUConfig

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

func (*GPUConfig) ClearGpuConfig

func (x *GPUConfig) ClearGpuConfig()

func (*GPUConfig) ClearNvidiaRuntime

func (x *GPUConfig) ClearNvidiaRuntime()

func (*GPUConfig) GetNvidiaRuntime

func (x *GPUConfig) GetNvidiaRuntime() *NvidiaRuntime

func (*GPUConfig) HasGpuConfig

func (x *GPUConfig) HasGpuConfig() bool

func (*GPUConfig) HasNvidiaRuntime

func (x *GPUConfig) HasNvidiaRuntime() bool

func (*GPUConfig) ProtoMessage

func (*GPUConfig) ProtoMessage()

func (*GPUConfig) ProtoReflect

func (x *GPUConfig) ProtoReflect() protoreflect.Message

func (*GPUConfig) Reset

func (x *GPUConfig) Reset()

func (*GPUConfig) SetNvidiaRuntime

func (x *GPUConfig) SetNvidiaRuntime(v *NvidiaRuntime)

func (*GPUConfig) String

func (x *GPUConfig) String() string

func (*GPUConfig) WhichGpuConfig

func (x *GPUConfig) WhichGpuConfig() case_GPUConfig_GpuConfig

type GPUConfig_builder

type GPUConfig_builder struct {

	// Fields of oneof xxx_hidden_GpuConfig:
	// enable GPU support via Nvidia Container Runtime
	NvidiaRuntime *NvidiaRuntime
	// contains filtered or unexported fields
}

func (GPUConfig_builder) Build

func (b0 GPUConfig_builder) Build() *GPUConfig

type NvidiaRuntime

type NvidiaRuntime struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*NvidiaRuntime) ClearDisableSetAsDefaultRuntime

func (x *NvidiaRuntime) ClearDisableSetAsDefaultRuntime()

func (*NvidiaRuntime) ClearRuntimeClassName

func (x *NvidiaRuntime) ClearRuntimeClassName()

func (*NvidiaRuntime) ClearRuntimePath

func (x *NvidiaRuntime) ClearRuntimePath()

func (*NvidiaRuntime) Defaulting

func (x *NvidiaRuntime) Defaulting()

func (*NvidiaRuntime) GetDisableSetAsDefaultRuntime

func (x *NvidiaRuntime) GetDisableSetAsDefaultRuntime() bool

func (*NvidiaRuntime) GetRuntimeClassName

func (x *NvidiaRuntime) GetRuntimeClassName() string

func (*NvidiaRuntime) GetRuntimePath

func (x *NvidiaRuntime) GetRuntimePath() string

func (*NvidiaRuntime) HasDisableSetAsDefaultRuntime

func (x *NvidiaRuntime) HasDisableSetAsDefaultRuntime() bool

func (*NvidiaRuntime) HasRuntimeClassName

func (x *NvidiaRuntime) HasRuntimeClassName() bool

func (*NvidiaRuntime) HasRuntimePath

func (x *NvidiaRuntime) HasRuntimePath() bool

func (*NvidiaRuntime) ProtoMessage

func (*NvidiaRuntime) ProtoMessage()

func (*NvidiaRuntime) ProtoReflect

func (x *NvidiaRuntime) ProtoReflect() protoreflect.Message

func (*NvidiaRuntime) Reset

func (x *NvidiaRuntime) Reset()

func (*NvidiaRuntime) SetDisableSetAsDefaultRuntime

func (x *NvidiaRuntime) SetDisableSetAsDefaultRuntime(v bool)

func (*NvidiaRuntime) SetRuntimeClassName

func (x *NvidiaRuntime) SetRuntimeClassName(v string)

func (*NvidiaRuntime) SetRuntimePath

func (x *NvidiaRuntime) SetRuntimePath(v string)

func (*NvidiaRuntime) String

func (x *NvidiaRuntime) String() string

func (*NvidiaRuntime) Validate

func (x *NvidiaRuntime) Validate() error

type NvidiaRuntime_builder

type NvidiaRuntime_builder struct {

	// Absolute path to the nvidia-container-runtime binary.
	// Defaults to "/usr/bin/nvidia-container-runtime".
	RuntimePath *string
	// The runtime class name to use for GPU workloads.
	// Defaults to "nvidia".
	// NOTE: if disable_set_as_default_runtime is false, user is responsible
	// for ensuring the runtime class name object is being created in the cluster,
	// and the workload spec is configured to use the runtime class name,
	// otherwise GPU workload will fail to run.
	RuntimeClassName *string
	// Disable the behavior of settings nvidia-container-runtime as the
	// default runtime in containerd config.
	DisableSetAsDefaultRuntime *bool
	// contains filtered or unexported fields
}

func (NvidiaRuntime_builder) Build

type StartContainerdService

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

func (*StartContainerdService) ClearMetadata

func (x *StartContainerdService) ClearMetadata()

func (*StartContainerdService) ClearSpec

func (x *StartContainerdService) ClearSpec()

func (*StartContainerdService) ClearStatus

func (x *StartContainerdService) ClearStatus()

func (*StartContainerdService) GetMetadata

func (x *StartContainerdService) GetMetadata() *api.Metadata

func (*StartContainerdService) GetSpec

func (*StartContainerdService) GetStatus

func (*StartContainerdService) HasMetadata

func (x *StartContainerdService) HasMetadata() bool

func (*StartContainerdService) HasSpec

func (x *StartContainerdService) HasSpec() bool

func (*StartContainerdService) HasStatus

func (x *StartContainerdService) HasStatus() bool

func (*StartContainerdService) ProtoMessage

func (*StartContainerdService) ProtoMessage()

func (*StartContainerdService) ProtoReflect

func (x *StartContainerdService) ProtoReflect() protoreflect.Message

func (*StartContainerdService) Redact

func (x *StartContainerdService) Redact()

func (*StartContainerdService) Reset

func (x *StartContainerdService) Reset()

func (*StartContainerdService) SetMetadata

func (x *StartContainerdService) SetMetadata(v *api.Metadata)

func (*StartContainerdService) SetSpec

func (*StartContainerdService) SetStatus

func (*StartContainerdService) String

func (x *StartContainerdService) String() string

type StartContainerdServiceSpec

type StartContainerdServiceSpec struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*StartContainerdServiceSpec) ClearCniConfig

func (x *StartContainerdServiceSpec) ClearCniConfig()

func (*StartContainerdServiceSpec) ClearGpuConfig

func (x *StartContainerdServiceSpec) ClearGpuConfig()

func (*StartContainerdServiceSpec) ClearMetricsAddress

func (x *StartContainerdServiceSpec) ClearMetricsAddress()

func (*StartContainerdServiceSpec) ClearSandboxImage

func (x *StartContainerdServiceSpec) ClearSandboxImage()

func (*StartContainerdServiceSpec) Defaulting

func (x *StartContainerdServiceSpec) Defaulting()

func (*StartContainerdServiceSpec) GetCniConfig

func (x *StartContainerdServiceSpec) GetCniConfig() *CNIConfig

func (*StartContainerdServiceSpec) GetGpuConfig

func (x *StartContainerdServiceSpec) GetGpuConfig() *GPUConfig

func (*StartContainerdServiceSpec) GetMetricsAddress

func (x *StartContainerdServiceSpec) GetMetricsAddress() string

func (*StartContainerdServiceSpec) GetSandboxImage

func (x *StartContainerdServiceSpec) GetSandboxImage() string

func (*StartContainerdServiceSpec) HasCniConfig

func (x *StartContainerdServiceSpec) HasCniConfig() bool

func (*StartContainerdServiceSpec) HasGpuConfig

func (x *StartContainerdServiceSpec) HasGpuConfig() bool

func (*StartContainerdServiceSpec) HasMetricsAddress

func (x *StartContainerdServiceSpec) HasMetricsAddress() bool

func (*StartContainerdServiceSpec) HasSandboxImage

func (x *StartContainerdServiceSpec) HasSandboxImage() bool

func (*StartContainerdServiceSpec) ProtoMessage

func (*StartContainerdServiceSpec) ProtoMessage()

func (*StartContainerdServiceSpec) ProtoReflect

func (*StartContainerdServiceSpec) Reset

func (x *StartContainerdServiceSpec) Reset()

func (*StartContainerdServiceSpec) SetCniConfig

func (x *StartContainerdServiceSpec) SetCniConfig(v *CNIConfig)

func (*StartContainerdServiceSpec) SetGpuConfig

func (x *StartContainerdServiceSpec) SetGpuConfig(v *GPUConfig)

func (*StartContainerdServiceSpec) SetMetricsAddress

func (x *StartContainerdServiceSpec) SetMetricsAddress(v string)

func (*StartContainerdServiceSpec) SetSandboxImage

func (x *StartContainerdServiceSpec) SetSandboxImage(v string)

func (*StartContainerdServiceSpec) String

func (x *StartContainerdServiceSpec) String() string

func (*StartContainerdServiceSpec) Validate

func (x *StartContainerdServiceSpec) Validate() error

type StartContainerdServiceSpec_builder

type StartContainerdServiceSpec_builder struct {

	// Address for containerd metrics server to listen on, e.g. 0.0.0.0:10257"
	// Defaults to "0.0.0.0:10257". // FIXME: confirm why 0.0.0.0 is used instead of 127.0.0.1
	MetricsAddress *string
	// Image used for sandbox container.
	// Defaults to "mcr.microsoft.com/oss/containerd/pause:3.6".
	SandboxImage *string
	CniConfig    *CNIConfig
	GpuConfig    *GPUConfig
	// contains filtered or unexported fields
}

func (StartContainerdServiceSpec_builder) Build

type StartContainerdServiceStatus

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

func (*StartContainerdServiceStatus) ProtoMessage

func (*StartContainerdServiceStatus) ProtoMessage()

func (*StartContainerdServiceStatus) ProtoReflect

func (*StartContainerdServiceStatus) Reset

func (x *StartContainerdServiceStatus) Reset()

func (*StartContainerdServiceStatus) String

type StartContainerdServiceStatus_builder

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

func (StartContainerdServiceStatus_builder) Build

type StartContainerdService_builder

type StartContainerdService_builder struct {
	Metadata *api.Metadata
	Spec     *StartContainerdServiceSpec
	Status   *StartContainerdServiceStatus
	// contains filtered or unexported fields
}

func (StartContainerdService_builder) Build

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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