Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CFUserRegex *regexp.Regexp = regexp.MustCompile(`cf:([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})/(\d+)`)
View Source
var DiegoUserRegex *regexp.Regexp = regexp.MustCompile(`diego:([a-zA-Z0-9_-]+)/(\d+)`)
Functions ¶
This section is empty.
Types ¶
type CFAuthenticator ¶
type CFAuthenticator struct {
// contains filtered or unexported fields
}
func NewCFAuthenticator ¶
func NewCFAuthenticator( logger lager.Logger, httpClient *http.Client, ccURL string, uaaTokenURL string, uaaUsername string, uaaPassword string, permissionsBuilder PermissionsBuilder, ) *CFAuthenticator
func (*CFAuthenticator) Authenticate ¶
func (cfa *CFAuthenticator) Authenticate(metadata ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
func (*CFAuthenticator) UserRegexp ¶
func (cfa *CFAuthenticator) UserRegexp() *regexp.Regexp
type CompositeAuthenticator ¶
type CompositeAuthenticator struct {
// contains filtered or unexported fields
}
func NewCompositeAuthenticator ¶
func NewCompositeAuthenticator(passwordAuthenticators ...PasswordAuthenticator) *CompositeAuthenticator
func (*CompositeAuthenticator) Authenticate ¶
func (a *CompositeAuthenticator) Authenticate(metadata ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
type DiegoProxyAuthenticator ¶
type DiegoProxyAuthenticator struct {
// contains filtered or unexported fields
}
func NewDiegoProxyAuthenticator ¶
func NewDiegoProxyAuthenticator( logger lager.Logger, credentials []byte, permissionsBuilder PermissionsBuilder, ) *DiegoProxyAuthenticator
func (*DiegoProxyAuthenticator) Authenticate ¶
func (dpa *DiegoProxyAuthenticator) Authenticate(metadata ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
func (*DiegoProxyAuthenticator) UserRegexp ¶
func (dpa *DiegoProxyAuthenticator) UserRegexp() *regexp.Regexp
type PasswordAuthenticator ¶
type PasswordAuthenticator interface { UserRegexp() *regexp.Regexp Authenticate(metadata ssh.ConnMetadata, password []byte) (*ssh.Permissions, error) }
type PermissionsBuilder ¶
type PermissionsBuilder interface {
Build(logger lager.Logger, processGuid string, index int, metadata ssh.ConnMetadata) (*ssh.Permissions, error)
}
func NewPermissionsBuilder ¶
func NewPermissionsBuilder(bbsClient bbs.InternalClient, useDirectInstanceAddr bool) PermissionsBuilder
type PublicKeyAuthenticator ¶
type PublicKeyAuthenticator interface { Authenticate(metadata ssh.ConnMetadata, publicKey ssh.PublicKey) (*ssh.Permissions, error) PublicKey() ssh.PublicKey }
func NewPublicKeyAuthenticator ¶
func NewPublicKeyAuthenticator(publicKey ssh.PublicKey) PublicKeyAuthenticator
Source Files
¶
- cf_authenticator.go
- composite_authenticator.go
- diego_proxy_authenticator.go
- errors.go
- package.go
- permissions_builder.go
- public_key_authenticator.go
- types.go
Click to show internal directories.
Click to hide internal directories.