v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: apim.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type APIManager

type APIManager struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   APIManagerSpec   `json:"spec"`
	Status APIManagerStatus `json:"status"`
}

Apimanager is a specification for a Apimanager resource

func (*APIManager) DeepCopy

func (in *APIManager) DeepCopy() *APIManager

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIManager.

func (*APIManager) DeepCopyInto

func (in *APIManager) DeepCopyInto(out *APIManager)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIManager) DeepCopyObject

func (in *APIManager) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type APIManagerList

type APIManagerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []APIManager `json:"items"`
}

APIManagerList is a list of APIManager resources

func (*APIManagerList) DeepCopy

func (in *APIManagerList) DeepCopy() *APIManagerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIManagerList.

func (*APIManagerList) DeepCopyInto

func (in *APIManagerList) DeepCopyInto(out *APIManagerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIManagerList) DeepCopyObject

func (in *APIManagerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type APIManagerSpec

type APIManagerSpec struct {
	// Here set UseMysql as string type to set true as default, and since using apiextensions.k8s.io/v1beta1
	// and not using apiextensions.k8s.io/v1
	UseMysql string    `json:"useMysql"`
	Pattern  string    `json:"pattern"`
	Replicas *int32    `json:"replicas"`
	Profiles []Profile `json:"profiles"`
	Service  Service   `json:"service"`
	Expose   string    `json:"expose"`
}

APIManagerSpec is the spec for a APIManager resource

func (*APIManagerSpec) DeepCopy

func (in *APIManagerSpec) DeepCopy() *APIManagerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIManagerSpec.

func (*APIManagerSpec) DeepCopyInto

func (in *APIManagerSpec) DeepCopyInto(out *APIManagerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIManagerStatus

type APIManagerStatus struct {
	AvailableReplicas int32 `json:"availableReplicas"`
}

APIManagerStatus is the status for a APIManager resource

func (*APIManagerStatus) DeepCopy

func (in *APIManagerStatus) DeepCopy() *APIManagerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIManagerStatus.

func (*APIManagerStatus) DeepCopyInto

func (in *APIManagerStatus) DeepCopyInto(out *APIManagerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Artifacts

type Artifacts struct {
	Deployment Deployment `json:"deployment"`
}

func (*Artifacts) DeepCopy added in v1.1.0

func (in *Artifacts) DeepCopy() *Artifacts

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifacts.

func (*Artifacts) DeepCopyInto added in v1.1.0

func (in *Artifacts) DeepCopyInto(out *Artifacts)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Configmap

type Configmap struct {
	DeploymentConfigmap string      `json:"deploymentConfigMap"`
	NewConfigmap        []NewVolume `json:"newConfigMap"`
}

func (*Configmap) DeepCopy added in v1.1.0

func (in *Configmap) DeepCopy() *Configmap

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configmap.

func (*Configmap) DeepCopyInto added in v1.1.0

func (in *Configmap) DeepCopyInto(out *Configmap)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Deployment

type Deployment struct {
	Resources       Resources `json:"resources"`
	Replicas        *int32    `json:"replicas"`
	MinReadySeconds int32     `json:"minReadySeconds"`
	//Strategy Strategy `json:"strategy"`
	Image                 string    `json:"image"`
	ImagePullPolicy       string    `json:"imagePullPolicy"`
	LivenessProbe         Probe     `json:"livenessProbe"`
	ReadinessProbe        Probe     `json:"readinessProbe"`
	Configmaps            Configmap `json:"configMaps"`
	PersistentVolumeClaim PVC       `json:"persistentVolumeClaim"`
}

func (*Deployment) DeepCopy added in v1.1.0

func (in *Deployment) DeepCopy() *Deployment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment.

func (*Deployment) DeepCopyInto added in v1.1.0

func (in *Deployment) DeepCopyInto(out *Deployment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NewVolume

type NewVolume struct {
	Name      string `json:"name"`
	MountPath string `json:"mountPath"`
}

func (*NewVolume) DeepCopy added in v1.1.0

func (in *NewVolume) DeepCopy() *NewVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NewVolume.

func (*NewVolume) DeepCopyInto added in v1.1.0

func (in *NewVolume) DeepCopyInto(out *NewVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PVC

type PVC struct {
	SynapseConfigs string      `json:"synapseConfigs"`
	ExecutionPlans string      `json:"executionPlans"`
	NewClaim       []NewVolume `json:"newClaim"`
}

func (*PVC) DeepCopy added in v1.1.0

func (in *PVC) DeepCopy() *PVC

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVC.

func (*PVC) DeepCopyInto added in v1.1.0

func (in *PVC) DeepCopyInto(out *PVC)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PVCServer

type PVCServer struct {
	SynapseConfigs string `json:"synapseConfigs"`
	ExecutionPlans string `json:"executionPlans"`
}

func (*PVCServer) DeepCopy added in v1.1.0

func (in *PVCServer) DeepCopy() *PVCServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVCServer.

func (*PVCServer) DeepCopyInto added in v1.1.0

func (in *PVCServer) DeepCopyInto(out *PVCServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Ports

type Ports struct {
	Name string `json:"name"`
	Port string `json:"port"`
}

func (*Ports) DeepCopy added in v1.1.0

func (in *Ports) DeepCopy() *Ports

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ports.

func (*Ports) DeepCopyInto added in v1.1.0

func (in *Ports) DeepCopyInto(out *Ports)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Probe

type Probe struct {
	InitialDelaySeconds int32 `json:"initialDelaySeconds"`
	FailureThreshold    int32 `json:"failureThreshold"`
	PeriodSeconds       int32 `json:"periodSeconds"`
}

func (*Probe) DeepCopy added in v1.1.0

func (in *Probe) DeepCopy() *Probe

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe.

func (*Probe) DeepCopyInto added in v1.1.0

func (in *Probe) DeepCopyInto(out *Probe)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Profile

type Profile struct {
	Name       string     `json:"name"`
	Deployment Deployment `json:"deployment"`
	Type       string     `json:"type"`
	Service    Service    `json:"service"`
}

func (*Profile) DeepCopy added in v1.1.0

func (in *Profile) DeepCopy() *Profile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.

func (*Profile) DeepCopyInto added in v1.1.0

func (in *Profile) DeepCopyInto(out *Profile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resources

type Resources struct {
	Requests Storage `json:"requests"`
	Limits   Storage `json:"limits"`
}

func (*Resources) DeepCopy added in v1.1.0

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto added in v1.1.0

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Service

type Service struct {
	Name  string  `json:"name"`
	Type  string  `json:"type"`
	Ports []Ports `json:"ports"`
}

func (*Service) DeepCopy added in v1.1.0

func (in *Service) DeepCopy() *Service

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.

func (*Service) DeepCopyInto added in v1.1.0

func (in *Service) DeepCopyInto(out *Service)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Storage

type Storage struct {
	Memory string `json:"memory"`
	CPU    string `json:"cpu"`
}

func (*Storage) DeepCopy added in v1.1.0

func (in *Storage) DeepCopy() *Storage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.

func (*Storage) DeepCopyInto added in v1.1.0

func (in *Storage) DeepCopyInto(out *Storage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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