Documentation
Index ¶
- type Bonafide
- func (b *Bonafide) DoLogin(username, password string) (bool, error)
- func (b *Bonafide) GetGateways(transport string) ([]Gateway, error)
- func (b *Bonafide) GetOpenvpnArgs() ([]string, error)
- func (b *Bonafide) GetPemCertificate() ([]byte, error)
- func (b *Bonafide) NeedsCredentials() bool
- func (b *Bonafide) SetDefaultGateway(name string)
- type Gateway
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bonafide ¶
type Bonafide struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Bonafide
New Bonafide: Initializes a Bonafide object. By default, no Credentials are passed.
func (*Bonafide) GetOpenvpnArgs ¶
func (*Bonafide) GetPemCertificate ¶
func (*Bonafide) NeedsCredentials ¶
NeedsCredentials signals if we have to ask user for credentials. If false, it can be that we have a cached token