v1alpha1

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

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 DruidOpsRequest added in v0.30.5

type DruidOpsRequest struct{}

func (*DruidOpsRequest) GetAppRefPath added in v0.30.5

func (m *DruidOpsRequest) GetAppRefPath() []string

func (*DruidOpsRequest) GroupVersionKind added in v0.30.5

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

func (*DruidOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*DruidOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*DruidOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type ElasticsearchOpsRequest

type ElasticsearchOpsRequest struct{}

func (*ElasticsearchOpsRequest) GetAppRefPath added in v0.30.0

func (m *ElasticsearchOpsRequest) GetAppRefPath() []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 FerretDBOpsRequest added in v0.30.5

type FerretDBOpsRequest struct{}

func (*FerretDBOpsRequest) GetAppRefPath added in v0.30.5

func (m *FerretDBOpsRequest) GetAppRefPath() []string

func (*FerretDBOpsRequest) GroupVersionKind added in v0.30.5

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

func (*FerretDBOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*FerretDBOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*FerretDBOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type MSSQLServerOpsRequest added in v0.30.5

type MSSQLServerOpsRequest struct{}

func (*MSSQLServerOpsRequest) GetAppRefPath added in v0.30.5

func (m *MSSQLServerOpsRequest) GetAppRefPath() []string

func (*MSSQLServerOpsRequest) GroupVersionKind added in v0.30.5

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

func (*MSSQLServerOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*MSSQLServerOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*MSSQLServerOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type MariaDBOpsRequest

type MariaDBOpsRequest struct{}

func (*MariaDBOpsRequest) GetAppRefPath added in v0.30.0

func (m *MariaDBOpsRequest) GetAppRefPath() []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) GetAppRefPath added in v0.30.0

func (m *MemcachedOpsRequest) GetAppRefPath() []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) GetAppRefPath added in v0.30.0

func (m *MongoDBOpsRequest) GetAppRefPath() []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) GetAppRefPath added in v0.30.0

func (m *MySqlOpsRequest) GetAppRefPath() []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
	GetAppRefPath() []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 PerconaXtraDBOpsRequest added in v0.30.5

type PerconaXtraDBOpsRequest struct{}

func (*PerconaXtraDBOpsRequest) GetAppRefPath added in v0.30.5

func (m *PerconaXtraDBOpsRequest) GetAppRefPath() []string

func (*PerconaXtraDBOpsRequest) GroupVersionKind added in v0.30.5

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

func (*PerconaXtraDBOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*PerconaXtraDBOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*PerconaXtraDBOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type PgBouncerOpsRequest

type PgBouncerOpsRequest struct{}

func (*PgBouncerOpsRequest) GetAppRefPath added in v0.30.0

func (m *PgBouncerOpsRequest) GetAppRefPath() []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 PgpoolOpsRequest added in v0.30.5

type PgpoolOpsRequest struct{}

func (*PgpoolOpsRequest) GetAppRefPath added in v0.30.5

func (m *PgpoolOpsRequest) GetAppRefPath() []string

func (*PgpoolOpsRequest) GroupVersionKind added in v0.30.5

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

func (*PgpoolOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*PgpoolOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*PgpoolOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type PostgresOpsRequest

type PostgresOpsRequest struct{}

func (*PostgresOpsRequest) GetAppRefPath added in v0.30.0

func (m *PostgresOpsRequest) GetAppRefPath() []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) GetAppRefPath added in v0.30.0

func (m *ProxySQLOpsRequest) GetAppRefPath() []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 RabbitMQOpsRequest added in v0.30.5

type RabbitMQOpsRequest struct{}

func (*RabbitMQOpsRequest) GetAppRefPath added in v0.30.5

func (m *RabbitMQOpsRequest) GetAppRefPath() []string

func (*RabbitMQOpsRequest) GroupVersionKind added in v0.30.5

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

func (*RabbitMQOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*RabbitMQOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*RabbitMQOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type RedisOpsRequest

type RedisOpsRequest struct{}

func (*RedisOpsRequest) GetAppRefPath added in v0.30.0

func (m *RedisOpsRequest) GetAppRefPath() []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) GetAppRefPath added in v0.30.0

func (m *RedisSentinelOpsRequest) GetAppRefPath() []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)

type SinglestoreOpsRequest added in v0.30.5

type SinglestoreOpsRequest struct{}

func (*SinglestoreOpsRequest) GetAppRefPath added in v0.30.5

func (m *SinglestoreOpsRequest) GetAppRefPath() []string

func (*SinglestoreOpsRequest) GroupVersionKind added in v0.30.5

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

func (*SinglestoreOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*SinglestoreOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*SinglestoreOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type SolrOpsRequest added in v0.30.5

type SolrOpsRequest struct{}

func (*SolrOpsRequest) GetAppRefPath added in v0.30.5

func (m *SolrOpsRequest) GetAppRefPath() []string

func (*SolrOpsRequest) GroupVersionKind added in v0.30.5

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

func (*SolrOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*SolrOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*SolrOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

type ZooKeeperOpsRequest added in v0.30.5

type ZooKeeperOpsRequest struct{}

func (*ZooKeeperOpsRequest) GetAppRefPath added in v0.30.5

func (m *ZooKeeperOpsRequest) GetAppRefPath() []string

func (*ZooKeeperOpsRequest) GroupVersionKind added in v0.30.5

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

func (*ZooKeeperOpsRequest) HorizontalPathMapping added in v0.30.5

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

func (*ZooKeeperOpsRequest) VerticalPathMapping added in v0.30.5

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

func (*ZooKeeperOpsRequest) VolumeExpansionPathMapping added in v0.30.5

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

Jump to

Keyboard shortcuts

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