policies

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_strmprivacy_api_policies_v1_policies_v1_proto protoreflect.FileDescriptor
View Source
var PoliciesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.policies.v1.PoliciesService",
	HandlerType: (*PoliciesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListPolicies",
			Handler:    _PoliciesService_ListPolicies_Handler,
		},
		{
			MethodName: "GetPolicy",
			Handler:    _PoliciesService_GetPolicy_Handler,
		},
		{
			MethodName: "DeletePolicy",
			Handler:    _PoliciesService_DeletePolicy_Handler,
		},
		{
			MethodName: "CreatePolicy",
			Handler:    _PoliciesService_CreatePolicy_Handler,
		},
		{
			MethodName: "UpdatePolicy",
			Handler:    _PoliciesService_UpdatePolicy_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/policies/v1/policies_v1.proto",
}

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

Functions

func RegisterPoliciesServiceServer

func RegisterPoliciesServiceServer(s grpc.ServiceRegistrar, srv PoliciesServiceServer)

Types

type CreatePolicyRequest

type CreatePolicyRequest struct {
	Policy *v1.Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePolicyRequest) Descriptor deprecated

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

Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead.

func (*CreatePolicyRequest) GetPolicy

func (x *CreatePolicyRequest) GetPolicy() *v1.Policy

func (*CreatePolicyRequest) ProtoMessage

func (*CreatePolicyRequest) ProtoMessage()

func (*CreatePolicyRequest) ProtoReflect

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

func (*CreatePolicyRequest) Reset

func (x *CreatePolicyRequest) Reset()

func (*CreatePolicyRequest) String

func (x *CreatePolicyRequest) String() string

type CreatePolicyResponse

type CreatePolicyResponse struct {
	Policy *v1.Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePolicyResponse) Descriptor deprecated

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

Deprecated: Use CreatePolicyResponse.ProtoReflect.Descriptor instead.

func (*CreatePolicyResponse) GetPolicy

func (x *CreatePolicyResponse) GetPolicy() *v1.Policy

func (*CreatePolicyResponse) ProtoMessage

func (*CreatePolicyResponse) ProtoMessage()

func (*CreatePolicyResponse) ProtoReflect

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

func (*CreatePolicyResponse) Reset

func (x *CreatePolicyResponse) Reset()

func (*CreatePolicyResponse) String

func (x *CreatePolicyResponse) String() string

type DeletePolicyRequest

type DeletePolicyRequest struct {
	PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePolicyRequest) Descriptor deprecated

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

Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead.

func (*DeletePolicyRequest) GetPolicyId

func (x *DeletePolicyRequest) GetPolicyId() string

func (*DeletePolicyRequest) ProtoMessage

func (*DeletePolicyRequest) ProtoMessage()

func (*DeletePolicyRequest) ProtoReflect

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

func (*DeletePolicyRequest) Reset

func (x *DeletePolicyRequest) Reset()

func (*DeletePolicyRequest) String

func (x *DeletePolicyRequest) String() string

type DeletePolicyResponse

type DeletePolicyResponse struct {
	// contains filtered or unexported fields
}

func (*DeletePolicyResponse) Descriptor deprecated

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

Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead.

func (*DeletePolicyResponse) ProtoMessage

func (*DeletePolicyResponse) ProtoMessage()

func (*DeletePolicyResponse) ProtoReflect

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

func (*DeletePolicyResponse) Reset

func (x *DeletePolicyResponse) Reset()

func (*DeletePolicyResponse) String

func (x *DeletePolicyResponse) String() string

type GetPolicyRequest

type GetPolicyRequest struct {

	// an empty policy id will return the hard-coded default "" policy
	PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyRequest) Descriptor deprecated

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

Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead.

func (*GetPolicyRequest) GetPolicyId

func (x *GetPolicyRequest) GetPolicyId() string

func (*GetPolicyRequest) ProtoMessage

func (*GetPolicyRequest) ProtoMessage()

func (*GetPolicyRequest) ProtoReflect

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

func (*GetPolicyRequest) Reset

func (x *GetPolicyRequest) Reset()

func (*GetPolicyRequest) String

func (x *GetPolicyRequest) String() string

type GetPolicyResponse

