src/go/plugin/go.d/modules/ceph/auth.go
Method Ceph.authCheck
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *Ceph) authCheck() (bool, error) {
// https://docs.ceph.com/en/reef/mgr/ceph_api/#post--api-auth-check
if c.token == "" {
return false, nil
}
Method Ceph.authLogin
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *Ceph) authLogin() (string, error) {
// https://docs.ceph.com/en/reef/mgr/ceph_api/#post--api-auth
req, err := func() (*http.Request, error) {
var credentials = struct {
Method Ceph.authLogout
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *Ceph) authLogout() error {
// https://docs.ceph.com/en/reef/mgr/ceph_api/#post--api-auth-logout
if c.token == "" {
return nil