Documentation ¶
Index ¶
- Variables
- type PolicyEvaluatedEvent
- func (*PolicyEvaluatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluatedEvent) GetClusterId() string
- func (x *PolicyEvaluatedEvent) GetPassed() bool
- func (x *PolicyEvaluatedEvent) GetPolicy() string
- func (x *PolicyEvaluatedEvent) GetResourceData() []byte
- func (x *PolicyEvaluatedEvent) GetResourceUid() string
- func (x *PolicyEvaluatedEvent) GetResultData() []byte
- func (*PolicyEvaluatedEvent) ProtoMessage()
- func (x *PolicyEvaluatedEvent) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluatedEvent) Reset()
- func (x *PolicyEvaluatedEvent) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_kollect_policy_event_v1_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PolicyEvaluatedEvent ¶
type PolicyEvaluatedEvent struct { // policy is the name of the policy that has been evaluated. Policy string `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // resource_uid is the unique identifier for the cluster resource that has been evaluated. ResourceUid string `protobuf:"bytes,2,opt,name=resource_uid,json=resourceUid,proto3" json:"resource_uid,omitempty"` // cluster_id is the identifier of the cluster where the resource resides. ClusterId string `protobuf:"bytes,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // passed indicates whether or not the policy evaluation failed or succeeded. Passed bool `protobuf:"varint,4,opt,name=passed,proto3" json:"passed,omitempty"` // result_data is the JSON-encoded data returned by the evaluated policy. ResultData []byte `protobuf:"bytes,5,opt,name=result_data,json=resultData,proto3" json:"result_data,omitempty"` // resource_data is the JSON-encoded representation of the cluster resource. ResourceData []byte `protobuf:"bytes,6,opt,name=resource_data,json=resourceData,proto3" json:"resource_data,omitempty"` // contains filtered or unexported fields }
PolicyEvaluatedEvent describes the evaluation of a cluster resource for a certain policy.
func (*PolicyEvaluatedEvent) Descriptor
deprecated
func (*PolicyEvaluatedEvent) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluatedEvent.ProtoReflect.Descriptor instead.
func (*PolicyEvaluatedEvent) GetClusterId ¶
func (x *PolicyEvaluatedEvent) GetClusterId() string
func (*PolicyEvaluatedEvent) GetPassed ¶
func (x *PolicyEvaluatedEvent) GetPassed() bool
func (*PolicyEvaluatedEvent) GetPolicy ¶
func (x *PolicyEvaluatedEvent) GetPolicy() string
func (*PolicyEvaluatedEvent) GetResourceData ¶
func (x *PolicyEvaluatedEvent) GetResourceData() []byte
func (*PolicyEvaluatedEvent) GetResourceUid ¶
func (x *PolicyEvaluatedEvent) GetResourceUid() string
func (*PolicyEvaluatedEvent) GetResultData ¶
func (x *PolicyEvaluatedEvent) GetResultData() []byte
func (*PolicyEvaluatedEvent) ProtoMessage ¶
func (*PolicyEvaluatedEvent) ProtoMessage()
func (*PolicyEvaluatedEvent) ProtoReflect ¶
func (x *PolicyEvaluatedEvent) ProtoReflect() protoreflect.Message
func (*PolicyEvaluatedEvent) Reset ¶
func (x *PolicyEvaluatedEvent) Reset()
func (*PolicyEvaluatedEvent) String ¶
func (x *PolicyEvaluatedEvent) String() string
Click to show internal directories.
Click to hide internal directories.