Documentation ¶
Index ¶
- func AddManagementApiServerSecurity(dc *api.CassandraDatacenter, pod *corev1.PodTemplateSpec) error
- func BuildPodHostFromPod(pod *corev1.Pod) (string, error)
- func GetManagementApiProtocol(dc *api.CassandraDatacenter) (string, error)
- func GetPodHost(podName, clusterName, dcName, namespace string) string
- func ValidateManagementApiConfig(dc *api.CassandraDatacenter, client client.Client, ctx context.Context) []error
- type CassMetadataEndpoints
- type EndpointState
- type HttpClient
- type InsecureManagementApiSecurityProvider
- func (provider *InsecureManagementApiSecurityProvider) AddServerSecurity(pod *corev1.PodTemplateSpec) error
- func (provider *InsecureManagementApiSecurityProvider) BuildHttpClient(client client.Client, ctx context.Context) (HttpClient, error)
- func (provider *InsecureManagementApiSecurityProvider) GetProtocol() string
- func (provider *InsecureManagementApiSecurityProvider) ValidateConfig(client client.Client, ctx context.Context) []error
- type ManagementApiSecurityProvider
- type ManualManagementApiSecurityProvider
- func (provider *ManualManagementApiSecurityProvider) AddServerSecurity(pod *corev1.PodTemplateSpec) error
- func (provider *ManualManagementApiSecurityProvider) BuildHttpClient(client client.Client, ctx context.Context) (HttpClient, error)
- func (provider *ManualManagementApiSecurityProvider) GetProtocol() string
- func (provider *ManualManagementApiSecurityProvider) ValidateConfig(client client.Client, ctx context.Context) []error
- type NoPodIPError
- type NodeMgmtClient
- func (client *NodeMgmtClient) CallCreateRoleEndpoint(pod *corev1.Pod, username string, password string, superuser bool) error
- func (client *NodeMgmtClient) CallDrainEndpoint(pod *corev1.Pod) error
- func (client *NodeMgmtClient) CallKeyspaceCleanupEndpoint(pod *corev1.Pod, jobs int, keyspaceName string, tables []string) error
- func (client *NodeMgmtClient) CallLifecycleStartEndpoint(pod *corev1.Pod) error
- func (client *NodeMgmtClient) CallLifecycleStartEndpointWithReplaceIp(pod *corev1.Pod, replaceIp string) error
- func (client *NodeMgmtClient) CallMetadataEndpointsEndpoint(pod *corev1.Pod) (CassMetadataEndpoints, error)
- func (client *NodeMgmtClient) CallProbeClusterEndpoint(pod *corev1.Pod, consistencyLevel string, rfPerDc int) error
- func (client *NodeMgmtClient) CallReloadSeedsEndpoint(pod *corev1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddManagementApiServerSecurity ¶
func AddManagementApiServerSecurity(dc *api.CassandraDatacenter, pod *corev1.PodTemplateSpec) error
func GetManagementApiProtocol ¶
func GetManagementApiProtocol(dc *api.CassandraDatacenter) (string, error)
API for Node Management mAuth Config
func GetPodHost ¶
Types ¶
type CassMetadataEndpoints ¶
type CassMetadataEndpoints struct {
Entity []EndpointState `json:"entity"`
}
type EndpointState ¶
type EndpointState struct { HostID string `json:"HOST_ID"` IsAlive string `json:"IS_ALIVE"` NativeTransportAddress string `json:"NATIVE_TRANSPORT_ADDRESS"` RpcAddress string `json:"RPC_ADDRESS"` }
func (*EndpointState) GetRpcAddress ¶
func (x *EndpointState) GetRpcAddress() string
type HttpClient ¶
func BuildManagementApiHttpClient ¶
func BuildManagementApiHttpClient(dc *api.CassandraDatacenter, client client.Client, ctx context.Context) (HttpClient, error)
type InsecureManagementApiSecurityProvider ¶
type InsecureManagementApiSecurityProvider struct { }
func (*InsecureManagementApiSecurityProvider) AddServerSecurity ¶
func (provider *InsecureManagementApiSecurityProvider) AddServerSecurity(pod *corev1.PodTemplateSpec) error
func (*InsecureManagementApiSecurityProvider) BuildHttpClient ¶
func (provider *InsecureManagementApiSecurityProvider) BuildHttpClient(client client.Client, ctx context.Context) (HttpClient, error)
func (*InsecureManagementApiSecurityProvider) GetProtocol ¶
func (provider *InsecureManagementApiSecurityProvider) GetProtocol() string
func (*InsecureManagementApiSecurityProvider) ValidateConfig ¶
type ManagementApiSecurityProvider ¶
type ManagementApiSecurityProvider interface { BuildHttpClient(client client.Client, ctx context.Context) (HttpClient, error) AddServerSecurity(pod *corev1.PodTemplateSpec) error GetProtocol() string ValidateConfig(client client.Client, ctx context.Context) []error }
SPI for adding new mechanisms for securing the management API
func BuildManagmenetApiSecurityProvider ¶
func BuildManagmenetApiSecurityProvider(dc *api.CassandraDatacenter) (ManagementApiSecurityProvider, error)
type ManualManagementApiSecurityProvider ¶
type ManualManagementApiSecurityProvider struct { Namespace string Config *api.ManagementApiAuthManualConfig }
func (*ManualManagementApiSecurityProvider) AddServerSecurity ¶
func (provider *ManualManagementApiSecurityProvider) AddServerSecurity(pod *corev1.PodTemplateSpec) error
func (*ManualManagementApiSecurityProvider) BuildHttpClient ¶
func (provider *ManualManagementApiSecurityProvider) BuildHttpClient(client client.Client, ctx context.Context) (HttpClient, error)
func (*ManualManagementApiSecurityProvider) GetProtocol ¶
func (provider *ManualManagementApiSecurityProvider) GetProtocol() string
func (*ManualManagementApiSecurityProvider) ValidateConfig ¶
type NoPodIPError ¶ added in v1.3.0
type NoPodIPError error
type NodeMgmtClient ¶
type NodeMgmtClient struct { Client HttpClient Log logr.Logger Protocol string }
func (*NodeMgmtClient) CallCreateRoleEndpoint ¶
func (client *NodeMgmtClient) CallCreateRoleEndpoint(pod *corev1.Pod, username string, password string, superuser bool) error
Create a new superuser with the given username and password
func (*NodeMgmtClient) CallDrainEndpoint ¶
func (client *NodeMgmtClient) CallDrainEndpoint(pod *corev1.Pod) error
func (*NodeMgmtClient) CallKeyspaceCleanupEndpoint ¶
func (*NodeMgmtClient) CallLifecycleStartEndpoint ¶
func (client *NodeMgmtClient) CallLifecycleStartEndpoint(pod *corev1.Pod) error
func (*NodeMgmtClient) CallLifecycleStartEndpointWithReplaceIp ¶
func (client *NodeMgmtClient) CallLifecycleStartEndpointWithReplaceIp(pod *corev1.Pod, replaceIp string) error
func (*NodeMgmtClient) CallMetadataEndpointsEndpoint ¶
func (client *NodeMgmtClient) CallMetadataEndpointsEndpoint(pod *corev1.Pod) (CassMetadataEndpoints, error)
func (*NodeMgmtClient) CallProbeClusterEndpoint ¶
func (*NodeMgmtClient) CallReloadSeedsEndpoint ¶
func (client *NodeMgmtClient) CallReloadSeedsEndpoint(pod *corev1.Pod) error
Click to show internal directories.
Click to hide internal directories.