Documentation ¶
Index ¶
Constants ¶
View Source
const ( RunKubernetesManifestEndpoint = "/Scan/RunKubernetesManifests" // A valid result would come back as a '2' ValidScanResult = uint32(2) )
View Source
const ExchangeRegistrationTokenEndpoint = "/AgentManager/ExchangeRegistrationToken"
View Source
const HealthCheckEndpoint = "/Health/Check"
Variables ¶
This section is empty.
Functions ¶
func DefaultHttpClient ¶
Types ¶
type Client ¶
type Client interface { ExchangeRegistrationToken(context.Context, *ExchangeRegistrationTokenInput) (*ExchangeRegistrationTokenOutput, error) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) RunKubernetesManifest(context.Context, *KubernetesManifestJob) (*ScanResult, error) }
func NewClient ¶
func NewClient(opts ClientOptions) Client
type ClientOptions ¶
type ExchangeRegistrationTokenInput ¶
type ExchangeRegistrationTokenInput struct { // JWT token, only available during creation Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` }
ExchangeRegistrationTokenInput is used for converting a JWT to a Mondoo serivce account
type ExchangeRegistrationTokenOutput ¶
type ExchangeRegistrationTokenOutput struct {
ServiceAccount string `json:"serviceAccount,omitempty"`
}
type HealthCheckRequest ¶
type HealthCheckRequest struct{}
type HealthCheckResponse ¶
type KubernetesManifestJob ¶
type ScanResult ¶
type Score ¶
type Score struct { QrId string `json:"qr_id,omitempty"` Type uint32 `json:"type,omitempty"` Value uint32 `json:"value,omitempty"` Weight uint32 `json:"weight,omitempty"` ScoreCompletion uint32 `json:"score_completion,omitempty"` DataTotal uint32 `json:"data_total,omitempty"` DataCompletion uint32 `json:"data_completion,omitempty"` Message string `json:"message,omitempty"` }
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.