models

package
v0.0.0-...-46fbbb1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssessmentResponse

type AssessmentResponse struct {

	// details
	Details []*Details `json:"details"`

	// enforcements
	Enforcements []*Enforcement `json:"enforcements"`

	// passed
	Passed bool `json:"passed,omitempty"`

	// total
	Total int32 `json:"total,omitempty"`

	// vulnerable
	Vulnerable int32 `json:"vulnerable,omitempty"`
}

AssessmentResponse assessment response

swagger:model AssessmentResponse

func (*AssessmentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AssessmentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AssessmentResponse) Validate

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

Validate validates this assessment response

type Details

type Details struct {

	// baseline
	Baseline string `json:"baseline,omitempty"`

	// container
	// Required: true
	Container *string `json:"container"`

	// dimension
	Dimension string `json:"dimension,omitempty"`

	// failure
	// Required: true
	Failure *string `json:"failure"`

	// workload
	// Required: true
	Workload *string `json:"workload"`
}

Details details

swagger:model Details

func (*Details) MarshalBinary

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

MarshalBinary interface implementation

func (*Details) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Details) Validate

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

Validate validates this details

type Enforcement

type Enforcement struct {

	// kind
	// Required: true
	Kind *string `json:"kind"`

	// settings
	Settings string `json:"settings,omitempty"`

	// status
	// Required: true
	Status *string `json:"status"`
}

Enforcement enforcement

swagger:model Enforcement

func (*Enforcement) MarshalBinary

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

MarshalBinary interface implementation

func (*Enforcement) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Enforcement) Validate

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

Validate validates this enforcement

type NSWithPolicies

type NSWithPolicies struct {

	// name of inspection policies applied to the namespace
	Name string `json:"name,omitempty"`

	// policies
	Policies []string `json:"policies"`
}

NSWithPolicies n s with policies

swagger:model NSWithPolicies

func (*NSWithPolicies) MarshalBinary

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

MarshalBinary interface implementation

func (*NSWithPolicies) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NSWithPolicies) Validate

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

Validate validates this n s with policies

type StatusResponse

type StatusResponse struct {

	// status
	Status string `json:"status,omitempty"`

	// timestamp
	Timestamp string `json:"timestamp,omitempty"`
}

StatusResponse status response

swagger:model StatusResponse

func (*StatusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StatusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatusResponse) Validate

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

Validate validates this status response

Jump to

Keyboard shortcuts

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