v1

package
v2.0.177 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmoCivAdaptorMock

type ArmoCivAdaptorMock struct {
	// contains filtered or unexported fields
}

func NewArmoAdaptorMock

func NewArmoAdaptorMock() (*ArmoCivAdaptorMock, error)

func (*ArmoCivAdaptorMock) DescribeAdaptor

func (armoCivAdaptorMock *ArmoCivAdaptorMock) DescribeAdaptor() string

func (*ArmoCivAdaptorMock) GetImagesInformation

func (*ArmoCivAdaptorMock) GetImagesScanStatus

func (*ArmoCivAdaptorMock) GetImagesVulnerabilities

func (*ArmoCivAdaptorMock) Login

func (armoCivAdaptorMock *ArmoCivAdaptorMock) Login() error

type KSCivAdaptor

type KSCivAdaptor struct {
	// contains filtered or unexported fields
}

func NewKSAdaptor

func NewKSAdaptor(api *getter.KSCloudAPI) *KSCivAdaptor

func (*KSCivAdaptor) DescribeAdaptor

func (ksCivAdaptor *KSCivAdaptor) DescribeAdaptor() string

func (*KSCivAdaptor) GetImagesScanStatus

func (*KSCivAdaptor) Login

func (ksCivAdaptor *KSCivAdaptor) Login() error

type V2ListRequest

type V2ListRequest struct {
	// properties of the requested next page
	// Use ValidatePageProperties to set PageSize field
	PageSize *int `json:"pageSize,omitempty"`
	// One can leave it empty for 0, then call ValidatePageProperties
	PageNum *int `json:"pageNum,omitempty"`
	// The time window of the list to return. Default: since - beginning of the time, until - now.
	Since *time.Time `json:"since,omitempty"`
	Until *time.Time `json:"until,omitempty"`
	// Which elements of the list to return, each field can hold multiple values separated by comma
	// Example: ": {"severity": "High,Medium",		"type": "61539,30303"}
	// An empty map means "return the complete list"
	InnerFilters []map[string]string `json:"innerFilters,omitempty"`
	// How to order (sort) the list, field name + sort order (asc/desc), like https://www.w3schools.com/sql/sql_orderby.asp
	// Example: "timestamp:asc,severity:desc"
	OrderBy string `json:"orderBy,omitempty"`
	// Cursor to the next page of former request. Not supported yet
	// Cursor cannot be used with another parameters of this struct
	Cursor string `json:"cursor,omitempty"`
	// FieldsList allow us to return only subset of the source document fields
	// Don't expose FieldsList outside without well designed decision
	FieldsList              []string          `json:"includeFields,omitempty"`
	FieldsReverseKeywordMap map[string]string `json:"-,omitempty"`
}

Jump to

Keyboard shortcuts

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