kubernetes

package
v0.0.0-...-db3a1d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceGPU = "nvidia.com/gpu"
)

Variables

This section is empty.

Functions

func ConvertLegionResourcesToK8s

func ConvertLegionResourcesToK8s(requirements *v1alpha1.ResourceRequirements) (
	depResources corev1.ResourceRequirements, err error,
)

func TransformFilter

func TransformFilter(filter interface{}, tagKey string) (selector labels.Selector, err error)

Types

type ListOption

type ListOption func(*ListOptions)

func ListFilter

func ListFilter(filter interface{}) ListOption

func Page

func Page(page int) ListOption

func Size

func Size(size int) ListOption

type ListOptions

type ListOptions struct {
	Filter interface{}
	Page   *int
	Size   *int
}

Jump to

Keyboard shortcuts

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