schema

package
v0.0.0-...-480dd5c Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = types.APIVersion{
		Version: "v1",
		Group:   "workload.cattle.io",
		Path:    "/v1-workload",
		SubContexts: map[string]bool{
			"projects": true,
		},
	}

	Schemas = factory.Schemas(&Version).
			Init(namespaceTypes).
			Init(podTypes).
			Init(nodeTypes).
			Init(deploymentTypes).
			Init(statefulSetTypes).
			Init(replicaSet).
			Init(replicationController).
			Init(daemonSet).
			Init(workloadTypes)
)

Functions

This section is empty.

Types

type CPUInfo

type CPUInfo struct {
	Count int64
}

type EnvironmentFrom

type EnvironmentFrom struct {
	Source     string
	SourceName string
	SourceKey  string
	Prefix     string
	Optional   bool
	TargetKey  string
}

type KubernetesInfo

type KubernetesInfo struct {
	KubeletVersion   string
	KubeProxyVersion string
}

type MemoryInfo

type MemoryInfo struct {
	MemTotalKiB int64
}

type NodeInfo

type NodeInfo struct {
	CPU        CPUInfo
	Memory     MemoryInfo
	OS         OSInfo
	Kubernetes KubernetesInfo
}

type NodeScheduling

type NodeScheduling struct {
	Name       string
	RequireAll []string
	RequireAny []string
	Preferred  []string
}

type OSInfo

type OSInfo struct {
	DockerVersion   string
	KernelVersion   string
	OperatingSystem string
}

type ResourceRequest

type ResourceRequest struct {
	Request string
	Limit   string
}

type Resources

type Resources struct {
	CPU       *ResourceRequest
	Memory    *ResourceRequest
	NvidiaGPU *ResourceRequest
}

type ScalingGroup

type ScalingGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              interface{} `json:"spec"`
	Status            interface{} `json:"status"`
}

type Scheduling

type Scheduling struct {
	AntiAffinity      string
	Node              *NodeScheduling
	Tolerate          []string
	Scheduler         string
	Priority          *int64
	PriorityClassName string
}

Jump to

Keyboard shortcuts

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