config

package
v0.1.5-0...-5436c12 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 License: BSD-4-Clause Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Authenticator = &HtoSAuthenticator{}
View Source
var (
	HerokuClient heroku.Client
)

Functions

func Auth

func Auth() (*users.User, error)

func HomeDir

func HomeDir() string

func InitHerokuAuth

func InitHerokuAuth()

func LoadAuthOrLogin

func LoadAuthOrLogin() (*users.User, error)

Types

type AuthConfigData

type AuthConfigData struct {
	LastUpdate        time.Time              `json:"last_update"`
	AuthConfigPerHost map[string]*users.User `json:"auth_config_data"`
}

type Config

type Config struct {
	ApiUrl string

	ApiVersion string
	ConfigDir  string
	AuthFile   string
	// contains filtered or unexported fields
}
var (
	C Config
)

type HtoSAuthenticator

type HtoSAuthenticator struct{}

func (*HtoSAuthenticator) LoadAuth

func (a *HtoSAuthenticator) LoadAuth() (*users.User, error)

func (*HtoSAuthenticator) RemoveAuth

func (a *HtoSAuthenticator) RemoveAuth() error

func (*HtoSAuthenticator) StoreAuth

func (a *HtoSAuthenticator) StoreAuth(user *users.User) error

Jump to

Keyboard shortcuts

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