guardianv1beta1grpc

package
v1.2.0-20230223111541-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GuardianService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "odpf.guardian.v1beta1.GuardianService",
	HandlerType: (*GuardianServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListProviders",
			Handler:    _GuardianService_ListProviders_Handler,
		},
		{
			MethodName: "GetProvider",
			Handler:    _GuardianService_GetProvider_Handler,
		},
		{
			MethodName: "CreateProvider",
			Handler:    _GuardianService_CreateProvider_Handler,
		},
		{
			MethodName: "UpdateProvider",
			Handler:    _GuardianService_UpdateProvider_Handler,
		},
		{
			MethodName: "ListRoles",
			Handler:    _GuardianService_ListRoles_Handler,
		},
		{
			MethodName: "ListPolicies",
			Handler:    _GuardianService_ListPolicies_Handler,
		},
		{
			MethodName: "GetPolicy",
			Handler:    _GuardianService_GetPolicy_Handler,
		},
		{
			MethodName: "CreatePolicy",
			Handler:    _GuardianService_CreatePolicy_Handler,
		},
		{
			MethodName: "UpdatePolicy",
			Handler:    _GuardianService_UpdatePolicy_Handler,
		},
		{
			MethodName: "ListResources",
			Handler:    _GuardianService_ListResources_Handler,
		},
		{
			MethodName: "GetResource",
			Handler:    _GuardianService_GetResource_Handler,
		},
		{
			MethodName: "UpdateResource",
			Handler:    _GuardianService_UpdateResource_Handler,
		},
		{
			MethodName: "ListUserAppeals",
			Handler:    _GuardianService_ListUserAppeals_Handler,
		},
		{
			MethodName: "ListAppeals",
			Handler:    _GuardianService_ListAppeals_Handler,
		},
		{
			MethodName: "GetAppeal",
			Handler:    _GuardianService_GetAppeal_Handler,
		},
		{
			MethodName: "CancelAppeal",
			Handler:    _GuardianService_CancelAppeal_Handler,
		},
		{
			MethodName: "RevokeAppeal",
			Handler:    _GuardianService_RevokeAppeal_Handler,
		},
		{
			MethodName: "CreateAppeal",
			Handler:    _GuardianService_CreateAppeal_Handler,
		},
		{
			MethodName: "ListUserApprovals",
			Handler:    _GuardianService_ListUserApprovals_Handler,
		},
		{
			MethodName: "ListApprovals",
			Handler:    _GuardianService_ListApprovals_Handler,
		},
		{
			MethodName: "UpdateApproval",
			Handler:    _GuardianService_UpdateApproval_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "odpf/guardian/v1beta1/guardian.proto",
}

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

Functions

func RegisterGuardianServiceServer

func RegisterGuardianServiceServer(s grpc.ServiceRegistrar, srv GuardianServiceServer)

Types

type GuardianServiceClient

type GuardianServiceClient interface {
	ListProviders(ctx context.Context, in *v1beta1.ListProvidersRequest, opts ...grpc.CallOption) (*v1beta1.ListProvidersResponse, error)
	GetProvider(ctx context.Context, in *v1beta1.GetProviderRequest, opts ...grpc.CallOption) (*v1beta1.GetProviderResponse, error)
	CreateProvider(ctx context.Context, in *v1beta1.CreateProviderRequest, opts ...grpc.CallOption) (*v1beta1.CreateProviderResponse, error)
	UpdateProvider(ctx context.Context, in *v1beta1.UpdateProviderRequest, opts ...grpc.CallOption) (*v1beta1.UpdateProviderResponse, error)
	ListRoles(ctx context.Context, in *v1beta1.ListRolesRequest, opts ...grpc.CallOption) (*v1beta1.ListRolesResponse, error)
	ListPolicies(ctx context.Context, in *v1beta1.ListPoliciesRequest, opts ...grpc.CallOption) (*v1beta1.ListPoliciesResponse, error)
	GetPolicy(ctx context.Context, in *v1beta1.GetPolicyRequest, opts ...grpc.CallOption) (*v1beta1.GetPolicyResponse, error)
	CreatePolicy(ctx context.Context, in *v1beta1.CreatePolicyRequest, opts ...grpc.CallOption) (*v1beta1.CreatePolicyResponse, error)
	UpdatePolicy(ctx context.Context, in *v1beta1.UpdatePolicyRequest, opts ...grpc.CallOption) (*v1beta1.UpdatePolicyResponse, error)
	ListResources(ctx context.Context, in *v1beta1.ListResourcesRequest, opts ...grpc.CallOption) (*v1beta1.ListResourcesResponse, error)
	GetResource(ctx context.Context, in *v1beta1.GetResourceRequest, opts ...grpc.CallOption) (*v1beta1.GetResourceResponse, error)
	UpdateResource(ctx context.Context, in *v1beta1.UpdateResourceRequest, opts ...grpc.CallOption) (*v1beta1.UpdateResourceResponse, error)
	ListUserAppeals(ctx context.Context, in *v1beta1.ListUserAppealsRequest, opts ...grpc.CallOption) (*v1beta1.ListUserAppealsResponse, error)
	ListAppeals(ctx context.Context, in *v1beta1.ListAppealsRequest, opts ...grpc.CallOption) (*v1beta1.ListAppealsResponse, error)
	GetAppeal(ctx context.Context, in *v1beta1.GetAppealRequest, opts ...grpc.CallOption) (*v1beta1.GetAppealResponse, error)
	CancelAppeal(ctx context.Context, in *v1beta1.CancelAppealRequest, opts ...grpc.CallOption) (*v1beta1.CancelAppealResponse, error)
	RevokeAppeal(ctx context.Context, in *v1beta1.RevokeAppealRequest, opts ...grpc.CallOption) (*v1beta1.RevokeAppealResponse, error)
	CreateAppeal(ctx context.Context, in *v1beta1.CreateAppealRequest, opts ...grpc.CallOption) (*v1beta1.CreateAppealResponse, error)
	ListUserApprovals(ctx context.Context, in *v1beta1.ListUserApprovalsRequest, opts ...grpc.CallOption) (*v1beta1.ListUserApprovalsResponse, error)
	ListApprovals(ctx context.Context, in *v1beta1.ListApprovalsRequest, opts ...grpc.CallOption) (*v1beta1.ListApprovalsResponse, error)
	UpdateApproval(ctx context.Context, in *v1beta1.UpdateApprovalRequest, opts ...grpc.CallOption) (*v1beta1.UpdateApprovalResponse, error)
}

