models

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: AGPL-3.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 AddResourceEntry

type AddResourceEntry struct {

	// attributes
	// Required: true
	Attributes Attributes `json:"attributes"`

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

	// integration Id
	// Required: true
	IntegrationID IntegrationID `json:"integrationId"`

	// integration type
	// Required: true
	IntegrationType IntegrationType `json:"integrationType"`

	// type
	// Required: true
	Type ResourceType `json:"type"`
}

AddResourceEntry add resource entry

swagger:model AddResourceEntry

func (*AddResourceEntry) MarshalBinary

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

MarshalBinary interface implementation

func (*AddResourceEntry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddResourceEntry) Validate

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

Validate validates this add resource entry

type AddResources

type AddResources struct {

	// resources
	// Required: true
	// Max Items: 500
	// Min Items: 1
	Resources []*AddResourceEntry `json:"resources"`
}

AddResources add resources

swagger:model AddResources

func (*AddResources) MarshalBinary

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

MarshalBinary interface implementation

func (*AddResources) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddResources) Validate

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

Validate validates this add resources

type Attributes

type Attributes interface{}

Attributes Resource attributes

swagger:model attributes

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 DeleteEntry

type DeleteEntry struct {

	// id
	// Required: true
	ID ResourceID `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 DeleteResources

type DeleteResources struct {

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

DeleteResources delete resources

swagger:model DeleteResources

func (*DeleteResources) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteResources) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteResources) Validate

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

Validate validates this delete resources

type Deleted

type Deleted bool

Deleted True if the resource has been deleted

swagger:model deleted

func (Deleted) Validate

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

Validate validates this deleted

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 IntegrationID

type IntegrationID string

IntegrationID Resource is from this source integration

swagger:model integrationId

func (IntegrationID) Validate

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

Validate validates this integration Id

type IntegrationType

type IntegrationType string

IntegrationType Resource lives in this type of account

swagger:model integrationType

const (

	// IntegrationTypeAws captures enum value "aws"
	IntegrationTypeAws IntegrationType = "aws"
)

func (IntegrationType) Validate

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

Validate validates this integration type

type LastModified

type LastModified strfmt.DateTime

LastModified When the resource state was last updated in the Panther database

swagger:model lastModified

func (*LastModified) MarshalBinary

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

MarshalBinary interface implementation

func (LastModified) MarshalJSON

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

MarshalJSON retrieves a LastModified value as JSON output

func (*LastModified) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LastModified) UnmarshalJSON

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

UnmarshalJSON sets a LastModified value from JSON input

func (LastModified) Validate

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

Validate validates this last modified

type OrgOverview

type OrgOverview struct {

	// resources
	// Required: true
	Resources []*ResourceTypeSummary `json:"resources"`
}

OrgOverview org overview

swagger:model OrgOverview

func (*OrgOverview) MarshalBinary

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

MarshalBinary interface implementation

func (*OrgOverview) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrgOverview) Validate

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

Validate validates this org overview

type Paging

type Paging struct {

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

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

	// total pages
	// Required: true
	// Minimum: 0
	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 Resource

type Resource struct {

	// attributes
	// Required: true
	Attributes Attributes `json:"attributes"`

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

	// deleted
	// Required: true
	Deleted Deleted `json:"deleted"`

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

	// integration Id
	// Required: true
	IntegrationID IntegrationID `json:"integrationId"`

	// integration type
	// Required: true
	IntegrationType IntegrationType `json:"integrationType"`

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

	// type
	// Required: true
	Type ResourceType `json:"type"`
}

Resource resource

swagger:model Resource

func (*Resource) MarshalBinary

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

MarshalBinary interface implementation

func (*Resource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Resource) Validate

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

Validate validates this resource

type ResourceID

type ResourceID string

ResourceID Unique resource identifier

swagger:model resourceId

func (ResourceID) Validate

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

Validate validates this resource Id

type ResourceList

type ResourceList struct {

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

	// resources
	// Required: true
	Resources []*Resource `json:"resources"`
}

ResourceList resource list

swagger:model ResourceList

func (*ResourceList) MarshalBinary

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

MarshalBinary interface implementation

func (*ResourceList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResourceList) Validate

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

Validate validates this resource list

type ResourceType

type ResourceType string

ResourceType Resource type

swagger:model resourceType

func (ResourceType) Validate

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

Validate validates this resource type

type ResourceTypeSummary

type ResourceTypeSummary struct {

	// count
	// Required: true
	// Minimum: 0
	Count *int64 `json:"count"`

	// type
	// Required: true
	Type ResourceType `json:"type"`
}

ResourceTypeSummary resource type summary

swagger:model ResourceTypeSummary

func (*ResourceTypeSummary) MarshalBinary

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

MarshalBinary interface implementation

func (*ResourceTypeSummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResourceTypeSummary) Validate

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

Validate validates this resource type summary

Jump to

Keyboard shortcuts

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