Documentation
¶
Index ¶
- func ClearCredHelperKey() error
- func GenerateRandomID(prefix string) string
- func GenerateRandomString(length int) string
- func GetCredHelperKey() (string, error)
- func SendNotification(conn *Connection, note Notification) error
- func StoreCredHelperKey(keys string) error
- type ConfigClient
- type ConfigGetter
- type Connection
- type Message
- type Notification
- type PMB
- func (pmb *PMB) BrokerURI() string
- func (pmb *PMB) ConnectClient(id string, checkKey bool) (*Connection, error)
- func (pmb *PMB) ConnectIntroducer(id string) (*Connection, error)
- func (pmb *PMB) ConnectSubClient(conn *Connection, sub string) (*Connection, error)
- func (pmb *PMB) CopyKey(id string) (*Connection, error)
- func (pmb *PMB) GetConfigKey() string
- func (pmb *PMB) GetConnection(id string, isIntroducer bool) (*Connection, error)
- type PMBConfig
- type RealConfigClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCredHelperKey ¶
func ClearCredHelperKey() error
ClearCredHelperKey tries to clear the key using the docker-credential-* set of utilities, as discovered by crocker (https://github.com/justone/crocker).
func GenerateRandomID ¶
func GenerateRandomString ¶
func GetCredHelperKey ¶
GetCredHelperKey tries to retrieve the key from the docker-credential-* set of utilities, as discovered by crocker (https://github.com/justone/crocker).
func SendNotification ¶
func SendNotification(conn *Connection, note Notification) error
func StoreCredHelperKey ¶
StoreCredHelperKey tries to store the key using the docker-credential-* set of utilities, as discovered by crocker (https://github.com/justone/crocker).
Types ¶
type ConfigClient ¶
type ConfigGetter ¶
type Connection ¶
type Notification ¶
type PMB ¶
type PMB struct {
// contains filtered or unexported fields
}
func (*PMB) ConnectClient ¶
func (pmb *PMB) ConnectClient(id string, checkKey bool) (*Connection, error)
func (*PMB) ConnectIntroducer ¶
func (pmb *PMB) ConnectIntroducer(id string) (*Connection, error)
func (*PMB) ConnectSubClient ¶
func (pmb *PMB) ConnectSubClient(conn *Connection, sub string) (*Connection, error)
func (*PMB) GetConfigKey ¶
func (*PMB) GetConnection ¶
func (pmb *PMB) GetConnection(id string, isIntroducer bool) (*Connection, error)
Deprecated
type RealConfigClient ¶
type RealConfigClient struct {
// contains filtered or unexported fields
}
func NewDefaultConfigClient ¶
func NewDefaultConfigClient() (*RealConfigClient, error)
Click to show internal directories.
Click to hide internal directories.