v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is a global function that registers this API group & version to a scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)

Functions

func Convert_config_MySQLConfiguration_To_v1beta1_MySQLConfiguration

func Convert_config_MySQLConfiguration_To_v1beta1_MySQLConfiguration(in *config.MySQLConfiguration, out *MySQLConfiguration, s conversion.Scope) error

func Convert_config_RedisConfiguration_To_v1beta1_RedisConfiguration

func Convert_config_RedisConfiguration_To_v1beta1_RedisConfiguration(in *config.RedisConfiguration, out *RedisConfiguration, s conversion.Scope) error

func Convert_v1beta1_MySQLConfiguration_To_config_MySQLConfiguration

func Convert_v1beta1_MySQLConfiguration_To_config_MySQLConfiguration(in *MySQLConfiguration, out *config.MySQLConfiguration, s conversion.Scope) error

func Convert_v1beta1_RedisConfiguration_To_config_RedisConfiguration

func Convert_v1beta1_RedisConfiguration_To_config_RedisConfiguration(in *RedisConfiguration, out *config.RedisConfiguration, s conversion.Scope) error

func RecommendedDefaultMySQLConfiguration

func RecommendedDefaultMySQLConfiguration(obj *MySQLConfiguration)

RecommendedDefaultMySQLConfiguration defaults a pointer to a MySQLConfiguration struct. This will set the recommended default values, but they may be subject to change between API versions. This function is intentionally not registered in the scheme as a "normal" `SetDefaults_Foo` function to allow consumers of this type to set whatever defaults for their embedded configs. Forcing consumers to use these defaults would be problematic as defaulting in the scheme is done as part of the conversion, and there would be no easy way to opt-out. Instead, if you want to use this defaulting method run it in your wrapper struct of this type in its `SetDefaults_` method.

func RecommendedDefaultRedisConfiguration

func RecommendedDefaultRedisConfiguration(obj *RedisConfiguration)

RecommendedDefaultRedisConfiguration defaults a pointer to a RedisConfiguration struct. This will set the recommended default values, but they may be subject to change between API versions. This function is intentionally not registered in the scheme as a "normal" `SetDefaults_Foo` function to allow consumers of this type to set whatever defaults for their embedded configs. Forcing consumers to use these defaults would be problematic as defaulting in the scheme is done as part of the conversion, and there would be no easy way to opt-out. Instead, if you want to use this defaulting method run it in your wrapper struct of this type in its `SetDefaults_` method.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type MySQLConfiguration

type MySQLConfiguration struct {
	// MySQL service host address. If left blank, the following related mysql options will be ignored.
	Host string `json:"host"`
	// Username for access to mysql service.
	Username string `json:"username"`
	// Password for access to mysql, should be used pair with password.
	Password string `json:"password"`
	// Database name for the server to use.
	Database string `json:"database"`
	// Maximum idle connections allowed to connect to mysql.
	MaxIdleConnections int32 `json:"maxIdleConnections"`
	// Maximum open connections allowed to connect to mysql.
	MaxOpenConnections int32 `json:"maxOpenConnections"`
	// Maximum connection life time allowed to connect to mysql.
	MaxConnectionLifeTime metav1.Duration `json:"maxConnectionLifeTime"`
}

MySQLConfiguration defines the configuration of mysql clients for components that can run with mysql database.

func (*MySQLConfiguration) DeepCopy

func (in *MySQLConfiguration) DeepCopy() *MySQLConfiguration

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

func (*MySQLConfiguration) DeepCopyInto

func (in *MySQLConfiguration) DeepCopyInto(out *MySQLConfiguration)

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

type RedisConfiguration

type RedisConfiguration struct {
	// Address of your Redis server(ip:port).
	Addr string `json:"addr"`
	// Username for access to redis service.
	Username string `json:"username"`
	// Optional auth password for Redis db.
	Password string `json:"password"`
	// Database to be selected after connecting to the server.
	Database int `json:"database"`
	// Maximum number of retries before giving up.
	MaxRetries int `json:"maxRetries"`
	// Timeout when connecting to redis service.
	Timeout metav1.Duration `json:"timeout"`
}

RedisConfiguration defines the configuration of redis clients for components that can run with redis key-value database.

func (*RedisConfiguration) DeepCopy

func (in *RedisConfiguration) DeepCopy() *RedisConfiguration

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

func (*RedisConfiguration) DeepCopyInto

func (in *RedisConfiguration) DeepCopyInto(out *RedisConfiguration)

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