hostsensor

package
v0.0.243 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GroupHostSensor = "hostdata.kubescape.cloud"
	Version         = "v1beta0"
)
View Source
const TypeHostSensor workloadinterface.ObjectType = "HostSensor"

Variables

This section is empty.

Functions

func IsTypeTypeHostSensor

func IsTypeTypeHostSensor(object map[string]interface{}) bool

Types

type HostSensorDataEnvelope

type HostSensorDataEnvelope struct {
	ApiVersion string             `json:"apiVersion"`
	Kind       string             `json:"kind"`
	Metadata   HostSensorMetadata `json:"metadata"`
	Data       json.RawMessage    `json:"data"`
}

func NewHostSensorDataEnvelope

func NewHostSensorDataEnvelope(object map[string]interface{}) *HostSensorDataEnvelope

NewHostSensorDataEnvelope construct a HostSensorDataEnvelope from map[string]interface{}. If the map does not match the object, will return nil

func (*HostSensorDataEnvelope) GetApiVersion

func (hsde *HostSensorDataEnvelope) GetApiVersion() string

func (*HostSensorDataEnvelope) GetData

func (hsde *HostSensorDataEnvelope) GetData() json.RawMessage

func (*HostSensorDataEnvelope) GetID

func (hsde *HostSensorDataEnvelope) GetID() string

func (*HostSensorDataEnvelope) GetKind

func (hsde *HostSensorDataEnvelope) GetKind() string

func (*HostSensorDataEnvelope) GetName

func (hsde *HostSensorDataEnvelope) GetName() string

func (*HostSensorDataEnvelope) GetNamespace

func (hsde *HostSensorDataEnvelope) GetNamespace() string

GetNamespace kept for compatibility with the IMetdata interface

func (*HostSensorDataEnvelope) GetObject

func (hsde *HostSensorDataEnvelope) GetObject() map[string]interface{}

func (*HostSensorDataEnvelope) GetObjectType

func (hsde *HostSensorDataEnvelope) GetObjectType() workloadinterface.ObjectType

func (*HostSensorDataEnvelope) GetWorkload

func (hsde *HostSensorDataEnvelope) GetWorkload() map[string]interface{}

GetWorkload - DEPRECATED - kept for compatibility with the IMetdata interface

func (*HostSensorDataEnvelope) SetApiVersion

func (hsde *HostSensorDataEnvelope) SetApiVersion(apiVersion string)

func (*HostSensorDataEnvelope) SetData

func (hsde *HostSensorDataEnvelope) SetData(data json.RawMessage)

func (*HostSensorDataEnvelope) SetKind

func (hsde *HostSensorDataEnvelope) SetKind(kind string)

func (*HostSensorDataEnvelope) SetName

func (hsde *HostSensorDataEnvelope) SetName(name string)

func (*HostSensorDataEnvelope) SetNamespace

func (hsde *HostSensorDataEnvelope) SetNamespace(string)

SetNamespace kept for compatibility with the IMetdata interface

func (*HostSensorDataEnvelope) SetObject

func (hsde *HostSensorDataEnvelope) SetObject(object map[string]interface{})

SetObject set to HostSensorDataEnvelope object

func (*HostSensorDataEnvelope) SetWorkload

func (hsde *HostSensorDataEnvelope) SetWorkload(object map[string]interface{})

type HostSensorMetadata

type HostSensorMetadata struct {
	Name string `json:"name"` // nodeName
}

func (*HostSensorMetadata) GetName

func (hostSensorMetadata *HostSensorMetadata) GetName() string

func (*HostSensorMetadata) SetName

func (hostSensorMetadata *HostSensorMetadata) SetName(name string)

Jump to

Keyboard shortcuts

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