Documentation ¶
Index ¶
- Variables
- type RefResolver
- func (r *RefResolver) Backup(ctx context.Context, ref *corev1.LocalObjectReference, namespace string) (*mariadbv1alpha1.Backup, error)
- func (r *RefResolver) MariaDB(ctx context.Context, ref *mariadbv1alpha1.MariaDBRef, namespace string) (*mariadbv1alpha1.MariaDB, error)
- func (r *RefResolver) MariaDBFromAnnotation(ctx context.Context, objMeta metav1.ObjectMeta) (*mariadbv1alpha1.MariaDB, error)
- func (r *RefResolver) MaxScale(ctx context.Context, ref *corev1.ObjectReference, namespace string) (*mariadbv1alpha1.MaxScale, error)
- func (r *RefResolver) SecretKeyRef(ctx context.Context, selector corev1.SecretKeySelector, namespace string) (string, error)
- func (r *RefResolver) SqlJob(ctx context.Context, ref *corev1.LocalObjectReference, namespace string) (*mariadbv1alpha1.SqlJob, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMariaDBAnnotationNotFound = errors.New("MariaDB annotation not found")
)
Functions ¶
This section is empty.
Types ¶
type RefResolver ¶
type RefResolver struct {
// contains filtered or unexported fields
}
func New ¶
func New(client client.Client) *RefResolver
func (*RefResolver) Backup ¶
func (r *RefResolver) Backup(ctx context.Context, ref *corev1.LocalObjectReference, namespace string) (*mariadbv1alpha1.Backup, error)
func (*RefResolver) MariaDB ¶
func (r *RefResolver) MariaDB(ctx context.Context, ref *mariadbv1alpha1.MariaDBRef, namespace string) (*mariadbv1alpha1.MariaDB, error)
func (*RefResolver) MariaDBFromAnnotation ¶ added in v0.0.16
func (r *RefResolver) MariaDBFromAnnotation(ctx context.Context, objMeta metav1.ObjectMeta) (*mariadbv1alpha1.MariaDB, error)
func (*RefResolver) MaxScale ¶ added in v0.0.25
func (r *RefResolver) MaxScale(ctx context.Context, ref *corev1.ObjectReference, namespace string) (*mariadbv1alpha1.MaxScale, error)
func (*RefResolver) SecretKeyRef ¶
func (r *RefResolver) SecretKeyRef(ctx context.Context, selector corev1.SecretKeySelector, namespace string) (string, error)
func (*RefResolver) SqlJob ¶
func (r *RefResolver) SqlJob(ctx context.Context, ref *corev1.LocalObjectReference, namespace string) (*mariadbv1alpha1.SqlJob, error)
Click to show internal directories.
Click to hide internal directories.