Documentation ¶
Index ¶
- Variables
- func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
- type GetRequest
- type GetResponse
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetAllowChangingUsernamesAndPasswords() *wrapperspb.BoolValue
- func (x *Policy) GetAllowRedTeamLaunchingServiceTestsManually() *wrapperspb.BoolValue
- func (x *Policy) GetAllowUnauthenticatedUsers() *wrapperspb.BoolValue
- func (x *Policy) GetShowAddresses() *wrapperspb.BoolValue
- func (x *Policy) GetShowPoints() *wrapperspb.BoolValue
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type PolicyServiceClient
- type PolicyServiceServer
- type PolicyService_GetClient
- type PolicyService_GetServer
- type UnimplementedPolicyServiceServer
- type UnsafePolicyServiceServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_policy_v1_policy_proto protoreflect.FileDescriptor
var PolicyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.proto.policy.v1.PolicyService", HandlerType: (*PolicyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Update", Handler: _PolicyService_Update_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Get", Handler: _PolicyService_Get_Handler, ServerStreams: true, }, }, Metadata: "pkg/proto/policy/v1/policy.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 GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetPolicy ¶
func (x *GetResponse) GetPolicy() *Policy
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Policy ¶
type Policy struct { AllowUnauthenticatedUsers *wrapperspb.BoolValue `` /* 138-byte string literal not displayed */ AllowChangingUsernamesAndPasswords *wrapperspb.BoolValue `` /* 169-byte string literal not displayed */ ShowPoints *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=show_points,json=showPoints,proto3" json:"show_points,omitempty"` ShowAddresses *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=show_addresses,json=showAddresses,proto3" json:"show_addresses,omitempty"` AllowRedTeamLaunchingServiceTestsManually *wrapperspb.BoolValue `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetAllowChangingUsernamesAndPasswords ¶
func (x *Policy) GetAllowChangingUsernamesAndPasswords() *wrapperspb.BoolValue
func (*Policy) GetAllowRedTeamLaunchingServiceTestsManually ¶
func (x *Policy) GetAllowRedTeamLaunchingServiceTestsManually() *wrapperspb.BoolValue
func (*Policy) GetAllowUnauthenticatedUsers ¶
func (x *Policy) GetAllowUnauthenticatedUsers() *wrapperspb.BoolValue
func (*Policy) GetShowAddresses ¶
func (x *Policy) GetShowAddresses() *wrapperspb.BoolValue
func (*Policy) GetShowPoints ¶
func (x *Policy) GetShowPoints() *wrapperspb.BoolValue
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type PolicyServiceClient ¶
type PolicyServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (PolicyService_GetClient, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, 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.
func NewPolicyServiceClient ¶
func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient
type PolicyServiceServer ¶
type PolicyServiceServer interface { Get(*GetRequest, PolicyService_GetServer) error Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // contains filtered or unexported methods }
PolicyServiceServer is the server API for PolicyService service. All implementations must embed UnimplementedPolicyServiceServer for forward compatibility
type PolicyService_GetClient ¶
type PolicyService_GetClient interface { Recv() (*GetResponse, error) grpc.ClientStream }
type PolicyService_GetServer ¶
type PolicyService_GetServer interface { Send(*GetResponse) error grpc.ServerStream }
type UnimplementedPolicyServiceServer ¶
type UnimplementedPolicyServiceServer struct { }
UnimplementedPolicyServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPolicyServiceServer) Update ¶
func (UnimplementedPolicyServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
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.
type UpdateRequest ¶
type UpdateRequest struct { Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetPolicy ¶
func (x *UpdateRequest) GetPolicy() *Policy
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string