Documentation ¶
Index ¶
- Constants
- Variables
- type Framework
- func (f *Framework) CheckAppBindingSpec(meta metav1.ObjectMeta) error
- func (f *Framework) CleanMemcached()
- func (f *Framework) CreateMemcached(obj *api.Memcached) error
- func (f *Framework) CreateNamespace() error
- func (f *Framework) CreateRole(obj *rbac.Role) error
- func (f *Framework) CreateRoleBinding(obj *rbac.RoleBinding) error
- func (f *Framework) CreateServiceAccount(obj *core.ServiceAccount) error
- func (f *Framework) DeleteMemcached(meta metav1.ObjectMeta) error
- func (f *Framework) DeleteNamespace() error
- func (f *Framework) EventuallyAppBinding(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyCRD() GomegaAsyncAssertion
- func (f *Framework) EventuallyGetItem(meta metav1.ObjectMeta, key string) GomegaAsyncAssertion
- func (f *Framework) EventuallyMemcached(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyMemcachedConfigs(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyMemcachedPhase(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallyMemcachedRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Framework) EventuallySetItem(meta metav1.ObjectMeta, key, value string) GomegaAsyncAssertion
- func (f *Framework) EvictPodsFromDeployment(meta metav1.ObjectMeta) error
- func (f *Framework) GetDatabasePod(meta metav1.ObjectMeta) (*core.Pod, error)
- func (f *Framework) GetMemcacheClient(meta metav1.ObjectMeta) (*memcache.Client, error)
- func (f *Framework) GetMemcached(meta metav1.ObjectMeta) (*api.Memcached, error)
- func (f *Framework) Invoke() *Invocation
- func (f *Framework) Namespace() string
- func (f *Framework) PatchMemcached(meta metav1.ObjectMeta, transform func(*api.Memcached) *api.Memcached) (*api.Memcached, error)
- func (f *Framework) PrintDebugHelpers()
- type Invocation
- func (fi *Invocation) CreateConfigMap(obj *core.ConfigMap) error
- func (fi *Invocation) DBClient() cs.Interface
- func (fi *Invocation) DeleteConfigMap(meta metav1.ObjectMeta) error
- func (fi *Invocation) EventuallyConfigSourceVolumeMounted(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (f *Invocation) EventuallyWipedOut(meta metav1.ObjectMeta) GomegaAsyncAssertion
- func (fi *Invocation) GetCustomConfig(configs []MemcdConfig) *core.ConfigMap
- func (fi *Invocation) GetPod(meta metav1.ObjectMeta) (*core.Pod, error)
- func (fi *Invocation) Memcached() *api.Memcached
- func (fi *Invocation) RestConfig() *rest.Config
- func (fi *Invocation) RoleBinding(saName string, roleName string) *rbac.RoleBinding
- func (fi *Invocation) RoleForMemcached(meta metav1.ObjectMeta) *rbac.Role
- func (fi *Invocation) RoleForSnapshot(meta metav1.ObjectMeta) *rbac.Role
- func (fi *Invocation) ServiceAccount() *core.ServiceAccount
- type MemcdConfig
Constants ¶
View Source
const ( Timeout = 20 * time.Minute RetryInterval = 5 * time.Second )
View Source
const ( GET = "get" LIST = "list" PATCH = "patch" CREATE = "create" UPDATE = "update" USE = "use" POLICY = "policy" Role = "Role" ServiceAccount = "ServiceAccount" )
Variables ¶
View Source
var ( DockerRegistry = "kubedbci" DBCatalogName = "1.5.22" )
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework struct { StorageClass string // contains filtered or unexported fields }
func New ¶
func New( restConfig *rest.Config, kubeClient kubernetes.Interface, apiExtKubeClient crd_cs.ApiextensionsV1beta1Interface, dbClient cs.Interface, kaClient ka.Interface, appCatalogClient appcat_cs.AppcatalogV1alpha1Interface, storageClass string, ) *Framework
func (*Framework) CheckAppBindingSpec ¶
func (f *Framework) CheckAppBindingSpec(meta metav1.ObjectMeta) error
func (*Framework) CleanMemcached ¶
func (f *Framework) CleanMemcached()
func (*Framework) CreateNamespace ¶
func (*Framework) CreateRoleBinding ¶
func (f *Framework) CreateRoleBinding(obj *rbac.RoleBinding) error
func (*Framework) CreateServiceAccount ¶
func (f *Framework) CreateServiceAccount(obj *core.ServiceAccount) error
func (*Framework) DeleteMemcached ¶
func (f *Framework) DeleteMemcached(meta metav1.ObjectMeta) error
func (*Framework) DeleteNamespace ¶
func (*Framework) EventuallyAppBinding ¶
func (f *Framework) EventuallyAppBinding(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyCRD ¶
func (f *Framework) EventuallyCRD() GomegaAsyncAssertion
func (*Framework) EventuallyGetItem ¶
func (f *Framework) EventuallyGetItem(meta metav1.ObjectMeta, key string) GomegaAsyncAssertion
func (*Framework) EventuallyMemcached ¶
func (f *Framework) EventuallyMemcached(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyMemcachedConfigs ¶
func (f *Framework) EventuallyMemcachedConfigs(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyMemcachedPhase ¶
func (f *Framework) EventuallyMemcachedPhase(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallyMemcachedRunning ¶
func (f *Framework) EventuallyMemcachedRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Framework) EventuallySetItem ¶
func (f *Framework) EventuallySetItem(meta metav1.ObjectMeta, key, value string) GomegaAsyncAssertion
func (*Framework) EvictPodsFromDeployment ¶
func (f *Framework) EvictPodsFromDeployment(meta metav1.ObjectMeta) error
func (*Framework) GetDatabasePod ¶
func (*Framework) GetMemcacheClient ¶
func (*Framework) GetMemcached ¶
func (*Framework) Invoke ¶
func (f *Framework) Invoke() *Invocation
func (*Framework) PatchMemcached ¶
func (*Framework) PrintDebugHelpers ¶
func (f *Framework) PrintDebugHelpers()
type Invocation ¶
type Invocation struct { *Framework // contains filtered or unexported fields }
func (*Invocation) CreateConfigMap ¶
func (fi *Invocation) CreateConfigMap(obj *core.ConfigMap) error
func (*Invocation) DBClient ¶
func (fi *Invocation) DBClient() cs.Interface
func (*Invocation) DeleteConfigMap ¶
func (fi *Invocation) DeleteConfigMap(meta metav1.ObjectMeta) error
func (*Invocation) EventuallyConfigSourceVolumeMounted ¶
func (fi *Invocation) EventuallyConfigSourceVolumeMounted(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Invocation) EventuallyWipedOut ¶
func (f *Invocation) EventuallyWipedOut(meta metav1.ObjectMeta) GomegaAsyncAssertion
func (*Invocation) GetCustomConfig ¶
func (fi *Invocation) GetCustomConfig(configs []MemcdConfig) *core.ConfigMap
func (*Invocation) GetPod ¶
func (fi *Invocation) GetPod(meta metav1.ObjectMeta) (*core.Pod, error)
func (*Invocation) Memcached ¶
func (fi *Invocation) Memcached() *api.Memcached
func (*Invocation) RestConfig ¶
func (fi *Invocation) RestConfig() *rest.Config
func (*Invocation) RoleBinding ¶
func (fi *Invocation) RoleBinding(saName string, roleName string) *rbac.RoleBinding
func (*Invocation) RoleForMemcached ¶
func (fi *Invocation) RoleForMemcached(meta metav1.ObjectMeta) *rbac.Role
func (*Invocation) RoleForSnapshot ¶
func (fi *Invocation) RoleForSnapshot(meta metav1.ObjectMeta) *rbac.Role
func (*Invocation) ServiceAccount ¶
func (fi *Invocation) ServiceAccount() *core.ServiceAccount
type MemcdConfig ¶
Click to show internal directories.
Click to hide internal directories.