Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the synapse v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=synapse.vrutkovs.eu
Package v1alpha1 contains API Schema definitions for the synapse v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=synapse.vrutkovs.eu
Index ¶
- Variables
- type Synapse
- func (in *Synapse) DeepCopy() *Synapse
- func (in *Synapse) DeepCopyInto(out *Synapse)
- func (in *Synapse) DeepCopyObject() runtime.Object
- func (s *Synapse) GetConfigMapName() string
- func (s *Synapse) GetDeploymentName() string
- func (s *Synapse) GetDeploymentPodName() string
- func (s *Synapse) GetSecretName() string
- func (s *Synapse) GetServiceName() string
- func (cr *Synapse) GetVolumeMounts() []corev1.VolumeMount
- func (cr *Synapse) GetVolumes() []corev1.Volume
- type SynapseConfig
- type SynapseList
- type SynapsePorts
- type SynapseSecrets
- type SynapseSpec
- type SynapseStatus
- type SynapseVolume
- type SynapseWorker
- func (in *SynapseWorker) DeepCopy() *SynapseWorker
- func (in *SynapseWorker) DeepCopyInto(out *SynapseWorker)
- func (in *SynapseWorker) DeepCopyObject() runtime.Object
- func (w *SynapseWorker) FindReferencedSynapse(c client.Client) (*Synapse, error)
- func (w *SynapseWorker) GenerateConfig(s *Synapse) ([]byte, error)
- func (w *SynapseWorker) GetConfigMapName() string
- func (w *SynapseWorker) GetDeploymentName() string
- func (w *SynapseWorker) GetDeploymentPodName() string
- func (w *SynapseWorker) GetServiceName() string
- type SynapseWorkerConfig
- type SynapseWorkerList
- type SynapseWorkerListener
- type SynapseWorkerResource
- type SynapseWorkerSpec
- type SynapseWorkerStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "synapse.vrutkovs.eu", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Synapse ¶
type Synapse struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SynapseSpec `json:"spec,omitempty"` Status SynapseStatus `json:"status,omitempty"` }
Synapse is the Schema for the synapses API +kubebuilder:subresource:status +kubebuilder:resource:path=synapses,scope=Namespaced
func (*Synapse) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Synapse.
func (*Synapse) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Synapse) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Synapse) GetConfigMapName ¶
GetConfigMapName returns managed configmap name
func (*Synapse) GetDeploymentName ¶
GetDeploymentName returns managed deployment name
func (*Synapse) GetDeploymentPodName ¶
GetDeploymentPodName returns generated pod name in the deployment
func (*Synapse) GetSecretName ¶
GetSecretName returns managed secret name
func (*Synapse) GetServiceName ¶
GetServiceName returns generated pod name in the deployment
func (*Synapse) GetVolumeMounts ¶
func (cr *Synapse) GetVolumeMounts() []corev1.VolumeMount
GetVolumeMounts returns a list of volume mounts in synapse container
func (*Synapse) GetVolumes ¶
GetVolumes returns a list of volumes mounted in synapse container
type SynapseConfig ¶
type SynapseConfig struct { Homeserver string `json:"homeserver"` Logging string `json:"logging"` Volumes []SynapseVolume `json:"volumes"` }
SynapseConfig contains homeserver configuration
func (*SynapseConfig) DeepCopy ¶
func (in *SynapseConfig) DeepCopy() *SynapseConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseConfig.
func (*SynapseConfig) DeepCopyInto ¶
func (in *SynapseConfig) DeepCopyInto(out *SynapseConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseList ¶
type SynapseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Synapse `json:"items"` }
SynapseList contains a list of Synapse
func (*SynapseList) DeepCopy ¶
func (in *SynapseList) DeepCopy() *SynapseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseList.
func (*SynapseList) DeepCopyInto ¶
func (in *SynapseList) DeepCopyInto(out *SynapseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SynapseList) DeepCopyObject ¶
func (in *SynapseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SynapsePorts ¶
type SynapsePorts struct { HTTP int `json:"http"` HTTPS int `json:"https"` Replication int `json:"replication"` }
SynapsePorts contains configuration for synapse ports
func (*SynapsePorts) DeepCopy ¶
func (in *SynapsePorts) DeepCopy() *SynapsePorts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapsePorts.
func (*SynapsePorts) DeepCopyInto ¶
func (in *SynapsePorts) DeepCopyInto(out *SynapsePorts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseSecrets ¶
type SynapseSecrets struct { Cert string `json:"cert"` Key string `json:"key"` SigningKey string `json:"signingKey"` }
SynapseSecrets contains all secrets for synapse
func (*SynapseSecrets) DeepCopy ¶
func (in *SynapseSecrets) DeepCopy() *SynapseSecrets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseSecrets.
func (*SynapseSecrets) DeepCopyInto ¶
func (in *SynapseSecrets) DeepCopyInto(out *SynapseSecrets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseSpec ¶
type SynapseSpec struct { Image string `json:"image"` ServerName string `json:"serverName"` Config SynapseConfig `json:"configuration"` Secrets SynapseSecrets `json:"secrets"` Ports SynapsePorts `json:"ports"` }
SynapseSpec defines the desired state of Synapse
func (*SynapseSpec) DeepCopy ¶
func (in *SynapseSpec) DeepCopy() *SynapseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseSpec.
func (*SynapseSpec) DeepCopyInto ¶
func (in *SynapseSpec) DeepCopyInto(out *SynapseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseStatus ¶
type SynapseStatus struct { }
SynapseStatus defines the observed state of Synapse
func (*SynapseStatus) DeepCopy ¶
func (in *SynapseStatus) DeepCopy() *SynapseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseStatus.
func (*SynapseStatus) DeepCopyInto ¶
func (in *SynapseStatus) DeepCopyInto(out *SynapseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseVolume ¶
type SynapseVolume struct { Volume corev1.Volume `json:"volume"` Mount corev1.VolumeMount `json:"mount"` }
SynapseVolume defines a volume to be mounted in the synapse container
func (*SynapseVolume) DeepCopy ¶
func (in *SynapseVolume) DeepCopy() *SynapseVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseVolume.
func (*SynapseVolume) DeepCopyInto ¶
func (in *SynapseVolume) DeepCopyInto(out *SynapseVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseWorker ¶
type SynapseWorker struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SynapseWorkerSpec `json:"spec,omitempty"` Status SynapseWorkerStatus `json:"status,omitempty"` }
SynapseWorker is the Schema for the synapseworkers API +kubebuilder:subresource:status +kubebuilder:resource:path=synapseworkers,scope=Namespaced
func (*SynapseWorker) DeepCopy ¶
func (in *SynapseWorker) DeepCopy() *SynapseWorker
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorker.
func (*SynapseWorker) DeepCopyInto ¶
func (in *SynapseWorker) DeepCopyInto(out *SynapseWorker)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SynapseWorker) DeepCopyObject ¶
func (in *SynapseWorker) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SynapseWorker) FindReferencedSynapse ¶
func (w *SynapseWorker) FindReferencedSynapse(c client.Client) (*Synapse, error)
FindReferencedSynapse returns a pointer to Synapse instance referenced in SynapseWorker object
func (*SynapseWorker) GenerateConfig ¶
func (w *SynapseWorker) GenerateConfig(s *Synapse) ([]byte, error)
GenerateConfig returns string config of the worker based on SynapseWorker config
func (*SynapseWorker) GetConfigMapName ¶
func (w *SynapseWorker) GetConfigMapName() string
GetConfigMapName returns SynapseWorker configmap name
func (*SynapseWorker) GetDeploymentName ¶
func (w *SynapseWorker) GetDeploymentName() string
GetDeploymentName returns SynapseWorker deployment name
func (*SynapseWorker) GetDeploymentPodName ¶
func (w *SynapseWorker) GetDeploymentPodName() string
GetDeploymentPodName returns SynapseWorker deployment name
func (*SynapseWorker) GetServiceName ¶
func (w *SynapseWorker) GetServiceName() string
GetServiceName returns SynapseWorker deployment name
type SynapseWorkerConfig ¶
type SynapseWorkerConfig struct { App string `yaml:"worker_app"` ReplicationHost string `yaml:"worker_replication_host"` ReplicationPort int `yaml:"worker_replication_port"` Listeners []SynapseWorkerListener `yaml:"worker_listeners"` }
SynapseWorkerConfig represents a worker config
func (*SynapseWorkerConfig) DeepCopy ¶
func (in *SynapseWorkerConfig) DeepCopy() *SynapseWorkerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerConfig.
func (*SynapseWorkerConfig) DeepCopyInto ¶
func (in *SynapseWorkerConfig) DeepCopyInto(out *SynapseWorkerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseWorkerList ¶
type SynapseWorkerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SynapseWorker `json:"items"` }
SynapseWorkerList contains a list of SynapseWorker
func (*SynapseWorkerList) DeepCopy ¶
func (in *SynapseWorkerList) DeepCopy() *SynapseWorkerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerList.
func (*SynapseWorkerList) DeepCopyInto ¶
func (in *SynapseWorkerList) DeepCopyInto(out *SynapseWorkerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SynapseWorkerList) DeepCopyObject ¶
func (in *SynapseWorkerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SynapseWorkerListener ¶
type SynapseWorkerListener struct { Protocol string `yaml:"type"` Port int `yaml:"port"` Resources []SynapseWorkerResource `yaml:"resources"` }
SynapseWorkerListener represents listener config
func (*SynapseWorkerListener) DeepCopy ¶
func (in *SynapseWorkerListener) DeepCopy() *SynapseWorkerListener
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerListener.
func (*SynapseWorkerListener) DeepCopyInto ¶
func (in *SynapseWorkerListener) DeepCopyInto(out *SynapseWorkerListener)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseWorkerResource ¶
type SynapseWorkerResource struct {
Names []string `json:"names"`
}
SynapseWorkerResource defines synapse worker
func (*SynapseWorkerResource) DeepCopy ¶
func (in *SynapseWorkerResource) DeepCopy() *SynapseWorkerResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerResource.
func (*SynapseWorkerResource) DeepCopyInto ¶
func (in *SynapseWorkerResource) DeepCopyInto(out *SynapseWorkerResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseWorkerSpec ¶
type SynapseWorkerSpec struct { Replicas int `json:"replicas"` Synapse string `json:"synapse"` Worker string `json:"worker"` Protocol string `json:"protocol"` Port int `json:"port"` Resources []SynapseWorkerResource `json:"resources"` }
SynapseWorkerSpec defines the desired state of SynapseWorker
func (*SynapseWorkerSpec) DeepCopy ¶
func (in *SynapseWorkerSpec) DeepCopy() *SynapseWorkerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerSpec.
func (*SynapseWorkerSpec) DeepCopyInto ¶
func (in *SynapseWorkerSpec) DeepCopyInto(out *SynapseWorkerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SynapseWorkerStatus ¶
type SynapseWorkerStatus struct { }
SynapseWorkerStatus defines the observed state of SynapseWorker
func (*SynapseWorkerStatus) DeepCopy ¶
func (in *SynapseWorkerStatus) DeepCopy() *SynapseWorkerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SynapseWorkerStatus.
func (*SynapseWorkerStatus) DeepCopyInto ¶
func (in *SynapseWorkerStatus) DeepCopyInto(out *SynapseWorkerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.