Documentation ¶
Index ¶
- type HostSensorDataEnvelope
- func (hsde *HostSensorDataEnvelope) GetApiVersion() string
- 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) GetWorkload() map[string]interface{}
- func (hsde *HostSensorDataEnvelope) SetKind(val string)
- func (hsde *HostSensorDataEnvelope) SetName(val string)
- func (hsde *HostSensorDataEnvelope) SetNamespace(string)
- func (hsde *HostSensorDataEnvelope) SetObject(val map[string]interface{})
- func (hsde *HostSensorDataEnvelope) SetWorkload(val map[string]interface{})
- type HostSensorHandler
- func (hsh *HostSensorHandler) CollectResources() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) ForwardToPod(podName, path string) ([]byte, error)
- func (hsh *HostSensorHandler) GetKernelVersion() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) GetKubeletCommandLine() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) GetKubeletConfigurations() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) GetLinuxSecurityHardeningStatus() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) GetNamespace() string
- func (hsh *HostSensorHandler) GetOpenPortsList() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) GetOsReleaseFile() ([]HostSensorDataEnvelope, error)
- func (hsh *HostSensorHandler) HTTPGetToPod(podName, path string) ([]byte, error)
- func (hsh *HostSensorHandler) Init() error
- func (hsh *HostSensorHandler) TearDown() error
- type HostSensorHandlerMock
- type IHostSensor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostSensorDataEnvelope ¶
type HostSensorDataEnvelope struct { schema.GroupVersionResource NodeName string `json:"nodeName"` Data json.RawMessage `json:"data"` }
func (*HostSensorDataEnvelope) GetApiVersion ¶
func (hsde *HostSensorDataEnvelope) GetApiVersion() string
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
func (*HostSensorDataEnvelope) GetObject ¶
func (hsde *HostSensorDataEnvelope) GetObject() map[string]interface{}
func (*HostSensorDataEnvelope) GetWorkload ¶
func (hsde *HostSensorDataEnvelope) GetWorkload() map[string]interface{}
func (*HostSensorDataEnvelope) SetKind ¶
func (hsde *HostSensorDataEnvelope) SetKind(val string)
func (*HostSensorDataEnvelope) SetName ¶
func (hsde *HostSensorDataEnvelope) SetName(val string)
func (*HostSensorDataEnvelope) SetNamespace ¶
func (hsde *HostSensorDataEnvelope) SetNamespace(string)
func (*HostSensorDataEnvelope) SetObject ¶
func (hsde *HostSensorDataEnvelope) SetObject(val map[string]interface{})
func (*HostSensorDataEnvelope) SetWorkload ¶
func (hsde *HostSensorDataEnvelope) SetWorkload(val map[string]interface{})
type HostSensorHandler ¶
type HostSensorHandler struct { HostSensorPort int32 HostSensorPodNames map[string]string //map from pod names to node names IsReady <-chan bool //readonly chan DaemonSet *appsv1.DaemonSet // contains filtered or unexported fields }
func NewHostSensorHandler ¶
func NewHostSensorHandler(k8sObj *k8sinterface.KubernetesApi) (*HostSensorHandler, error)
func (*HostSensorHandler) CollectResources ¶
func (hsh *HostSensorHandler) CollectResources() ([]HostSensorDataEnvelope, error)
func (*HostSensorHandler) ForwardToPod ¶
func (hsh *HostSensorHandler) ForwardToPod(podName, path string) ([]byte, error)
func (*HostSensorHandler) GetKernelVersion ¶
func (hsh *HostSensorHandler) GetKernelVersion() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) GetKubeletCommandLine ¶
func (hsh *HostSensorHandler) GetKubeletCommandLine() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) GetKubeletConfigurations ¶
func (hsh *HostSensorHandler) GetKubeletConfigurations() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) GetLinuxSecurityHardeningStatus ¶
func (hsh *HostSensorHandler) GetLinuxSecurityHardeningStatus() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) GetNamespace ¶
func (hsh *HostSensorHandler) GetNamespace() string
func (*HostSensorHandler) GetOpenPortsList ¶
func (hsh *HostSensorHandler) GetOpenPortsList() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) GetOsReleaseFile ¶
func (hsh *HostSensorHandler) GetOsReleaseFile() ([]HostSensorDataEnvelope, error)
return list of
func (*HostSensorHandler) HTTPGetToPod ¶
func (hsh *HostSensorHandler) HTTPGetToPod(podName, path string) ([]byte, error)
func (*HostSensorHandler) Init ¶
func (hsh *HostSensorHandler) Init() error
func (*HostSensorHandler) TearDown ¶
func (hsh *HostSensorHandler) TearDown() error
type HostSensorHandlerMock ¶
type HostSensorHandlerMock struct { }
func (*HostSensorHandlerMock) CollectResources ¶
func (hshm *HostSensorHandlerMock) CollectResources() ([]HostSensorDataEnvelope, error)
func (*HostSensorHandlerMock) GetNamespace ¶
func (hshm *HostSensorHandlerMock) GetNamespace() string
func (*HostSensorHandlerMock) Init ¶
func (hshm *HostSensorHandlerMock) Init() error
func (*HostSensorHandlerMock) TearDown ¶
func (hshm *HostSensorHandlerMock) TearDown() error
type IHostSensor ¶
type IHostSensor interface { Init() error TearDown() error CollectResources() ([]HostSensorDataEnvelope, error) GetNamespace() string }
Click to show internal directories.
Click to hide internal directories.