models

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2020 License: AGPL-3.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisType

type AnalysisType string

AnalysisType analysis type

swagger:model AnalysisType

const (

	// AnalysisTypePOLICY captures enum value "POLICY"
	AnalysisTypePOLICY AnalysisType = "POLICY"

	// AnalysisTypeRULE captures enum value "RULE"
	AnalysisTypeRULE AnalysisType = "RULE"
)

func (AnalysisType) Validate

func (m AnalysisType) Validate(formats strfmt.Registry) error

Validate validates this analysis type

type AutoRemediationID

type AutoRemediationID string

AutoRemediationID When a resource fails the policy, trigger the remediation with this ID

swagger:model autoRemediationId

func (AutoRemediationID) Validate

func (m AutoRemediationID) Validate(formats strfmt.Registry) error

Validate validates this auto remediation Id

type AutoRemediationParameters

type AutoRemediationParameters map[string]string

AutoRemediationParameters Configuration parameters passed to the remediation handler

swagger:model autoRemediationParameters

func (AutoRemediationParameters) Validate

func (m AutoRemediationParameters) Validate(formats strfmt.Registry) error

Validate validates this auto remediation parameters

type Base64zipfile

type Base64zipfile string

Base64zipfile Base64-encoded zipfile with a policy bundle

swagger:model base64zipfile

func (Base64zipfile) Validate

func (m Base64zipfile) Validate(formats strfmt.Registry) error

Validate validates this base64zipfile

type Body

type Body string

Body Python policy source code

swagger:model body

func (Body) Validate

func (m Body) Validate(formats strfmt.Registry) error

Validate validates this body

type BulkUpload

type BulkUpload struct {

	// data
	// Required: true
	Data Base64zipfile `json:"data"`

	// user Id
	// Required: true
	UserID UserID `json:"userId"`
}

BulkUpload bulk upload

swagger:model BulkUpload

func (*BulkUpload) MarshalBinary

func (m *BulkUpload) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkUpload) UnmarshalBinary

func (m *BulkUpload) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkUpload) Validate

func (m *BulkUpload) Validate(formats strfmt.Registry) error

Validate validates this bulk upload

type BulkUploadResult

type BulkUploadResult struct {

	// modified policies
	// Required: true
	// Minimum: 0
	ModifiedPolicies *int64 `json:"modifiedPolicies"`

	// modified rules
	// Required: true
	// Minimum: 0
	ModifiedRules *int64 `json:"modifiedRules"`

	// new policies
	// Required: true
	// Minimum: 0
	NewPolicies *int64 `json:"newPolicies"`

	// new rules
	// Required: true
	// Minimum: 0
	NewRules *int64 `json:"newRules"`

	// total policies
	// Required: true
	// Minimum: 0
	TotalPolicies *int64 `json:"totalPolicies"`

	// total rules
	// Required: true
	// Minimum: 0
	TotalRules *int64 `json:"totalRules"`
}

BulkUploadResult bulk upload result

swagger:model BulkUploadResult

func (*BulkUploadResult) MarshalBinary

func (m *BulkUploadResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkUploadResult) UnmarshalBinary

func (m *BulkUploadResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkUploadResult) Validate

func (m *BulkUploadResult) Validate(formats strfmt.Registry) error

Validate validates this bulk upload result

type ComplianceStatus

type ComplianceStatus string

ComplianceStatus Pass/fail compliance status

swagger:model complianceStatus

const (

	// ComplianceStatusERROR captures enum value "ERROR"
	ComplianceStatusERROR ComplianceStatus = "ERROR"

	// ComplianceStatusFAIL captures enum value "FAIL"
	ComplianceStatusFAIL ComplianceStatus = "FAIL"

	// ComplianceStatusPASS captures enum value "PASS"
	ComplianceStatusPASS ComplianceStatus = "PASS"
)

func (ComplianceStatus) Validate

func (m ComplianceStatus) Validate(formats strfmt.Registry) error

Validate validates this compliance status

type DedupPeriodMinutes added in v1.0.0

type DedupPeriodMinutes int64

DedupPeriodMinutes The time in minutes for which we deduplicate events when generating alerts for log analysis

swagger:model dedupPeriodMinutes

func (DedupPeriodMinutes) Validate added in v1.0.0

