Documentation
¶
Index ¶
- Variables
- func RegisterKRailPluginServer(s *grpc.Server, srv KRailPluginServer)
- type ConfigurePluginRequest
- func (*ConfigurePluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigurePluginRequest) GetPluginConfig() *structpb.Struct
- func (*ConfigurePluginRequest) ProtoMessage()
- func (x *ConfigurePluginRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigurePluginRequest) Reset()
- func (x *ConfigurePluginRequest) String() string
- type ConfigurePluginResponse
- type KRailPluginClient
- type KRailPluginServer
- type PatchOperation
- func (*PatchOperation) Descriptor() ([]byte, []int)deprecated
- func (x *PatchOperation) GetOp() string
- func (x *PatchOperation) GetPath() string
- func (x *PatchOperation) GetValue() *structpb.Value
- func (*PatchOperation) ProtoMessage()
- func (x *PatchOperation) ProtoReflect() protoreflect.Message
- func (x *PatchOperation) Reset()
- func (x *PatchOperation) String() string
- type PluginNameRequest
- type PluginNameResponse
- func (*PluginNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PluginNameResponse) GetPluginName() string
- func (*PluginNameResponse) ProtoMessage()
- func (x *PluginNameResponse) ProtoReflect() protoreflect.Message
- func (x *PluginNameResponse) Reset()
- func (x *PluginNameResponse) String() string
- type PolicyNamesRequest
- type PolicyNamesResponse
- func (*PolicyNamesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyNamesResponse) GetPolicyNames() []string
- func (*PolicyNamesResponse) ProtoMessage()
- func (x *PolicyNamesResponse) ProtoReflect() protoreflect.Message
- func (x *PolicyNamesResponse) Reset()
- func (x *PolicyNamesResponse) String() string
- type ResourceViolation
- func (*ResourceViolation) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceViolation) GetError() string
- func (x *ResourceViolation) GetNamespace() string
- func (x *ResourceViolation) GetPolicy() string
- func (x *ResourceViolation) GetResourceKind() string
- func (x *ResourceViolation) GetResourceName() string
- func (x *ResourceViolation) GetViolation() string
- func (*ResourceViolation) ProtoMessage()
- func (x *ResourceViolation) ProtoReflect() protoreflect.Message
- func (x *ResourceViolation) Reset()
- func (x *ResourceViolation) String() string
- type UnimplementedKRailPluginServer
- func (*UnimplementedKRailPluginServer) ConfigurePlugin(context.Context, *ConfigurePluginRequest) (*ConfigurePluginResponse, error)
- func (*UnimplementedKRailPluginServer) PluginName(context.Context, *PluginNameRequest) (*PluginNameResponse, error)
- func (*UnimplementedKRailPluginServer) PolicyNames(context.Context, *PolicyNamesRequest) (*PolicyNamesResponse, error)
- func (*UnimplementedKRailPluginServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
- type ValidateRequest
- func (*ValidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateRequest) GetAdmissionRequest() []byte
- func (x *ValidateRequest) GetPolicyName() string
- func (*ValidateRequest) ProtoMessage()
- func (x *ValidateRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateRequest) Reset()
- func (x *ValidateRequest) String() string
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateResponse) GetPatchOperations() []*PatchOperation
- func (x *ValidateResponse) GetResourceViolations() []*ResourceViolation
- func (*ValidateResponse) ProtoMessage()
- func (x *ValidateResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateResponse) Reset()
- func (x *ValidateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_plugin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterKRailPluginServer ¶
func RegisterKRailPluginServer(s *grpc.Server, srv KRailPluginServer)
Types ¶
type ConfigurePluginRequest ¶
type ConfigurePluginRequest struct { PluginConfig *structpb.Struct `protobuf:"bytes,1,opt,name=plugin_config,json=pluginConfig,proto3" json:"plugin_config,omitempty"` // contains filtered or unexported fields }
func (*ConfigurePluginRequest) Descriptor
deprecated
func (*ConfigurePluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigurePluginRequest.ProtoReflect.Descriptor instead.
func (*ConfigurePluginRequest) GetPluginConfig ¶
func (x *ConfigurePluginRequest) GetPluginConfig() *structpb.Struct
func (*ConfigurePluginRequest) ProtoMessage ¶
func (*ConfigurePluginRequest) ProtoMessage()
func (*ConfigurePluginRequest) ProtoReflect ¶
func (x *ConfigurePluginRequest) ProtoReflect() protoreflect.Message
func (*ConfigurePluginRequest) Reset ¶
func (x *ConfigurePluginRequest) Reset()
func (*ConfigurePluginRequest) String ¶
func (x *ConfigurePluginRequest) String() string
type ConfigurePluginResponse ¶
type ConfigurePluginResponse struct {
// contains filtered or unexported fields
}
func (*ConfigurePluginResponse) Descriptor
deprecated
func (*ConfigurePluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigurePluginResponse.ProtoReflect.Descriptor instead.
func (*ConfigurePluginResponse) ProtoMessage ¶
func (*ConfigurePluginResponse) ProtoMessage()
func (*ConfigurePluginResponse) ProtoReflect ¶
func (x *ConfigurePluginResponse) ProtoReflect() protoreflect.Message
func (*ConfigurePluginResponse) Reset ¶
func (x *ConfigurePluginResponse) Reset()
func (*ConfigurePluginResponse) String ¶
func (x *ConfigurePluginResponse) String() string
type KRailPluginClient ¶
type KRailPluginClient interface { PluginName(ctx context.Context, in *PluginNameRequest, opts ...grpc.CallOption) (*PluginNameResponse, error) PolicyNames(ctx context.Context, in *PolicyNamesRequest, opts ...grpc.CallOption) (*PolicyNamesResponse, error) ConfigurePlugin(ctx context.Context, in *ConfigurePluginRequest, opts ...grpc.CallOption) (*ConfigurePluginResponse, error) Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) }
KRailPluginClient is the client API for KRailPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKRailPluginClient ¶
func NewKRailPluginClient(cc grpc.ClientConnInterface) KRailPluginClient
type KRailPluginServer ¶
type KRailPluginServer interface { PluginName(context.Context, *PluginNameRequest) (*PluginNameResponse, error) PolicyNames(context.Context, *PolicyNamesRequest) (*PolicyNamesResponse, error) ConfigurePlugin(context.Context, *ConfigurePluginRequest) (*ConfigurePluginResponse, error) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) }
KRailPluginServer is the server API for KRailPlugin service.
type PatchOperation ¶
type PatchOperation struct { Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Value *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PatchOperation) Descriptor
deprecated
func (*PatchOperation) Descriptor() ([]byte, []int)
Deprecated: Use PatchOperation.ProtoReflect.Descriptor instead.
func (*PatchOperation) GetOp ¶
func (x *PatchOperation) GetOp() string
func (*PatchOperation) GetPath ¶
func (x *PatchOperation) GetPath() string
func (*PatchOperation) GetValue ¶
func (x *PatchOperation) GetValue() *structpb.Value
func (*PatchOperation) ProtoMessage ¶
func (*PatchOperation) ProtoMessage()
func (*PatchOperation) ProtoReflect ¶
func (x *PatchOperation) ProtoReflect() protoreflect.Message
func (*PatchOperation) Reset ¶
func (x *PatchOperation) Reset()
func (*PatchOperation) String ¶
func (x *PatchOperation) String() string
type PluginNameRequest ¶
type PluginNameRequest struct {
// contains filtered or unexported fields
}
func (*PluginNameRequest) Descriptor
deprecated
func (*PluginNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use PluginNameRequest.ProtoReflect.Descriptor instead.
func (*PluginNameRequest) ProtoMessage ¶
func (*PluginNameRequest) ProtoMessage()
func (*PluginNameRequest) ProtoReflect ¶
func (x *PluginNameRequest) ProtoReflect() protoreflect.Message
func (*PluginNameRequest) Reset ¶
func (x *PluginNameRequest) Reset()
func (*PluginNameRequest) String ¶
func (x *PluginNameRequest) String() string
type PluginNameResponse ¶
type PluginNameResponse struct { PluginName string `protobuf:"bytes,1,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` // contains filtered or unexported fields }
func (*PluginNameResponse) Descriptor
deprecated
func (*PluginNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use PluginNameResponse.ProtoReflect.Descriptor instead.
func (*PluginNameResponse) GetPluginName ¶
func (x *PluginNameResponse) GetPluginName() string
func (*PluginNameResponse) ProtoMessage ¶
func (*PluginNameResponse) ProtoMessage()
func (*PluginNameResponse) ProtoReflect ¶
func (x *PluginNameResponse) ProtoReflect() protoreflect.Message
func (*PluginNameResponse) Reset ¶
func (x *PluginNameResponse) Reset()
func (*PluginNameResponse) String ¶
func (x *PluginNameResponse) String() string
type PolicyNamesRequest ¶
type PolicyNamesRequest struct {
// contains filtered or unexported fields
}
func (*PolicyNamesRequest) Descriptor
deprecated
func (*PolicyNamesRequest) Descriptor() ([]byte, []int)
Deprecated: Use PolicyNamesRequest.ProtoReflect.Descriptor instead.
func (*PolicyNamesRequest) ProtoMessage ¶
func (*PolicyNamesRequest) ProtoMessage()
func (*PolicyNamesRequest) ProtoReflect ¶
func (x *PolicyNamesRequest) ProtoReflect() protoreflect.Message
func (*PolicyNamesRequest) Reset ¶
func (x *PolicyNamesRequest) Reset()
func (*PolicyNamesRequest) String ¶
func (x *PolicyNamesRequest) String() string
type PolicyNamesResponse ¶
type PolicyNamesResponse struct { PolicyNames []string `protobuf:"bytes,1,rep,name=policy_names,json=policyNames,proto3" json:"policy_names,omitempty"` // contains filtered or unexported fields }
func (*PolicyNamesResponse) Descriptor
deprecated
func (*PolicyNamesResponse) Descriptor() ([]byte, []int)
Deprecated: Use PolicyNamesResponse.ProtoReflect.Descriptor instead.
func (*PolicyNamesResponse) GetPolicyNames ¶
func (x *PolicyNamesResponse) GetPolicyNames() []string
func (*PolicyNamesResponse) ProtoMessage ¶
func (*PolicyNamesResponse) ProtoMessage()
func (*PolicyNamesResponse) ProtoReflect ¶
func (x *PolicyNamesResponse) ProtoReflect() protoreflect.Message
func (*PolicyNamesResponse) Reset ¶
func (x *PolicyNamesResponse) Reset()
func (*PolicyNamesResponse) String ¶
func (x *PolicyNamesResponse) String() string
type ResourceViolation ¶
type ResourceViolation struct { ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` ResourceKind string `protobuf:"bytes,2,opt,name=resource_kind,json=resourceKind,proto3" json:"resource_kind,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Violation string `protobuf:"bytes,4,opt,name=violation,proto3" json:"violation,omitempty"` Policy string `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ResourceViolation) Descriptor
deprecated
func (*ResourceViolation) Descriptor() ([]byte, []int)
Deprecated: Use ResourceViolation.ProtoReflect.Descriptor instead.
func (*ResourceViolation) GetError ¶
func (x *ResourceViolation) GetError() string
func (*ResourceViolation) GetNamespace ¶
func (x *ResourceViolation) GetNamespace() string
func (*ResourceViolation) GetPolicy ¶
func (x *ResourceViolation) GetPolicy() string
func (*ResourceViolation) GetResourceKind ¶
func (x *ResourceViolation) GetResourceKind() string
func (*ResourceViolation) GetResourceName ¶
func (x *ResourceViolation) GetResourceName() string
func (*ResourceViolation) GetViolation ¶
func (x *ResourceViolation) GetViolation() string
func (*ResourceViolation) ProtoMessage ¶
func (*ResourceViolation) ProtoMessage()
func (*ResourceViolation) ProtoReflect ¶
func (x *ResourceViolation) ProtoReflect() protoreflect.Message
func (*ResourceViolation) Reset ¶
func (x *ResourceViolation) Reset()
func (*ResourceViolation) String ¶
func (x *ResourceViolation) String() string
type UnimplementedKRailPluginServer ¶
type UnimplementedKRailPluginServer struct { }
UnimplementedKRailPluginServer can be embedded to have forward compatible implementations.
func (*UnimplementedKRailPluginServer) ConfigurePlugin ¶
func (*UnimplementedKRailPluginServer) ConfigurePlugin(context.Context, *ConfigurePluginRequest) (*ConfigurePluginResponse, error)
func (*UnimplementedKRailPluginServer) PluginName ¶
func (*UnimplementedKRailPluginServer) PluginName(context.Context, *PluginNameRequest) (*PluginNameResponse, error)
func (*UnimplementedKRailPluginServer) PolicyNames ¶
func (*UnimplementedKRailPluginServer) PolicyNames(context.Context, *PolicyNamesRequest) (*PolicyNamesResponse, error)
func (*UnimplementedKRailPluginServer) Validate ¶
func (*UnimplementedKRailPluginServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
type ValidateRequest ¶
type ValidateRequest struct { PolicyName string `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` AdmissionRequest []byte `protobuf:"bytes,2,opt,name=admission_request,json=admissionRequest,proto3" json:"admission_request,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetAdmissionRequest ¶
func (x *ValidateRequest) GetAdmissionRequest() []byte
func (*ValidateRequest) GetPolicyName ¶
func (x *ValidateRequest) GetPolicyName() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
type ValidateResponse ¶
type ValidateResponse struct { ResourceViolations []*ResourceViolation `protobuf:"bytes,1,rep,name=resource_violations,json=resourceViolations,proto3" json:"resource_violations,omitempty"` PatchOperations []*PatchOperation `protobuf:"bytes,2,rep,name=patch_operations,json=patchOperations,proto3" json:"patch_operations,omitempty"` // contains filtered or unexported fields }
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetPatchOperations ¶
func (x *ValidateResponse) GetPatchOperations() []*PatchOperation
func (*ValidateResponse) GetResourceViolations ¶
func (x *ValidateResponse) GetResourceViolations() []*ResourceViolation
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string