type GetPolicyResponse struct {
	Policy *v1.Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyResponse) Descriptor deprecated

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

Deprecated: Use GetPolicyResponse.ProtoReflect.Descriptor instead.

func (*GetPolicyResponse) GetPolicy

func (x *GetPolicyResponse) GetPolicy() *v1.Policy

func (*GetPolicyResponse) ProtoMessage

func (*GetPolicyResponse) ProtoMessage()

func (*GetPolicyResponse) ProtoReflect

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

func (*GetPolicyResponse) Reset

func (x *GetPolicyResponse) Reset()

func (*GetPolicyResponse) String

func (x *GetPolicyResponse) String() string

type ListPoliciesRequest

type ListPoliciesRequest struct {
	// contains filtered or unexported fields
}

func (*ListPoliciesRequest) Descriptor deprecated

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

Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead.

func (*ListPoliciesRequest) ProtoMessage

func (*ListPoliciesRequest) ProtoMessage()

func (*ListPoliciesRequest) ProtoReflect

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

func (*ListPoliciesRequest) Reset

func (x *ListPoliciesRequest) Reset()

func (*ListPoliciesRequest) String

func (x *ListPoliciesRequest) String() string

type ListPoliciesResponse

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

func (*ListPoliciesResponse) Descriptor deprecated

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

Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead.

func (*ListPoliciesResponse) GetPolicies

func (x *ListPoliciesResponse) GetPolicies() []*v1.Policy

func (*ListPoliciesResponse) ProtoMessage

func (*ListPoliciesResponse) ProtoMessage()

func (*ListPoliciesResponse) ProtoReflect

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

func (*ListPoliciesResponse) Reset

func (x *ListPoliciesResponse) Reset()

func (*ListPoliciesResponse) String

func (x *ListPoliciesResponse) String() string

type PoliciesServiceClient

type PoliciesServiceClient interface {
	ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error)
	GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error)
	DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error)
	CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error)
	UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*UpdatePolicyResponse, error)
}

PoliciesServiceClient is the client API for PoliciesService 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 PoliciesServiceServer

PoliciesServiceServer is the server API for PoliciesService service. All implementations should embed UnimplementedPoliciesServiceServer for forward compatibility

type UnimplementedPoliciesServiceServer

type UnimplementedPoliciesServiceServer struct {
}

UnimplementedPoliciesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPoliciesServiceServer) CreatePolicy

func (UnimplementedPoliciesServiceServer) DeletePolicy

func (UnimplementedPoliciesServiceServer) GetPolicy

func (UnimplementedPoliciesServiceServer) ListPolicies

func (UnimplementedPoliciesServiceServer) UpdatePolicy

type UnsafePoliciesServiceServer

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

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

type UpdatePolicyRequest

type UpdatePolicyRequest struct {
	Policy     *v1.Policy             `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePolicyRequest) Descriptor deprecated

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

Deprecated: Use UpdatePolicyRequest.ProtoReflect.Descriptor instead.

func (*UpdatePolicyRequest) GetPolicy

func (x *UpdatePolicyRequest) GetPolicy() *v1.Policy

func (*UpdatePolicyRequest) GetUpdateMask

func (x *UpdatePolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdatePolicyRequest) ProtoMessage

func (*UpdatePolicyRequest) ProtoMessage()

func (*UpdatePolicyRequest) ProtoReflect

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

func (*UpdatePolicyRequest) Reset

func (x *UpdatePolicyRequest) Reset()

func (*UpdatePolicyRequest) String

func (x *UpdatePolicyRequest) String() string

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	Policy *v1.Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePolicyResponse) Descriptor deprecated

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

Deprecated: Use UpdatePolicyResponse.ProtoReflect.Descriptor instead.

func (*UpdatePolicyResponse) GetPolicy

func (x *UpdatePolicyResponse) GetPolicy() *v1.Policy

func (*UpdatePolicyResponse) ProtoMessage

func (*UpdatePolicyResponse) ProtoMessage()

func (*UpdatePolicyResponse) ProtoReflect

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

func (*UpdatePolicyResponse) Reset

func (x *UpdatePolicyResponse) Reset()

func (*UpdatePolicyResponse) String

func (x *UpdatePolicyResponse) String() string

Jump to

Keyboard shortcuts

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