func (m DedupPeriodMinutes) Validate(formats strfmt.Registry) error

Validate validates this dedup period minutes

type DeleteEntry

type DeleteEntry struct {

	// id
	// Required: true
	ID ID `json:"id"`
}

DeleteEntry delete entry

swagger:model DeleteEntry

func (*DeleteEntry) MarshalBinary

func (m *DeleteEntry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteEntry) UnmarshalBinary

func (m *DeleteEntry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteEntry) Validate

func (m *DeleteEntry) Validate(formats strfmt.Registry) error

Validate validates this delete entry

type DeletePolicies

type DeletePolicies struct {

	// policies
	// Required: true
	// Max Items: 1000
	// Min Items: 1
	// Unique: true
	Policies []*DeleteEntry `json:"policies"`
}

DeletePolicies delete policies

swagger:model DeletePolicies

func (*DeletePolicies) MarshalBinary

func (m *DeletePolicies) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePolicies) UnmarshalBinary

func (m *DeletePolicies) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePolicies) Validate

func (m *DeletePolicies) Validate(formats strfmt.Registry) error

Validate validates this delete policies

type Description

type Description string

Description Summary of the policy and its purpose

swagger:model description

func (Description) Validate

func (m Description) Validate(formats strfmt.Registry) error

Validate validates this description

type DisplayName

type DisplayName string

DisplayName Optional user-friendly policy name

swagger:model displayName

func (DisplayName) Validate

func (m DisplayName) Validate(formats strfmt.Registry) error

Validate validates this display name

type Enabled

type Enabled bool

Enabled True if the policy is currently being evaluated

swagger:model enabled

func (Enabled) Validate

func (m Enabled) Validate(formats strfmt.Registry) error

Validate validates this enabled

type EnabledPolicies

type EnabledPolicies struct {

	// policies
	// Required: true
	Policies []*EnabledPolicy `json:"policies"`
}

EnabledPolicies enabled policies

swagger:model EnabledPolicies

func (*EnabledPolicies) MarshalBinary

func (m *EnabledPolicies) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnabledPolicies) UnmarshalBinary

func (m *EnabledPolicies) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnabledPolicies) Validate

func (m *EnabledPolicies) Validate(formats strfmt.Registry) error

Validate validates this enabled policies

type EnabledPolicy

type EnabledPolicy struct {

	// body
	Body Body `json:"body,omitempty"`

	// dedup period minutes
	DedupPeriodMinutes DedupPeriodMinutes `json:"dedupPeriodMinutes,omitempty"`

	// id
	ID ID `json:"id,omitempty"`

	// resource types
	ResourceTypes TypeSet `json:"resourceTypes,omitempty"`

	// severity
	Severity Severity `json:"severity,omitempty"`

	// suppressions
	Suppressions Suppressions `json:"suppressions,omitempty"`

	// version Id
	VersionID VersionID `json:"versionId,omitempty"`
}

EnabledPolicy enabled policy

swagger:model EnabledPolicy

func (*EnabledPolicy) MarshalBinary

func (m *EnabledPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EnabledPolicy) UnmarshalBinary

func (m *EnabledPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EnabledPolicy) Validate

func (m *EnabledPolicy) Validate(formats strfmt.Registry) error

Validate validates this enabled policy

type Error

type Error struct {

	// Error message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ID

type ID string

ID User-specified unique rule/policy ID

swagger:model id

func (ID) Validate

func (m ID) Validate(formats strfmt.Registry) error

Validate validates this id

type ModifyTime

type ModifyTime strfmt.DateTime

ModifyTime Policy modification timestamp

swagger:model modifyTime

func (*ModifyTime) MarshalBinary

func (m *ModifyTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ModifyTime) MarshalJSON

func (m ModifyTime) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a ModifyTime value as JSON output

func (*ModifyTime) UnmarshalBinary

func (m *ModifyTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModifyTime) UnmarshalJSON

func (m *ModifyTime) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a ModifyTime value from JSON input

func (ModifyTime) Validate

func (m ModifyTime) Validate(formats strfmt.Registry) error

Validate validates this modify time

type Paging

type Paging struct {

	// this page
	// Required: true
	// Minimum: 1
	ThisPage *int64 `json:"thisPage"`

	// total items
	// Required: true
	// Minimum: 1
	TotalItems *int64 `json:"totalItems"`

	// total pages
	// Required: true
	// Minimum: 1
	TotalPages *int64 `json:"totalPages"`
}

Paging paging

swagger:model Paging

func (*Paging) MarshalBinary

func (m *Paging) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Paging) UnmarshalBinary

