v1alpha1

package
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DBModeCluster              = "Cluster"
	DBModeSharded              = "Sharded"
	DBStandalone               = "Standalone"
	DBModeReplicaSet           = "ReplicaSet"
	ScalingTypeHorizontal      = "HorizontalScaling"
	ScalingTypeVertical        = "VerticalScaling"
	ScalingTypeVolumeExpansion = "VolumeExpansion"
)

Variables

View Source
var (
	PathMapperPlugin = map[schema.GroupVersionKind]OpsPathMapper{}
	OpsCalculator    = OpsResourceCalculator{}.ResourceCalculator()
)

Functions

func RegisterOpsPathMapperToPlugins added in v0.25.7

func RegisterOpsPathMapperToPlugins(opsObj OpsPathMapper)

func RegisterToPathMapperPlugin

func RegisterToPathMapperPlugin(opsObj OpsPathMapper)

Types

type ElasticsearchOpsRequest

type ElasticsearchOpsRequest struct{}

func (*ElasticsearchOpsRequest) GetReferencedDbObjectPath

func (m *ElasticsearchOpsRequest) GetReferencedDbObjectPath() []string

func (*ElasticsearchOpsRequest) GroupVersionKind

func (m *ElasticsearchOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*ElasticsearchOpsRequest) HorizontalPathMapping

func (m *ElasticsearchOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*ElasticsearchOpsRequest) VerticalPathMapping

func (m *ElasticsearchOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*ElasticsearchOpsRequest) VolumeExpansionPathMapping

