Documentation ¶
Index ¶
- Constants
- func IsTypeTypeHostSensor(object map[string]interface{}) bool
- type HostSensorDataEnvelope
- func (hsde *HostSensorDataEnvelope) GetApiVersion() string
- func (hsde *HostSensorDataEnvelope) GetData() json.RawMessage
- func (hsde *HostSensorDataEnvelope) GetID() string
- func (hsde *HostSensorDataEnvelope) GetKind() string
- func (hsde *HostSensorDataEnvelope) GetName() string
- func (hsde *HostSensorDataEnvelope) GetNamespace() string
- func (hsde *HostSensorDataEnvelope) GetObject() map[string]interface{}
- func (hsde *HostSensorDataEnvelope) GetObjectType() workloadinterface.ObjectType
- func (hsde *HostSensorDataEnvelope) GetWorkload() map[string]interface{}
- func (hsde *HostSensorDataEnvelope) SetApiVersion(apiVersion string)
- func (hsde *HostSensorDataEnvelope) SetData(data json.RawMessage)
- func (hsde *HostSensorDataEnvelope) SetKind(kind string)
- func (hsde *HostSensorDataEnvelope) SetName(name string)
- func (hsde *HostSensorDataEnvelope) SetNamespace(string)
- func (hsde *HostSensorDataEnvelope) SetObject(object map[string]interface{})
- func (hsde *HostSensorDataEnvelope) SetWorkload(object map[string]interface{})
- type HostSensorMetadata
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.