Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConfiguration = errors.New("invalid HTTP IAM configuration")
ErrInvalidConfiguration generated when Config has missing or invalid data
Functions ¶
func Configuration ¶
func Configuration(c Config) httpcli.ConfigMapOption
Configuration returns a functional option for an httpcli.ConfigMap
Types ¶
type Config ¶
type Config struct { ID string `json:"uid"` // ID PrivateKey string `json:"private_key"` // PrivateKey LoginEndpoint string `json:"login_endpoint"` // LoginEndpoint }
Config captures the configuration that allows mesos-dns to authenticate against some IAM endpoint.
func LoadFromFile ¶
LoadFromFile reads an IAM Config from a file (JSON format) on the local filesystem.
Click to show internal directories.
Click to hide internal directories.