schema

package
v0.0.0-...-f8b438d Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	Schemas = factory.Schemas(&Version).
			Init(namespaceTypes).
			Init(volumeTypes).
			Init(ingressTypes).
			Init(secretTypes).
			Init(serviceTypes).
			Init(podTypes).
			Init(deploymentTypes).
			Init(statefulSetTypes).
			Init(replicaSet).
			Init(replicationController).
			Init(daemonSet).
			Init(workloadTypes).
			Init(configMapTypes)
)

Functions

func ConfigMapTypes

func ConfigMapTypes(version *types.APIVersion, schemas *types.Schemas) *types.Schemas

func NamespaceTypes

func NamespaceTypes(version *types.APIVersion, schemas *types.Schemas) *types.Schemas

Types

type EnvironmentFrom

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

type NodeScheduling

type NodeScheduling struct {
	NodeName   string `json:"nodeName" norman:"type=reference[node]"`
	RequireAll []string
	RequireAny []string
	Preferred  []string
}

type RegistryCredentialMapper

type RegistryCredentialMapper struct {
}

func (RegistryCredentialMapper) FromInternal

func (e RegistryCredentialMapper) FromInternal(data map[string]interface{})

func (RegistryCredentialMapper) ModifySchema

func (e RegistryCredentialMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (RegistryCredentialMapper) ToInternal

func (e RegistryCredentialMapper) ToInternal(data map[string]interface{})

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 {
	Node              *NodeScheduling
	Tolerate          []v1.Toleration
	Scheduler         string
	Priority          *int64
	PriorityClassName string
}

type ServiceSpecMapper

type ServiceSpecMapper struct {
}

func (ServiceSpecMapper) FromInternal

func (e ServiceSpecMapper) FromInternal(data map[string]interface{})

func (ServiceSpecMapper) ModifySchema

func (e ServiceSpecMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (ServiceSpecMapper) ToInternal

func (e ServiceSpecMapper) ToInternal(data map[string]interface{})

type Target

type Target struct {
	Addresses         []string `json:"addresses"`
	NotReadyAddresses []string `json:"notReadyAddresses"`
	Port              *int32   `json:"port"`
	Protocol          string   `json:"protocol" norman:"type=enum,options=TCP|UDP"`
}

Jump to

Keyboard shortcuts

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