gitkit

package
v0.0.0-...-6f28d27 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client GITKit client

func NewClientFromJSON

func NewClientFromJSON(configFile string) (*Client, error)

NewClientFromJSON GitkitClient.createFromJson

func (*Client) DeleteAccount

func (c *Client) DeleteAccount(userID string) error

func (*Client) DownloadAccount

func (c *Client) DownloadAccount(nextPageToken string, maxResults uint) ([]*User, string, error)

func (*Client) GetAccountInfoByEmail

func (c *Client) GetAccountInfoByEmail(email string) (*User, error)

func (*Client) GetAccountInfoByID

func (c *Client) GetAccountInfoByID(userID string) (*User, error)

func (*Client) GetOobConfirmationCode

func (c *Client) GetOobConfirmationCode(requestBody map[string]string) (string, error)

func (*Client) GetPublicKeys

func (c *Client) GetPublicKeys() (ret map[string]string, err error)

func (*Client) UploadAccount

func (c *Client) UploadAccount(hashAlgorithm string, signerKey, saltSeparator []byte, rounds, memoryCost int, users []*User) (*uploadAccountResult, error)

func (*Client) ValidateTokenInRequest

func (c *Client) ValidateTokenInRequest(r *http.Request) (*User, error)

type GitkitServerConfig

type GitkitServerConfig struct {
	ClientID                     string `json:"clientId"`
	ServiceAccountEmail          string `json:"serviceAccountEmail"`
	ServiceAccountPrivateKeyFile string `json:"serviceAccountPrivateKeyFile"`
	WidgetURL                    string `json:"widgetUrl"`
	CookieName                   string `json:"cookieName"`
	ServerAPIKey                 string `json:"serverApiKey"`
	// contains filtered or unexported fields
}

type ProviderUserInfo

type ProviderUserInfo struct {
	ProviderID  string `json:"providerId"`
	DisplayName string `json:"displayName"`
	PhotoURL    string `json:"photoUrl"`
	FederatedID string `json:"federatedId"`
}

type User

type User struct {
	LocalID           string             `json:"localId"`
	Email             string             `json:"email"`
	EmailVerified     bool               `json:"emailVerified"`
	DisplayName       string             `json:"displayName"`
	ProviderUserInfo  []ProviderUserInfo `json:"providerUserInfo"`
	PhotoURL          string             `json:"photoUrl"`
	PasswordHash      []byte             `json:"passwordHash"`
	Salt              []byte             `json:"salt"`
	Version           int                `json:"version"`
	PasswordUpdatedAt float64            `json:"passwordUpdatedAt"`
}

User GtkkitUser

Jump to

Keyboard shortcuts

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