policy

package
v0.0.0-...-05ee0c8 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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