pb

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_policies_pb_policies_proto protoreflect.FileDescriptor
View Source
var PolicyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "policies.PolicyService",
	HandlerType: (*PolicyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RetrievePolicy",
			Handler:    _PolicyService_RetrievePolicy_Handler,
		},
		{
			MethodName: "RetrievePoliciesByGroups",
			Handler:    _PolicyService_RetrievePoliciesByGroups_Handler,
		},
		{
			MethodName: "RetrieveDataset",
			Handler:    _PolicyService_RetrieveDataset_Handler,
		},
		{
			MethodName: "RetrieveDatasetsByGroups",
			Handler:    _PolicyService_RetrieveDatasetsByGroups_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policies/pb/policies.proto",
}

PolicyService_ServiceDesc is the grpc.ServiceDesc for PolicyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPolicyServiceServer

func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)

Types

type DatasetByIDReq

type DatasetByIDReq struct {
	DatasetID string `protobuf:"bytes,1,opt,name=datasetID,proto3" json:"datasetID,omitempty"`
	OwnerID   string `protobuf:"bytes,2,opt,name=ownerID,proto3" json:"ownerID,omitempty"`
	// contains filtered or unexported fields
}

func (*DatasetByIDReq) Descriptor deprecated

func (*DatasetByIDReq) Descriptor() ([]byte, []int)

Deprecated: Use DatasetByIDReq.ProtoReflect.Descriptor instead.

func (*DatasetByIDReq) GetDatasetID

func (x *DatasetByIDReq) GetDatasetID() string

func (*DatasetByIDReq) GetOwnerID

func (x *DatasetByIDReq) GetOwnerID() string

func (*DatasetByIDReq) ProtoMessage

func (*DatasetByIDReq) ProtoMessage()

func (*DatasetByIDReq) ProtoReflect

func (x *DatasetByIDReq) ProtoReflect() protoreflect.Message

func (*DatasetByIDReq) Reset

func (x *DatasetByIDReq) Reset()

func (*DatasetByIDReq) String

func (x *DatasetByIDReq) String() string

type DatasetRes

