Documentation

Index

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) DoLogin

    func (b *Bonafide) DoLogin(username, password string) (bool, error)

    func (*Bonafide) GetGateways

    func (b *Bonafide) GetGateways(transport string) ([]Gateway, error)

    func (*Bonafide) GetOpenvpnArgs

    func (b *Bonafide) GetOpenvpnArgs() ([]string, error)

    func (*Bonafide) GetPemCertificate

    func (b *Bonafide) GetPemCertificate() ([]byte, error)

    func (*Bonafide) NeedsCredentials

    func (b *Bonafide) NeedsCredentials() bool

      NeedsCredentials signals if we have to ask user for credentials. If false, it can be that we have a cached token

      func (*Bonafide) SetDefaultGateway

      func (b *Bonafide) SetDefaultGateway(name string)

      type Gateway

      type Gateway struct {
      	Host      string
      	IPAddress string
      	Location  string
      	Ports     []string
      	Protocols []string
      	Options   map[string]string
      }