GuardianServiceClient is the client API for GuardianService 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 NewGuardianServiceClient

func NewGuardianServiceClient(cc grpc.ClientConnInterface) GuardianServiceClient

type GuardianServiceServer

type GuardianServiceServer interface {
	ListProviders(context.Context, *v1beta1.ListProvidersRequest) (*v1beta1.ListProvidersResponse, error)
	GetProvider(context.Context, *v1beta1.GetProviderRequest) (*v1beta1.GetProviderResponse, error)
	CreateProvider(context.Context, *v1beta1.CreateProviderRequest) (*v1beta1.CreateProviderResponse, error)
	UpdateProvider(context.Context, *v1beta1.UpdateProviderRequest) (*v1beta1.UpdateProviderResponse, error)
	ListRoles(context.Context, *v1beta1.ListRolesRequest) (*v1beta1.ListRolesResponse, error)
	ListPolicies(context.Context, *v1beta1.ListPoliciesRequest) (*v1beta1.ListPoliciesResponse, error)
	GetPolicy(context.Context, *v1beta1.GetPolicyRequest) (*v1beta1.GetPolicyResponse, error)
	CreatePolicy(context.Context, *v1beta1.CreatePolicyRequest) (*v1beta1.CreatePolicyResponse, error)
	UpdatePolicy(context.Context, *v1beta1.UpdatePolicyRequest) (*v1beta1.UpdatePolicyResponse, error)
	ListResources(context.Context, *v1beta1.ListResourcesRequest) (*v1beta1.ListResourcesResponse, error)
	GetResource(context.Context, *v1beta1.GetResourceRequest) (*v1beta1.GetResourceResponse, error)
	UpdateResource(context.Context, *v1beta1.UpdateResourceRequest) (*v1beta1.UpdateResourceResponse, error)
	ListUserAppeals(context.Context, *v1beta1.ListUserAppealsRequest) (*v1beta1.ListUserAppealsResponse, error)
	ListAppeals(context.Context, *v1beta1.ListAppealsRequest) (*v1beta1.ListAppealsResponse, error)
	GetAppeal(context.Context, *v1beta1.GetAppealRequest) (*v1beta1.GetAppealResponse, error)
	CancelAppeal(context.Context, *v1beta1.CancelAppealRequest) (*v1beta1.CancelAppealResponse, error)
	RevokeAppeal(context.Context, *v1beta1.RevokeAppealRequest) (*v1beta1.RevokeAppealResponse, error)
	CreateAppeal(context.Context, *v1beta1.CreateAppealRequest) (*v1beta1.CreateAppealResponse, error)
	ListUserApprovals(context.Context, *v1beta1.ListUserApprovalsRequest) (*v1beta1.ListUserApprovalsResponse, error)
	ListApprovals(context.Context, *v1beta1.ListApprovalsRequest) (*v1beta1.ListApprovalsResponse, error)
	UpdateApproval(context.Context, *v1beta1.UpdateApprovalRequest) (*v1beta1.UpdateApprovalResponse, error)
}

GuardianServiceServer is the server API for GuardianService service. All implementations should embed UnimplementedGuardianServiceServer for forward compatibility

type UnimplementedGuardianServiceServer

type UnimplementedGuardianServiceServer struct {
}

UnimplementedGuardianServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedGuardianServiceServer) CancelAppeal

func (UnimplementedGuardianServiceServer) CreateAppeal

func (UnimplementedGuardianServiceServer) CreatePolicy

func (UnimplementedGuardianServiceServer) CreateProvider

func (UnimplementedGuardianServiceServer) GetAppeal

func (UnimplementedGuardianServiceServer) GetPolicy

func (UnimplementedGuardianServiceServer) GetProvider

func (UnimplementedGuardianServiceServer) GetResource

func (UnimplementedGuardianServiceServer) ListAppeals

func (UnimplementedGuardianServiceServer) ListApprovals

func (UnimplementedGuardianServiceServer) ListPolicies

func (UnimplementedGuardianServiceServer) ListProviders

func (UnimplementedGuardianServiceServer) ListResources

func (UnimplementedGuardianServiceServer) ListRoles

func (UnimplementedGuardianServiceServer) ListUserAppeals

func (UnimplementedGuardianServiceServer) ListUserApprovals

func (UnimplementedGuardianServiceServer) RevokeAppeal

func (UnimplementedGuardianServiceServer) UpdateApproval

func (UnimplementedGuardianServiceServer) UpdatePolicy

func (UnimplementedGuardianServiceServer) UpdateProvider

func (UnimplementedGuardianServiceServer) UpdateResource

type UnsafeGuardianServiceServer

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

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

Jump to

Keyboard shortcuts

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