type DatasetRes struct {
	Id           string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AgentGroupId string   `protobuf:"bytes,2,opt,name=agent_group_id,json=agentGroupId,proto3" json:"agent_group_id,omitempty"`
	PolicyId     string   `protobuf:"bytes,3,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	SinkIds      []string `protobuf:"bytes,4,rep,name=sink_ids,json=sinkIds,proto3" json:"sink_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DatasetRes) Descriptor deprecated

func (*DatasetRes) Descriptor() ([]byte, []int)

Deprecated: Use DatasetRes.ProtoReflect.Descriptor instead.

func (*DatasetRes) GetAgentGroupId

func (x *DatasetRes) GetAgentGroupId() string

func (*DatasetRes) GetId

func (x *DatasetRes) GetId() string

func (*DatasetRes) GetPolicyId

func (x *DatasetRes) GetPolicyId() string

func (*DatasetRes) GetSinkIds

func (x *DatasetRes) GetSinkIds() []string

func (*DatasetRes) ProtoMessage

func (*DatasetRes) ProtoMessage()

func (*DatasetRes) ProtoReflect

func (x *DatasetRes) ProtoReflect() protoreflect.Message

func (*DatasetRes) Reset

func (x *DatasetRes) Reset()

func (*DatasetRes) String

func (x *DatasetRes) String() string

type DatasetsByGroupsReq

type DatasetsByGroupsReq struct {
	GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs,omitempty"`
	OwnerID  string   `protobuf:"bytes,2,opt,name=ownerID,proto3" json:"ownerID,omitempty"`
	// contains filtered or unexported fields
}

func (*DatasetsByGroupsReq) Descriptor deprecated

func (*DatasetsByGroupsReq) Descriptor() ([]byte, []int)

Deprecated: Use DatasetsByGroupsReq.ProtoReflect.Descriptor instead.

func (*DatasetsByGroupsReq) GetGroupIDs

func (x *DatasetsByGroupsReq) GetGroupIDs() []string

func (*DatasetsByGroupsReq) GetOwnerID

func (x *DatasetsByGroupsReq) GetOwnerID() string

func (*DatasetsByGroupsReq) ProtoMessage

func (*DatasetsByGroupsReq) ProtoMessage()

func (*DatasetsByGroupsReq) ProtoReflect

func (x *DatasetsByGroupsReq) ProtoReflect() protoreflect.Message

func (*DatasetsByGroupsReq) Reset

func (x *DatasetsByGroupsReq) Reset()

func (*DatasetsByGroupsReq) String

func (x *DatasetsByGroupsReq) String() string

type DatasetsRes

type DatasetsRes struct {
	DatasetList []*DatasetRes `protobuf:"bytes,1,rep,name=datasetList,proto3" json:"datasetList,omitempty"`
	// contains filtered or unexported fields
}

func (*DatasetsRes) Descriptor deprecated

func (*DatasetsRes) Descriptor() ([]byte, []int)

Deprecated: Use DatasetsRes.ProtoReflect.Descriptor instead.

func (*DatasetsRes) GetDatasetList

func (x *DatasetsRes) GetDatasetList() []*DatasetRes

func (*DatasetsRes) ProtoMessage

func (*DatasetsRes) ProtoMessage()

func (*DatasetsRes) ProtoReflect

func (x *DatasetsRes) ProtoReflect() protoreflect.Message

func (*DatasetsRes) Reset

func (x *DatasetsRes) Reset()

func (*DatasetsRes) String

func (x *DatasetsRes) String() string

type PoliciesByGroupsReq

type PoliciesByGroupsReq struct {
	GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs,omitempty"`
	OwnerID  string   `protobuf:"bytes,2,opt,name=ownerID,proto3" json:"ownerID,omitempty"`
	// contains filtered or unexported fields
}

func (*PoliciesByGroupsReq) Descriptor deprecated

func (*PoliciesByGroupsReq) Descriptor() ([]byte, []int)

Deprecated: Use PoliciesByGroupsReq.ProtoReflect.Descriptor instead.

func (*PoliciesByGroupsReq) GetGroupIDs

func (x *PoliciesByGroupsReq) GetGroupIDs() []string

func (*PoliciesByGroupsReq) GetOwnerID

func (x *PoliciesByGroupsReq) GetOwnerID() string

func (*PoliciesByGroupsReq) ProtoMessage

func (*PoliciesByGroupsReq) ProtoMessage()

func (*PoliciesByGroupsReq) ProtoReflect

func (x *PoliciesByGroupsReq) ProtoReflect() protoreflect.Message

func (*PoliciesByGroupsReq) Reset

func (x *PoliciesByGroupsReq) Reset()

func (*PoliciesByGroupsReq) String

func (x *PoliciesByGroupsReq) String() string

type PolicyByIDReq

type PolicyByIDReq struct {
	PolicyID string `protobuf:"bytes,1,opt,name=policyID,proto3" json:"policyID,omitempty"`
	OwnerID  string `protobuf:"bytes,2,opt,name=ownerID,proto3" json:"ownerID,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyByIDReq) Descriptor deprecated

func (*PolicyByIDReq) Descriptor() ([]byte, []int)

Deprecated: Use PolicyByIDReq.ProtoReflect.Descriptor instead.

func (*PolicyByIDReq) GetOwnerID

func (x *PolicyByIDReq) GetOwnerID() string

func (*PolicyByIDReq) GetPolicyID

func (x *PolicyByIDReq) GetPolicyID() string

func (*PolicyByIDReq) ProtoMessage

func (*PolicyByIDReq) ProtoMessage()

func (*PolicyByIDReq) ProtoReflect

func (x *PolicyByIDReq) ProtoReflect() protoreflect.Message

func (*PolicyByIDReq) Reset

func (x *PolicyByIDReq) Reset()

func (*PolicyByIDReq) String

func (x *PolicyByIDReq) String() string

type PolicyInDSListRes

type PolicyInDSListRes struct {
	Policies []*PolicyInDSRes `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyInDSListRes) Descriptor deprecated

func (*PolicyInDSListRes) Descriptor() ([]byte, []int)

Deprecated: Use PolicyInDSListRes.ProtoReflect.Descriptor instead.

func (*PolicyInDSListRes) GetPolicies

func (x *PolicyInDSListRes) GetPolicies() []*PolicyInDSRes

func (*PolicyInDSListRes) ProtoMessage

func (*PolicyInDSListRes) ProtoMessage()

func (*PolicyInDSListRes) ProtoReflect

func (x *PolicyInDSListRes) ProtoReflect() protoreflect.Message

func (*PolicyInDSListRes) Reset

func (x *PolicyInDSListRes) Reset()

func (*PolicyInDSListRes) String

func (x *PolicyInDSListRes) String() string

type PolicyInDSRes

type PolicyInDSRes struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Backend      string `protobuf:"bytes,3,opt,name=backend,proto3" json:"backend,omitempty"`
	Version      int32  `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	Data         []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	DatasetId    string `protobuf:"bytes,6,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	AgentGroupId string `protobuf:"bytes,7,opt,name=agent_group_id,json=agentGroupId,proto3" json:"agent_group_id,omitempty"`
	Format       string `protobuf:"bytes,8,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyInDSRes) Descriptor deprecated

func (*PolicyInDSRes) Descriptor() ([]byte, []int)

Deprecated: Use PolicyInDSRes.ProtoReflect.Descriptor instead.

func (*PolicyInDSRes) GetAgentGroupId

func (x *PolicyInDSRes) GetAgentGroupId() string

func (*PolicyInDSRes) GetBackend

func (x *PolicyInDSRes) GetBackend() string

func (*PolicyInDSRes) GetData

func (x *PolicyInDSRes) GetData() []byte

func (*PolicyInDSRes) GetDatasetId

func (x *PolicyInDSRes) GetDatasetId() string

func (*PolicyInDSRes) GetFormat added in v0.29.0

func (x *PolicyInDSRes) GetFormat() string

func (*PolicyInDSRes) GetId

func (x *PolicyInDSRes) GetId() string

func (*PolicyInDSRes) GetName

func (x *PolicyInDSRes) GetName() string

func (*PolicyInDSRes) GetVersion

func (x *PolicyInDSRes) GetVersion() int32

func (*PolicyInDSRes) ProtoMessage

func (*PolicyInDSRes) ProtoMessage()

func (*PolicyInDSRes) ProtoReflect

func (x *PolicyInDSRes) ProtoReflect() protoreflect.Message

func (*PolicyInDSRes) Reset

func (x *PolicyInDSRes) Reset()

func (*PolicyInDSRes) String

func (x *PolicyInDSRes) String() string

type PolicyRes

type PolicyRes struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Backend string `protobuf:"bytes,3,opt,name=backend,proto3" json:"backend,omitempty"`
	Version int32  `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	Data    []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	Format  string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyRes) Descriptor deprecated

