v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cloudship v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloudship.toucansoft.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cloudship.toucansoft.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AppResource

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

	Spec   AppResourceSpec   `json:"spec,omitempty"`
	Status AppResourceStatus `json:"status,omitempty"`
}

AppResource is the Schema for the application resources API

func (*AppResource) DeepCopy

func (in *AppResource) DeepCopy() *AppResource

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

func (*AppResource) DeepCopyInto

func (in *AppResource) DeepCopyInto(out *AppResource)

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

func (*AppResource) DeepCopyObject

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

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

type AppResourceList

type AppResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AppResource `json:"items"`
}

AppResourceList contains a list of AppResource

func (*AppResourceList) DeepCopy

func (in *AppResourceList) DeepCopy() *AppResourceList

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

func (*AppResourceList) DeepCopyInto

func (in *AppResourceList) DeepCopyInto(out *AppResourceList)

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

func (*AppResourceList) DeepCopyObject

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

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

type AppResourceSpec

type AppResourceSpec struct {
}

AppResourceSpec defines the desired state of AppResource

func (*AppResourceSpec) DeepCopy

func (in *AppResourceSpec) DeepCopy() *AppResourceSpec

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

func (*AppResourceSpec) DeepCopyInto

func (in *AppResourceSpec) DeepCopyInto(out *AppResourceSpec)

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

type AppResourceStatus

type AppResourceStatus struct {
}

AppResourceStatus defines the observed state of AppResource

func (*AppResourceStatus) DeepCopy

func (in *AppResourceStatus) DeepCopy() *AppResourceStatus

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

func (*AppResourceStatus) DeepCopyInto

func (in *AppResourceStatus) DeepCopyInto(out *AppResourceStatus)

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

type AppService

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

	Spec   AppServiceSpec   `json:"spec,omitempty"`
	Status AppServiceStatus `json:"status,omitempty"`
}

AppService is the Schema for the application services API

func (*AppService) DeepCopy

func (in *AppService) DeepCopy() *AppService

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

func (*AppService) DeepCopyInto

func (in *AppService) DeepCopyInto(out *AppService)

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

func (*AppService) DeepCopyObject

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

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

type AppServiceList

type AppServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AppService `json:"items"`
}

AppServiceList contains a list of AppService

func (*AppServiceList) DeepCopy

func (in *AppServiceList) DeepCopy() *AppServiceList

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

func (*AppServiceList) DeepCopyInto

func (in *AppServiceList) DeepCopyInto(out *AppServiceList)

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

func (*AppServiceList) DeepCopyObject

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

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

type AppServiceSpec

type AppServiceSpec struct {
	// Containers of which this service consists.
	Containers []Container `json:"containers"`
}

AppServiceSpec defines the desired state of AppService

func (*AppServiceSpec) DeepCopy

func (in *AppServiceSpec) DeepCopy() *AppServiceSpec

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

func (*AppServiceSpec) DeepCopyInto

func (in *AppServiceSpec) DeepCopyInto(out *AppServiceSpec)

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

type AppServiceStatus

type AppServiceStatus struct {
}

AppServiceStatus defines the observed state of AppService

func (*AppServiceStatus) DeepCopy

func (in *AppServiceStatus) DeepCopy() *AppServiceStatus

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

func (*AppServiceStatus) DeepCopyInto

func (in *AppServiceStatus) DeepCopyInto(out *AppServiceStatus)

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

type Application

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

	Spec   ApplicationSpec   `json:"spec,omitempty"`
	Status ApplicationStatus `json:"status,omitempty"`
}

Application is the Schema for the applications API

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

type ApplicationList

type ApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Application `json:"items"`
}

ApplicationList contains a list of Application

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationSpec

type ApplicationSpec struct {
	// Description is the name of the application
	Description string `json:"description,omitempty"`

	// CacheRef is the reference to cache informacion for the applicacion
	// +optional
	CacheRef *CacheSpec `json:"cacheRef,omitempty"`

	// EventStreamRefs is the reference to event stream informacion for the applicacion
	// +optional
	EventStreamRefs *EventStreamSpec `json:"eventStreamRef,omitempty"`
}

ApplicationSpec defines the desired state of Application

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type ApplicationStatus

type ApplicationStatus struct {
	// Deployment is the status of the deployment of the application
	Deployment string `json:"description,omitempty"`
}

ApplicationStatus defines the observed state of Application

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type CacheSpec

type CacheSpec struct {
	// Type is the type of the cache
	Type CacheType `json:"type,omitempty"`
}

CacheSpec is the definition for Cache support for and applicaction

func (*CacheSpec) DeepCopy

func (in *CacheSpec) DeepCopy() *CacheSpec

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

func (*CacheSpec) DeepCopyInto

func (in *CacheSpec) DeepCopyInto(out *CacheSpec)

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

type CacheType

type CacheType string

CacheType are the types of cache supported

const (
	// CacheTypeRedis use Redis for Cache
	CacheTypeRedis CacheType = "Redis"
	// CacheTypeMemcached use Memcached for Cache
	CacheTypeMemcached CacheType = "Memcached"
)

type Container

type Container struct {
	// Name of this container. Must be unique within its service.
	Name string `json:"name"`

	// Image this container should run. Must be a path-like or URI-like
	// representation of an OCI image. May be prefixed with a registry address
	// and should be suffixed with a tag.
	Image string `json:"image"`

	// Ports are the ports that this container exposes
	Ports []Service `json:"ports"`
}

Container defines a OCI container

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

type EventStreamSpec

type EventStreamSpec struct {
	// Type is the type of the cache
	Type EventStreamType `json:"type,omitempty"`
}

EventStreamSpec is the definition for Event Stream support for and applicaction

func (*EventStreamSpec) DeepCopy

func (in *EventStreamSpec) DeepCopy() *EventStreamSpec

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

func (*EventStreamSpec) DeepCopyInto

func (in *EventStreamSpec) DeepCopyInto(out *EventStreamSpec)

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

type EventStreamType

type EventStreamType string

EventStreamType are the types of event stream supported

const (
	// EventStreamTypeKafka use Kafka for Event Stream
	EventStreamTypeKafka EventStreamType = "Kafka"
	// EventStreamTypeRabbitMQ use RabbitMQ for Event Stream
	EventStreamTypeRabbitMQ EventStreamType = "RabbitMQ"
)

type Service

type Service struct {
	// Name of this service. Must be unique within its service.
	Name string `json:"name"`
	// Port is the number of the port
	Port int32 `json:"portNumber"`
}

Service defines an Application Service

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

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

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