Function
NewExampleConfig
(addr, user, password, realm string, insecure bool)
Source from the content-addressed store, hash-verified
| 18 | } |
| 19 | |
| 20 | func NewExampleConfig(addr, user, password, realm string, insecure bool) *ExampleConfig { |
| 21 | return &ExampleConfig{ |
| 22 | addr: addr, |
| 23 | user: user, |
| 24 | password: password, |
| 25 | realm: realm, |
| 26 | insecure: insecure, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (c *ExampleConfig) GetAddr() string { return c.addr } |
| 31 | func (c *ExampleConfig) GetUser() string { return c.user } |
Tested by
no test coverage detected