util

package
v0.0.0-...-82ad568 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

this file defines formatter for names and attributes used in openGauss-operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(s bool) *bool

func Int32Ptr

func Int32Ptr(i int32) *int32

func Int64Ptr

func Int64Ptr(i int64) *int64

func IntPtr

func IntPtr(i int) *int

func OpenGaussClusterFormatter

func OpenGaussClusterFormatter(og *v1.OpenGauss) *openGaussClusterFormatter

func StrPtr

func StrPtr(s string) *string

Types

type MasterFormatter

type MasterFormatter struct {
	OpenGauss *v1.OpenGauss
}

func (*MasterFormatter) ConfigMapName

func (formatter *MasterFormatter) ConfigMapName() string

func (*MasterFormatter) ReplConnInfo

func (formatter *MasterFormatter) ReplConnInfo() string

func (*MasterFormatter) ServiceName

func (formatter *MasterFormatter) ServiceName() string

func (*MasterFormatter) StatefulSetName

func (formatter *MasterFormatter) StatefulSetName() string

type ReplicaFormatter

type ReplicaFormatter struct {
	OpenGauss *v1.OpenGauss
}

func (*ReplicaFormatter) ConfigMapName

func (formatter *ReplicaFormatter) ConfigMapName() string

func (*ReplicaFormatter) ReplConnInfo

func (formatter *ReplicaFormatter) ReplConnInfo() string

func (*ReplicaFormatter) ServiceName

func (formatter *ReplicaFormatter) ServiceName() string

func (*ReplicaFormatter) StatefulSetName

func (formatter *ReplicaFormatter) StatefulSetName() string

type StatefulsetFormatterInterface

type StatefulsetFormatterInterface interface {
	StatefulSetName() string
	ServiceName() string
	ReplConnInfo() string
	ConfigMapName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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