Back to godoc.org

Package kubernetes

v0.0.0-...-16d7c81
Latest Go to latest

The highest tagged major version is .

Published: Oct 9, 2019 | License: Apache-2.0 | Module: github.com/legion-platform/legion

Index

Constants

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

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)

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
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier