cachestore

package
v0.0.0-...-9d8613e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InfinispanOperatorName is the Infinispan Operator default name
	InfinispanOperatorName = "infinispan-operator"
)

Variables

This section is empty.

Functions

func CredentialsAsEnv

func CredentialsAsEnv(vdbName string, vdbNamespace string, client k8sclient.Reader) []corev1.EnvVar

CredentialsAsEnv --

func Exists

func Exists(vdbName string, vdbNamespace string, client k8sclient.Reader, ispnClient *ispnClient.InfinispanV1Client) bool

Exists -- check to so if the Infinispan CacheStore exists

func IsInfinispanCRDAvailable

func IsInfinispanCRDAvailable(cli teiidclient.Client) bool

IsInfinispanCRDAvailable checks whether Infinispan CRD is available or not

func IsInfinispanOperatorAvailable

func IsInfinispanOperatorAvailable(cli teiidclient.Client, namespace string) (bool, error)

IsInfinispanOperatorAvailable verify if Infinispan Operator is running in the given namespace and the CRD is available

func NewInfinispanResource

func NewInfinispanResource(namespace string, name string, secretName string, relicas int32) infinispan.Infinispan

NewInfinispanResource --

Types

type InfinispanDetails

type InfinispanDetails struct {
	Name             string `yaml:"name,omitempty"`
	NameSpace        string `yaml:"namespace,omitempty"`
	User             string `yaml:"username,omitempty"`
	Password         string `yaml:"password,omitempty"`
	URL              string `yaml:"url,omitempty"`
	CreateIfNotFound bool   `yaml:"create,omitempty"`
	Replicas         int32  `yaml:"replicas,omitempty"`
}

InfinispanDetails --

func Credentials

func Credentials(vdbName string, vdbNamespace string, client k8sclient.Reader) (*InfinispanDetails, error)

Credentials --

Jump to

Keyboard shortcuts

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