schema

package
v0.0.0-...-c402a22 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 16 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/project",
		SubContext:       true,
		SubContextSchema: "/v3/schemas/project",
	}

	Schemas = factory.Schemas(&Version).
			Init(volumeTypes).
			Init(configMapTypes).
			Init(ingressTypes).
			Init(secretTypes).
			Init(serviceTypes).
			Init(podTypes).
			Init(deploymentTypes).
			Init(replicationControllerTypes).
			Init(replicaSetTypes).
			Init(statefulSetTypes).
			Init(daemonSetTypes).
			Init(jobTypes).
			Init(cronJobTypes).
			Init(podTemplateSpecTypes).
			Init(workloadTypes).
			Init(appTypes).
			Init(pipelineTypes).
			Init(monitoringTypes)
)

Functions

func NewWorkloadTypeMapper

func NewWorkloadTypeMapper() types.Mapper

Types

type CronJobConfig

type CronJobConfig struct {
}

type DaemonSetConfig

type DaemonSetConfig struct {
}

type DeploymentConfig

type DeploymentConfig struct {
}

type EnvironmentFrom

type EnvironmentFrom struct {
	Source     string `norman:"type=enum,options=field|resource|configMap|secret"`
	SourceName string
	SourceKey  string
	Prefix     string
	Optional   bool
	TargetKey  string
}

type JobConfig

type JobConfig struct {
}

type NodeScheduling

type NodeScheduling struct {
	NodeName   string `json:"nodeName" norman:"type=reference[/v3/schemas/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{}) error

type ReplicaSetConfig

type ReplicaSetConfig struct {
}

type ReplicationControllerConfig

type ReplicationControllerConfig struct {
}

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 StatefulSetConfig

type StatefulSetConfig struct {
}

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