func (m *Paging) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Paging) Validate

func (m *Paging) Validate(formats strfmt.Registry) error

Validate validates this paging

type Policy

type Policy struct {

	// auto remediation Id
	// Required: true
	AutoRemediationID AutoRemediationID `json:"autoRemediationId"`

	// auto remediation parameters
	// Required: true
	AutoRemediationParameters AutoRemediationParameters `json:"autoRemediationParameters"`

	// body
	// Required: true
	Body Body `json:"body"`

	// compliance status
	// Required: true
	ComplianceStatus ComplianceStatus `json:"complianceStatus"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt ModifyTime `json:"createdAt"`

	// created by
	// Required: true
	CreatedBy UserID `json:"createdBy"`

	// description
	// Required: true
	Description Description `json:"description"`

	// display name
	// Required: true
	DisplayName DisplayName `json:"displayName"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// last modified
	// Required: true
	// Format: date-time
	LastModified ModifyTime `json:"lastModified"`

	// last modified by
	// Required: true
	LastModifiedBy UserID `json:"lastModifiedBy"`

	// reference
	// Required: true
	Reference Reference `json:"reference"`

	// resource types
	// Required: true
	ResourceTypes TypeSet `json:"resourceTypes"`

	// runbook
	// Required: true
	Runbook Runbook `json:"runbook"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// suppressions
	// Required: true
	Suppressions Suppressions `json:"suppressions"`

	// tags
	// Required: true
	Tags Tags `json:"tags"`

	// tests
	// Required: true
	Tests TestSuite `json:"tests"`

	// version Id
	// Required: true
	VersionID VersionID `json:"versionId"`
}

Policy policy

swagger:model Policy

func (*Policy) MarshalBinary

func (m *Policy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Policy) UnmarshalBinary

func (m *Policy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Policy) Validate

func (m *Policy) Validate(formats strfmt.Registry) error

Validate validates this policy

type PolicyList

type PolicyList struct {

	// paging
	// Required: true
	Paging *Paging `json:"paging"`

	// policies
	// Required: true
	Policies []*PolicySummary `json:"policies"`
}

PolicyList policy list

swagger:model PolicyList

func (*PolicyList) MarshalBinary

func (m *PolicyList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PolicyList) UnmarshalBinary

func (m *PolicyList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PolicyList) Validate

func (m *PolicyList) Validate(formats strfmt.Registry) error

Validate validates this policy list

type PolicySummary

type PolicySummary struct {

	// auto remediation Id
	// Required: true
	AutoRemediationID AutoRemediationID `json:"autoRemediationId"`

	// auto remediation parameters
	// Required: true
	AutoRemediationParameters AutoRemediationParameters `json:"autoRemediationParameters"`

	// compliance status
	// Required: true
	ComplianceStatus ComplianceStatus `json:"complianceStatus"`

	// display name
	// Required: true
	DisplayName DisplayName `json:"displayName"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// last modified
	// Required: true
	// Format: date-time
	LastModified ModifyTime `json:"lastModified"`

	// resource types
	// Required: true
	ResourceTypes TypeSet `json:"resourceTypes"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// suppressions
	// Required: true
	Suppressions Suppressions `json:"suppressions"`

	// tags
	// Required: true
	Tags Tags `json:"tags"`
}

PolicySummary policy summary

swagger:model PolicySummary

func (*PolicySummary) MarshalBinary

func (m *PolicySummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PolicySummary) UnmarshalBinary

func (m *PolicySummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PolicySummary) Validate

func (m *PolicySummary) Validate(formats strfmt.Registry) error

Validate validates this policy summary

type Reference

type Reference string

Reference External documentation motivating the need for this policy

swagger:model reference

func (Reference) Validate

func (m Reference) Validate(formats strfmt.Registry) error

Validate validates this reference

type Rule

type Rule struct {

	// body
	// Required: true
	Body Body `json:"body"`

	// created at
	// Required: true
	// Format: date-time
	CreatedAt ModifyTime `json:"createdAt"`

	// created by
	// Required: true
	CreatedBy UserID `json:"createdBy"`

	// dedup period minutes
	// Required: true
	DedupPeriodMinutes DedupPeriodMinutes `json:"dedupPeriodMinutes"`

	// description
	// Required: true
	Description Description `json:"description"`

	// display name
	// Required: true
	DisplayName DisplayName `json:"displayName"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// last modified
	// Required: true
	// Format: date-time
	LastModified ModifyTime `json:"lastModified"`

	// last modified by
	// Required: true
	LastModifiedBy UserID `json:"lastModifiedBy"`

	// log types
	// Required: true
	LogTypes TypeSet `json:"logTypes"`

	// reference
	// Required: true
	Reference Reference `json:"reference"`

	// runbook
	// Required: true
	Runbook Runbook `json:"runbook"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// tags
	// Required: true
	Tags Tags `json:"tags"`

	// tests
	// Required: true
	Tests TestSuite `json:"tests"`

	// version Id
	// Required: true
	VersionID VersionID `json:"versionId"`
}

Rule rule

swagger:model Rule

func (*Rule) MarshalBinary

func (m *Rule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

func (m *Rule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rule) Validate

func (m *Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

type RuleList

type RuleList struct {

	// paging
	// Required: true
	Paging *Paging `json:"paging"`

	// rules
	// Required: true
	Rules []*RuleSummary `json:"rules"`
}

RuleList rule list

swagger:model RuleList

func (*RuleList) MarshalBinary

func (m *RuleList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RuleList) UnmarshalBinary

func (m *RuleList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RuleList) Validate

func (m *RuleList) Validate(formats strfmt.Registry) error

Validate validates this rule list

type RuleSummary

type RuleSummary struct {

	// display name
	// Required: true
	DisplayName DisplayName `json:"displayName"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// last modified
	// Required: true
	// Format: date-time
	LastModified ModifyTime `json:"lastModified"`

	// log types
	// Required: true
	LogTypes TypeSet `json:"logTypes"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// tags
	// Required: true
	Tags Tags `json:"tags"`
}

RuleSummary rule summary

swagger:model RuleSummary

func (*RuleSummary) MarshalBinary

func (m *RuleSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RuleSummary) UnmarshalBinary

func (m *RuleSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RuleSummary) Validate

func (m *RuleSummary) Validate(formats strfmt.Registry) error

Validate validates this rule summary

type Runbook

type Runbook string

Runbook Internal documenation about what to do when a policy fails

swagger:model runbook

func (Runbook) Validate

func (m Runbook) Validate(formats strfmt.Registry) error

Validate validates this runbook

type Severity

type Severity string

Severity Policy severity

swagger:model severity

const (

	// SeverityINFO captures enum value "INFO"
	SeverityINFO Severity = "INFO"

	// SeverityLOW captures enum value "LOW"
	SeverityLOW Severity = "LOW"

	// SeverityMEDIUM captures enum value "MEDIUM"
	SeverityMEDIUM Severity = "MEDIUM"

	// SeverityHIGH captures enum value "HIGH"
	SeverityHIGH Severity = "HIGH"

	// SeverityCRITICAL captures enum value "CRITICAL"
	SeverityCRITICAL Severity = "CRITICAL"
)

func (Severity) Validate

func (m Severity) Validate(formats strfmt.Registry) error

Validate validates this severity

type Suppress

type Suppress struct {

	// policy ids
	// Required: true
	// Min Items: 1
	PolicyIds []ID `json:"policyIds"`

	// resource patterns
	// Required: true
	ResourcePatterns Suppressions `json:"resourcePatterns"`
}

Suppress suppress

swagger:model Suppress

func (*Suppress) MarshalBinary

func (m *Suppress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Suppress) UnmarshalBinary

func (m *Suppress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Suppress) Validate

func (m *Suppress) Validate(formats strfmt.Registry) error

Validate validates this suppress

type Suppressions

type Suppressions []string

Suppressions List of resource ID regexes that are excepted from this policy. The policy will still be evaluated, but failures will not trigger alerts nor remediations.

swagger:model suppressions

func (Suppressions) Validate

func (m Suppressions) Validate(formats strfmt.Registry) error

Validate validates this suppressions

type Tags

type Tags []string

Tags List of tags to categorize the policy

swagger:model tags

func (Tags) Validate

func (m Tags) Validate(formats strfmt.Registry) error

Validate validates this tags

type TestErrorResult

type TestErrorResult struct {

	// error message
	ErrorMessage string `json:"errorMessage,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

TestErrorResult A combination of a test name and the error the test raised

swagger:model testErrorResult

func (*TestErrorResult) MarshalBinary

func (m *TestErrorResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestErrorResult) UnmarshalBinary

func (m *TestErrorResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestErrorResult) Validate

func (m *TestErrorResult) Validate(formats strfmt.Registry) error

Validate validates this test error result

type TestExpectedResult

type TestExpectedResult bool

TestExpectedResult The expected outcome when running a unit test

swagger:model testExpectedResult

func (TestExpectedResult) Validate

func (m TestExpectedResult) Validate(formats strfmt.Registry) error

Validate validates this test expected result

type TestName

type TestName string

TestName The name of a unit test

swagger:model testName

func (TestName) Validate

func (m TestName) Validate(formats strfmt.Registry) error

Validate validates this test name

type TestPolicy

type TestPolicy struct {

	// analysis type
	// Required: true
	AnalysisType AnalysisType `json:"analysisType"`

	// body
	// Required: true
	Body Body `json:"body"`

	// resource types
	// Required: true
	ResourceTypes TypeSet `json:"resourceTypes"`

	// tests
	// Required: true
	Tests TestSuite `json:"tests"`
}

TestPolicy test policy

swagger:model TestPolicy

func (*TestPolicy) MarshalBinary

func (m *TestPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestPolicy) UnmarshalBinary

func (m *TestPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestPolicy) Validate

func (m *TestPolicy) Validate(formats strfmt.Registry) error

Validate validates this test policy

type TestPolicyResult

type TestPolicyResult struct {

	// test summary
	// Required: true
	TestSummary TestSummary `json:"testSummary"`

	// tests errored
	// Required: true
	TestsErrored TestsErrored `json:"testsErrored"`

	// tests failed
	// Required: true
	TestsFailed TestsFailed `json:"testsFailed"`

	// tests passed
	// Required: true
	TestsPassed TestsPassed `json:"testsPassed"`
}

TestPolicyResult test policy result

swagger:model TestPolicyResult

func (*TestPolicyResult) MarshalBinary

func (m *TestPolicyResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TestPolicyResult) UnmarshalBinary

func (m *TestPolicyResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TestPolicyResult) Validate

func (m *TestPolicyResult) Validate(formats strfmt.Registry) error

Validate validates this test policy result

type TestResource

type TestResource string

TestResource The resource (or log event) the unit test is running against

swagger:model testResource

func (TestResource) Validate

func (m TestResource) Validate(formats strfmt.Registry) error

Validate validates this test resource

type TestResourceType

type TestResourceType string

TestResourceType The resource or log type of an individual unit test

swagger:model testResourceType

func (TestResourceType) Validate

func (m TestResourceType) Validate(formats strfmt.Registry) error

Validate validates this test resource type

type TestSuite

type TestSuite []*UnitTest

TestSuite test suite

swagger:model TestSuite

func (TestSuite) Validate

func (m TestSuite) Validate(formats strfmt.Registry) error

Validate validates this test suite

type TestSummary

type TestSummary bool

TestSummary True if all tests passed

swagger:model testSummary

func (TestSummary) Validate

func (m TestSummary) Validate(formats strfmt.Registry) error

Validate validates this test summary

type TestsErrored

type TestsErrored []*TestErrorResult

TestsErrored List of names of tests that raised an error, along with their error message

swagger:model testsErrored

func (TestsErrored) Validate

func (m TestsErrored) Validate(formats strfmt.Registry) error

Validate validates this tests errored

type TestsFailed

type TestsFailed []string

TestsFailed List of names of tests that failed

swagger:model testsFailed

func (TestsFailed) Validate

func (m TestsFailed) Validate(formats strfmt.Registry) error

Validate validates this tests failed

type TestsPassed

type TestsPassed []string

TestsPassed List of names of tests that passed

swagger:model testsPassed

func (TestsPassed) Validate

func (m TestsPassed) Validate(formats strfmt.Registry) error

Validate validates this tests passed

type TypeSet

type TypeSet []string

TypeSet List of resource/log types to which this policy applies

swagger:model TypeSet

func (TypeSet) Validate

func (m TypeSet) Validate(formats strfmt.Registry) error

Validate validates this type set

type UnitTest

type UnitTest struct {

	// expected result
	// Required: true
	ExpectedResult TestExpectedResult `json:"expectedResult"`

	// name
	// Required: true
	Name TestName `json:"name"`

	// resource
	// Required: true
	Resource TestResource `json:"resource"`

	// resource type
	// Required: true
	ResourceType TestResourceType `json:"resourceType"`
}

UnitTest unit test

swagger:model UnitTest

func (*UnitTest) MarshalBinary

func (m *UnitTest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnitTest) UnmarshalBinary

func (m *UnitTest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnitTest) Validate

func (m *UnitTest) Validate(formats strfmt.Registry) error

Validate validates this unit test

type UpdatePolicy

type UpdatePolicy struct {

	// auto remediation Id
	AutoRemediationID AutoRemediationID `json:"autoRemediationId,omitempty"`

	// auto remediation parameters
	AutoRemediationParameters AutoRemediationParameters `json:"autoRemediationParameters,omitempty"`

	// body
	// Required: true
	Body Body `json:"body"`

	// description
	Description Description `json:"description,omitempty"`

	// display name
	DisplayName DisplayName `json:"displayName,omitempty"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// reference
	Reference Reference `json:"reference,omitempty"`

	// resource types
	ResourceTypes TypeSet `json:"resourceTypes,omitempty"`

	// runbook
	Runbook Runbook `json:"runbook,omitempty"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// suppressions
	Suppressions Suppressions `json:"suppressions,omitempty"`

	// tags
	Tags Tags `json:"tags,omitempty"`

	// tests
	Tests TestSuite `json:"tests,omitempty"`

	// user Id
	// Required: true
	UserID UserID `json:"userId"`
}

UpdatePolicy update policy

swagger:model UpdatePolicy

func (*UpdatePolicy) MarshalBinary

func (m *UpdatePolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePolicy) UnmarshalBinary

func (m *UpdatePolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePolicy) Validate

func (m *UpdatePolicy) Validate(formats strfmt.Registry) error

Validate validates this update policy

type UpdateRule

type UpdateRule struct {

	// body
	// Required: true
	Body Body `json:"body"`

	// dedup period minutes
	DedupPeriodMinutes DedupPeriodMinutes `json:"dedupPeriodMinutes,omitempty"`

	// description
	Description Description `json:"description,omitempty"`

	// display name
	DisplayName DisplayName `json:"displayName,omitempty"`

	// enabled
	// Required: true
	Enabled Enabled `json:"enabled"`

	// id
	// Required: true
	ID ID `json:"id"`

	// log types
	LogTypes TypeSet `json:"logTypes,omitempty"`

	// reference
	Reference Reference `json:"reference,omitempty"`

	// runbook
	Runbook Runbook `json:"runbook,omitempty"`

	// severity
	// Required: true
	Severity Severity `json:"severity"`

	// tags
	Tags Tags `json:"tags,omitempty"`

	// tests
	Tests TestSuite `json:"tests,omitempty"`

	// user Id
	// Required: true
	UserID UserID `json:"userId"`
}

UpdateRule update rule

swagger:model UpdateRule

func (*UpdateRule) MarshalBinary

func (m *UpdateRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateRule) UnmarshalBinary

func (m *UpdateRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateRule) Validate

func (m *UpdateRule) Validate(formats strfmt.Registry) error

Validate validates this update rule

type UserID

type UserID string

UserID Panther user ID that created or modified the policy

swagger:model userId

func (UserID) Validate

func (m UserID) Validate(formats strfmt.Registry) error

Validate validates this user Id

type VersionID

type VersionID string

VersionID Policy version ID

swagger:model versionId

func (VersionID) Validate

func (m VersionID) Validate(formats strfmt.Registry) error

Validate validates this version Id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL