Documentation ¶
Index ¶
- Constants
- func DefaultHttpClient() *http.Client
- type Client
- type ClientOptions
- type ExchangeRegistrationTokenInput
- type ExchangeRegistrationTokenOutput
- type File
- type HealthCheckRequest
- type HealthCheckResponse
- type IntegrationCheckInInput
- type IntegrationCheckInOutput
- type IntegrationRegisterInput
- type IntegrationRegisterOutput
- type KubernetesManifestJob
- type ScanResult
- type Score
- type ServiceAccountCredentials
Constants ¶
View Source
const ( RunKubernetesManifestEndpoint = "/Scan/RunKubernetesManifest" // A valid result would come back as a '2' ValidScanResult = uint32(2) )
View Source
const ExchangeRegistrationTokenEndpoint = "/AgentManager/ExchangeRegistrationToken"
View Source
const HealthCheckEndpoint = "/Health/Check"
View Source
const IntegrationCheckInEndpoint = "/IntegrationsManager/CheckIn"
View Source
const IntegrationRegisterEndpoint = "/IntegrationsManager/Register"
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) IntegrationRegister(context.Context, *IntegrationRegisterInput) (*IntegrationRegisterOutput, error) IntegrationCheckIn(context.Context, *IntegrationCheckInInput) (*IntegrationCheckInOutput, 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 IntegrationCheckInInput ¶ added in v0.2.10
type IntegrationCheckInInput struct { // Mrn should hold the MRN of the integration that is having the CheckIn() called for Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` // optional, ensure the client has the exact same configuration options // as the ones saved to the integration/db ConfigurationHash string `protobuf:"bytes,2,opt,name=configuration_hash,json=configurationHash,proto3" json:"configuration_hash,omitempty"` // source identifier for the integration, e.g. AWS account id Identifier string `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"` }
type IntegrationCheckInOutput ¶ added in v0.2.10
type IntegrationCheckInOutput struct { Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` // true if the configuration hash sent in matches the hash of the stored configuration ConfigurationMatch bool `protobuf:"varint,2,opt,name=configuration_match,json=configurationMatch,proto3" json:"configuration_match,omitempty"` }
type IntegrationRegisterInput ¶ added in v0.2.10
type IntegrationRegisterOutput ¶ added in v0.2.10
type IntegrationRegisterOutput struct { // Mrn is the integration MRN Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` // Creds holds all the Mondoo serivce account data Creds *ServiceAccountCredentials `protobuf:"bytes,2,opt,name=creds,proto3" json:"creds,omitempty"` }
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"` }
type ServiceAccountCredentials ¶ added in v0.2.10
type ServiceAccountCredentials struct { Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` SpaceMrn string `protobuf:"bytes,2,opt,name=space_mrn,json=spaceMrn,proto3" json:"space_mrn,omitempty"` PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` ApiEndpoint string `protobuf:"bytes,5,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,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.