Documentation ¶
Overview ¶
Copyright 2024 Matrix Origin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Matrix Origin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func MinioSecret(namespace string) *corev1.Secret
- func MinioShareStorage(minioSecretName string) v1alpha1.SharedStorageProvider
- func NewLogSetTpl(ns, image string) *v1alpha1.LogSet
- func NewMoTpl(namespace, version, repo string) *v1alpha1.MatrixOneCluster
- func NewNamespaceTpl() *corev1.Namespace
- func NewSecretTpl(ns string) *corev1.Secret
- func Patch(ctx context.Context, cli client.Client, obj client.Object, ...) error
- func SecretVolume(name string) corev1.Volume
- type PortForwardHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinioSecret ¶
func MinioShareStorage ¶
func MinioShareStorage(minioSecretName string) v1alpha1.SharedStorageProvider
func NewLogSetTpl ¶
NewLogSetTpl return a logSet template, name is random generated
func NewMoTpl ¶
func NewMoTpl(namespace, version, repo string) *v1alpha1.MatrixOneCluster
func NewNamespaceTpl ¶
func NewSecretTpl ¶
NewSecretTpl return a secret template, which namespace is ns, and name is random generated
func SecretVolume ¶
SecretVolume return a volume has a secret as volumeSource, volume name is same to secret volume
Types ¶
type PortForwardHandler ¶
type PortForwardHandler struct {
// contains filtered or unexported fields
}
func PortForward ¶
func (*PortForwardHandler) Stop ¶
func (h *PortForwardHandler) Stop()