mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
28 lines
527 B
Go
28 lines
527 B
Go
package apis
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// type Dashboard interface {
|
|
// OPAFRAMEWORKGet(string, bool) ([]opapolicy.Framework, error)
|
|
// }
|
|
|
|
// Connector - interface for any connector (BE/Portal and so on)
|
|
type Connector interface {
|
|
|
|
//may used for a more generic httpsend interface based method
|
|
GetBaseURL() string
|
|
GetLoginObj() *LoginObject
|
|
GetClient() *http.Client
|
|
|
|
Login() error
|
|
IsExpired() bool
|
|
|
|
HTTPSend(httpverb string,
|
|
endpoint string,
|
|
payload []byte,
|
|
f HTTPReqFunc,
|
|
qryData interface{}) ([]byte, error)
|
|
}
|