func (*PolicyRes) Descriptor() ([]byte, []int)

Deprecated: Use PolicyRes.ProtoReflect.Descriptor instead.

func (*PolicyRes) GetBackend

func (x *PolicyRes) GetBackend() string

func (*PolicyRes) GetData

func (x *PolicyRes) GetData() []byte

func (*PolicyRes) GetFormat added in v0.29.0

func (x *PolicyRes) GetFormat() string

func (*PolicyRes) GetId

func (x *PolicyRes) GetId() string

func (*PolicyRes) GetName

func (x *PolicyRes) GetName() string

func (*PolicyRes) GetVersion

func (x *PolicyRes) GetVersion() int32

func (*PolicyRes) ProtoMessage

func (*PolicyRes) ProtoMessage()

func (*PolicyRes) ProtoReflect

func (x *PolicyRes) ProtoReflect() protoreflect.Message

func (*PolicyRes) Reset

func (x *PolicyRes) Reset()

func (*PolicyRes) String

func (x *PolicyRes) String() string

type PolicyServiceClient

type PolicyServiceClient interface {
	RetrievePolicy(ctx context.Context, in *PolicyByIDReq, opts ...grpc.CallOption) (*PolicyRes, error)
	RetrievePoliciesByGroups(ctx context.Context, in *PoliciesByGroupsReq, opts ...grpc.CallOption) (*PolicyInDSListRes, error)
	RetrieveDataset(ctx context.Context, in *DatasetByIDReq, opts ...grpc.CallOption) (*DatasetRes, error)
	RetrieveDatasetsByGroups(ctx context.Context, in *DatasetsByGroupsReq, opts ...grpc.CallOption) (*DatasetsRes, error)
}

PolicyServiceClient is the client API for PolicyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PolicyServiceServer

type PolicyServiceServer interface {
	RetrievePolicy(context.Context, *PolicyByIDReq) (*PolicyRes, error)
	RetrievePoliciesByGroups(context.Context, *PoliciesByGroupsReq) (*PolicyInDSListRes, error)
	RetrieveDataset(context.Context, *DatasetByIDReq) (*DatasetRes, error)
	RetrieveDatasetsByGroups(context.Context, *DatasetsByGroupsReq) (*DatasetsRes, error)
	// contains filtered or unexported methods
}

PolicyServiceServer is the server API for PolicyService service. All implementations must embed UnimplementedPolicyServiceServer for forward compatibility

type UnimplementedPolicyServiceServer

type UnimplementedPolicyServiceServer struct {
}

UnimplementedPolicyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPolicyServiceServer) RetrieveDataset

func (UnimplementedPolicyServiceServer) RetrieveDatasetsByGroups

func (UnimplementedPolicyServiceServer) RetrievePoliciesByGroups

func (UnimplementedPolicyServiceServer) RetrievePolicy

type UnsafePolicyServiceServer

type UnsafePolicyServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePolicyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicyServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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