etcd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	tools.EtcdHelper
	// contains filtered or unexported fields
}

Etcd implements UserIdentityMapping backed by etcd.

func New

func New(helper tools.EtcdHelper, initializer user.Initializer) *Etcd

New returns a new Etcd.

func (*Etcd) CreateOrUpdateUserIdentityMapping

func (r *Etcd) CreateOrUpdateUserIdentityMapping(mapping *api.UserIdentityMapping) (*api.UserIdentityMapping, bool, error)

CreateOrUpdateUserIdentityMapping implements useridentitymapping.Registry

func (*Etcd) GetUser

func (r *Etcd) GetUser(name string) (user *api.User, err error)

func (*Etcd) GetUserIdentityMapping added in v0.2.2

func (r *Etcd) GetUserIdentityMapping(name string) (mapping *api.UserIdentityMapping, err error)

Jump to

Keyboard shortcuts

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