mysqls

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

mysqls mysql backend driver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Returns Versioner associated with this interface.
	Versioner() storage.Versioner

	Create(ctx context.Context, key string, obj, out runtime.Object) error
	//cannot get item by key, so need selection predicate
	Delete(ctx context.Context, key string, out runtime.Object, preconditions *storage.Preconditions) error

	Get(ctx context.Context, key string, objPtr runtime.Object, ignoreNotFound bool) error
	GetToList(ctx context.Context, key string, p storage.SelectionPredicate, listObj runtime.Object) error

	//cannot get item by key, so need selection predicate
	GuaranteedUpdate(ctx context.Context, key string, ptrToType runtime.Object, ignoreNotFound bool,
		precondtions *storage.Preconditions, tryUpdate UpdateFunc, suggestion ...runtime.Object) error
}

Interface implement a storeage backend

type UpdateFunc

type UpdateFunc func(input runtime.Object) (output runtime.Object, updateField []string, err error)

UpdateFunc Pass an UpdateFunc to Interface.GuaranteedUpdate to make an update that is guaranteed to succeed. See the comment for GuaranteedUpdate for more details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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