(c *csconfig.Config)
| 57 | } |
| 58 | |
| 59 | func PAPI(c *csconfig.Config) error { |
| 60 | if err := CAPI(c); err != nil { |
| 61 | return err |
| 62 | } |
| 63 | |
| 64 | if err := CAPIRegistered(c); err != nil { |
| 65 | return err |
| 66 | } |
| 67 | |
| 68 | if c.API.Server.OnlineClient.Credentials.PapiURL == "" { |
| 69 | return errors.New("no PAPI URL in configuration") |
| 70 | } |
| 71 | |
| 72 | return nil |
| 73 | } |
| 74 | |
| 75 | func CAPIRegistered(c *csconfig.Config) error { |
| 76 | if c.API.Server.OnlineClient.Credentials == nil { |
no test coverage detected
searching dependent graphs…