onemember

package module
v0.0.0-...-c6c0f14 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2014 License: Apache-2.0 Imports: 4 Imported by: 2

README

onemember

Documentation

Index

Constants

View Source
const (
	PACKAGE string = "oneMember"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Created        string          `json:"created"`
	Claims         []Claim         `json:"claims"`
	Email          string          `json:"email"`
	HashedPassword string          `json:"hashedPassword,omitempty" out:"false"`
	LinkedAccounts []LinkedAccount `json:"linkedAccount"`
	Salt           string          `json:"salt,omitempty" out:"false"`
	Tenant         string          `json:"tenant"`
	Username       string          `json:"username"`
}

func (*Account) AddClaim

func (a *Account) AddClaim(c Claim)

func (*Account) RemoveClaim

func (a *Account) RemoveClaim(claimType string, provider string)

type AccountService

type AccountService interface {
	AuthAccount(username string, password string) (*Account, error)
	AddClaim(in *Account, claim Claim) error
	Create(username string, password string, email string) (*Account, error)
	GetByUsername(username string) (*Account, error)
	RemoveClaim(in *Account, claimType string, provider string) error
	SetLinkedAccount(in *Account, provider string, claims []Claim) error
	Update(in *Account) error
}

func New

type Claim

type Claim struct {
	Provider string `json:"provider"`
	Type     string `json:"type"`
	Value    string `json:"value"`
}

type DataConnector

type DataConnector interface {
	OnememberCreate(in *Account) error
	OnememberRead(uid string) (map[string]interface{}, error)
	OnememberUpdate(in *Account) error
}

type LinkedAccount

type LinkedAccount struct {
	LastLogin string `json:"lastLogin"`
	Provider  string `json:"provider"`
}

Directories

Path Synopsis
Godeps
_workspace/src/github.com/mitchellh/mapstructure
The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
_workspace/src/github.com/onsi/ginkgo
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
_workspace/src/github.com/onsi/ginkgo/config
Ginkgo accepts a number of configuration options.
Ginkgo accepts a number of configuration options.
_workspace/src/github.com/onsi/ginkgo/ginkgo
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To run tests in parallel ginkgo -nodes=N where N is the number of nodes.
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To run tests in parallel ginkgo -nodes=N where N is the number of nodes.
_workspace/src/github.com/onsi/ginkgo/ginkgo/aggregator
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output as one coherent stream.
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output as one coherent stream.
_workspace/src/github.com/onsi/ginkgo/ginkgo/support/fsnotify
Package fsnotify implements filesystem notification.
Package fsnotify implements filesystem notification.
_workspace/src/github.com/onsi/ginkgo/reporters
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
_workspace/src/github.com/onsi/ginkgo/thirdparty/gomocktestreporter
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.
_workspace/src/github.com/onsi/gomega
Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.
Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.
_workspace/src/github.com/onsi/gomega/matchers
Gomega matchers This package implements the Gomega matchers and does not typically need to be imported.
Gomega matchers This package implements the Gomega matchers and does not typically need to be imported.

Jump to

Keyboard shortcuts

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