func (m *ElasticsearchOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type MariaDBOpsRequest

type MariaDBOpsRequest struct{}

func (*MariaDBOpsRequest) GetReferencedDbObjectPath

func (m *MariaDBOpsRequest) GetReferencedDbObjectPath() []string

func (*MariaDBOpsRequest) GroupVersionKind

func (m *MariaDBOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*MariaDBOpsRequest) HorizontalPathMapping

func (m *MariaDBOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MariaDBOpsRequest) VerticalPathMapping

func (m *MariaDBOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MariaDBOpsRequest) VolumeExpansionPathMapping

func (m *MariaDBOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type MemcachedOpsRequest

type MemcachedOpsRequest struct{}

func (*MemcachedOpsRequest) GetReferencedDbObjectPath

func (m *MemcachedOpsRequest) GetReferencedDbObjectPath() []string

func (*MemcachedOpsRequest) GroupVersionKind

func (m *MemcachedOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*MemcachedOpsRequest) HorizontalPathMapping

func (m *MemcachedOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MemcachedOpsRequest) VerticalPathMapping

func (m *MemcachedOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MemcachedOpsRequest) VolumeExpansionPathMapping

func (m *MemcachedOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type MongoDBOpsRequest

type MongoDBOpsRequest struct{}

func (*MongoDBOpsRequest) GetReferencedDbObjectPath

func (m *MongoDBOpsRequest) GetReferencedDbObjectPath() []string

func (*MongoDBOpsRequest) GroupVersionKind

func (m *MongoDBOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*MongoDBOpsRequest) HorizontalPathMapping

func (m *MongoDBOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MongoDBOpsRequest) VerticalPathMapping

func (m *MongoDBOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MongoDBOpsRequest) VolumeExpansionPathMapping

func (m *MongoDBOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type MySqlOpsRequest

type MySqlOpsRequest struct{}

func (*MySqlOpsRequest) GetReferencedDbObjectPath

func (m *MySqlOpsRequest) GetReferencedDbObjectPath() []string

func (*MySqlOpsRequest) GroupVersionKind

func (m *MySqlOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*MySqlOpsRequest) HorizontalPathMapping

func (m *MySqlOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MySqlOpsRequest) VerticalPathMapping

func (m *MySqlOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*MySqlOpsRequest) VolumeExpansionPathMapping

func (m *MySqlOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type OpsPathMapper

type OpsPathMapper interface {
	HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath
	VerticalPathMapping() map[OpsReqPath]ReferencedObjPath
	VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath
	GetReferencedDbObjectPath() []string
	GroupVersionKind() schema.GroupVersionKind
}

func LoadOpsPathMapper

func LoadOpsPathMapper(opsObj OpsReqObject) (OpsPathMapper, error)

type OpsReqObject

type OpsReqObject map[string]interface{}

type OpsReqPath

type OpsReqPath string

type OpsResourceCalculator

type OpsResourceCalculator struct{}

func (OpsResourceCalculator) ResourceCalculator

func (r OpsResourceCalculator) ResourceCalculator() api.ResourceCalculator

type PgBouncerOpsRequest

type PgBouncerOpsRequest struct{}

func (*PgBouncerOpsRequest) GetReferencedDbObjectPath

func (m *PgBouncerOpsRequest) GetReferencedDbObjectPath() []string

func (*PgBouncerOpsRequest) GroupVersionKind

func (m *PgBouncerOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*PgBouncerOpsRequest) HorizontalPathMapping

func (m *PgBouncerOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*PgBouncerOpsRequest) VerticalPathMapping

func (m *PgBouncerOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*PgBouncerOpsRequest) VolumeExpansionPathMapping

func (m *PgBouncerOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type PostgresOpsRequest

type PostgresOpsRequest struct{}

func (*PostgresOpsRequest) GetReferencedDbObjectPath

func (m *PostgresOpsRequest) GetReferencedDbObjectPath() []string

func (*PostgresOpsRequest) GroupVersionKind

func (m *PostgresOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*PostgresOpsRequest) HorizontalPathMapping

func (m *PostgresOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*PostgresOpsRequest) VerticalPathMapping

func (m *PostgresOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*PostgresOpsRequest) VolumeExpansionPathMapping

func (m *PostgresOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type ProxySQLOpsRequest

type ProxySQLOpsRequest struct{}

func (*ProxySQLOpsRequest) GetReferencedDbObjectPath

func (m *ProxySQLOpsRequest) GetReferencedDbObjectPath() []string

func (*ProxySQLOpsRequest) GroupVersionKind

func (m *ProxySQLOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*ProxySQLOpsRequest) HorizontalPathMapping

func (m *ProxySQLOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*ProxySQLOpsRequest) VerticalPathMapping

func (m *ProxySQLOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*ProxySQLOpsRequest) VolumeExpansionPathMapping

func (m *ProxySQLOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type RedisOpsRequest

type RedisOpsRequest struct{}

func (*RedisOpsRequest) GetReferencedDbObjectPath

func (m *RedisOpsRequest) GetReferencedDbObjectPath() []string

func (*RedisOpsRequest) GroupVersionKind

func (m *RedisOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*RedisOpsRequest) HorizontalPathMapping

func (m *RedisOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*RedisOpsRequest) VerticalPathMapping

func (m *RedisOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*RedisOpsRequest) VolumeExpansionPathMapping

func (m *RedisOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type RedisSentinelOpsRequest

type RedisSentinelOpsRequest struct{}

func (*RedisSentinelOpsRequest) GetReferencedDbObjectPath

func (m *RedisSentinelOpsRequest) GetReferencedDbObjectPath() []string

func (*RedisSentinelOpsRequest) GroupVersionKind

func (m *RedisSentinelOpsRequest) GroupVersionKind() schema.GroupVersionKind

func (*RedisSentinelOpsRequest) HorizontalPathMapping

func (m *RedisSentinelOpsRequest) HorizontalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*RedisSentinelOpsRequest) VerticalPathMapping

func (m *RedisSentinelOpsRequest) VerticalPathMapping() map[OpsReqPath]ReferencedObjPath

func (*RedisSentinelOpsRequest) VolumeExpansionPathMapping

func (m *RedisSentinelOpsRequest) VolumeExpansionPathMapping() map[OpsReqPath]ReferencedObjPath

type ReferencedObjPath

type ReferencedObjPath string

type ScaledObject

type ScaledObject map[string]interface{}

func GetScaledObject

func GetScaledObject(opsObj map[string]interface{}) (ScaledObject, error)

Jump to

Keyboard shortcuts

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