Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MediaTypeFromGR ¶
func MediaTypeFromGR(gr schema.GroupResource) (mediaType string, err error)
MediaTypeFromGR returns the media type of the given GroupResource.
func PrefixFromGR ¶
func PrefixFromGR(gr schema.GroupResource) (prefix string, err error)
PrefixFromGR returns the prefix of the given GroupResource.
Types ¶
type Client ¶
type Client interface { // Get is a method that retrieves a key-value pair from the etcd server. // It returns the revision of the key-value pair Get(ctx context.Context, prefix string, opOpts ...OpOption) (rev int64, err error) // Watch is a method that watches for changes to a key-value pair on the etcd server. Watch(ctx context.Context, prefix string, opOpts ...OpOption) error // Delete is a method that deletes a key-value pair from the etcd server. Delete(ctx context.Context, prefix string, opOpts ...OpOption) error // Put is a method that sets a key-value pair on the etcd server. Put(ctx context.Context, prefix string, value []byte, opOpts ...OpOption) error }
Client is an interface that defines the operations that can be performed on an etcd client.
type Op ¶
type Op struct {
// contains filtered or unexported fields
}
Op is the option for the operation.
type OpOption ¶
type OpOption func(*Op)
OpOption is the option for the operation.
func WithPageLimit ¶
WithPageLimit sets the page limit for the target.
func WithResponse ¶
WithResponse sets the response callback for the target.
func WithRevision ¶
WithRevision sets the revision for the target.
Click to show internal directories.
Click to hide internal directories.