shieldv1grpc

package
v1.2.0-20230223111435-... 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 ShieldService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "odpf.shield.v1.ShieldService",
	HandlerType: (*ShieldServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _ShieldService_ListUsers_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _ShieldService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _ShieldService_GetUser_Handler,
		},
		{
			MethodName: "GetCurrentUser",
			Handler:    _ShieldService_GetCurrentUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _ShieldService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateCurrentUser",
			Handler:    _ShieldService_UpdateCurrentUser_Handler,
		},
		{
			MethodName: "ListGroups",
			Handler:    _ShieldService_ListGroups_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _ShieldService_CreateGroup_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _ShieldService_GetGroup_Handler,
		},
		{
			MethodName: "ListGroupUsers",
			Handler:    _ShieldService_ListGroupUsers_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _ShieldService_UpdateGroup_Handler,
		},
		{
			MethodName: "ListRoles",
			Handler:    _ShieldService_ListRoles_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _ShieldService_CreateRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _ShieldService_GetRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _ShieldService_UpdateRole_Handler,
		},
		{
			MethodName: "ListOrganizations",
			Handler:    _ShieldService_ListOrganizations_Handler,
		},
		{
			MethodName: "CreateOrganization",
			Handler:    _ShieldService_CreateOrganization_Handler,
		},
		{
			MethodName: "GetOrganization",
			Handler:    _ShieldService_GetOrganization_Handler,
		},
		{
			MethodName: "UpdateOrganization",
			Handler:    _ShieldService_UpdateOrganization_Handler,
		},
		{
			MethodName: "ListProjects",
			Handler:    _ShieldService_ListProjects_Handler,
		},
		{
			MethodName: "CreateProject",
			Handler:    _ShieldService_CreateProject_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _ShieldService_GetProject_Handler,
		},
		{
			MethodName: "UpdateProject",
			Handler:    _ShieldService_UpdateProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "odpf/shield/v1/shield.proto",
}

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

Functions

func RegisterShieldServiceServer

func RegisterShieldServiceServer(s grpc.ServiceRegistrar, srv ShieldServiceServer)

Types

type ShieldServiceClient

type ShieldServiceClient interface {
	ListUsers(ctx context.Context, in *v1.ListUsersRequest, opts ...grpc.CallOption) (*v1.ListUsersResponse, error)
	CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserResponse, error)
	GetUser(ctx context.Context, in *v1.GetUserRequest, opts ...grpc.CallOption) (*v1.GetUserResponse, error)
	GetCurrentUser(ctx context.Context, in *v1.GetCurrentUserRequest, opts ...grpc.CallOption) (*v1.GetCurrentUserResponse, error)
	UpdateUser(ctx context.Context, in *v1.UpdateUserRequest, opts ...grpc.CallOption) (*v1.UpdateUserResponse, error)
	UpdateCurrentUser(ctx context.Context, in *v1.UpdateCurrentUserRequest, opts ...grpc.CallOption) (*v1.UpdateCurrentUserResponse, error)
	ListGroups(ctx context.Context, in *v1.ListGroupsRequest, opts ...grpc.CallOption) (*v1.ListGroupsResponse, error)
	CreateGroup(ctx context.Context, in *v1.CreateGroupRequest, opts ...grpc.CallOption) (*v1.CreateGroupResponse, error)
	GetGroup(ctx context.Context, in *v1.GetGroupRequest, opts ...grpc.CallOption) (*v1.GetGroupResponse, error)
	ListGroupUsers(ctx context.Context, in *v1.ListGroupUsersRequest, opts ...grpc.CallOption) (*v1.ListGroupUsersResponse, error)
	UpdateGroup(ctx context.Context, in *v1.UpdateGroupRequest, opts ...grpc.CallOption) (*v1.UpdateGroupResponse, error)
	ListRoles(ctx context.Context, in *v1.ListRolesRequest, opts ...grpc.CallOption) (*v1.ListRolesResponse, error)
	CreateRole(ctx context.Context, in *v1.CreateRoleRequest, opts ...grpc.CallOption) (*v1.CreateRoleResponse, error)
	GetRole(ctx context.Context, in *v1.GetRoleRequest, opts ...grpc.CallOption) (*v1.GetRoleResponse, error)
	UpdateRole(ctx context.Context, in *v1.UpdateRoleRequest, opts ...grpc.CallOption) (*v1.UpdateRoleResponse, error)
	ListOrganizations(ctx context.Context, in *v1.ListOrganizationsRequest, opts ...grpc.CallOption) (*v1.ListOrganizationsResponse, error)
	CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationResponse, error)
	GetOrganization(ctx context.Context, in *v1.GetOrganizationRequest, opts ...grpc.CallOption) (*v1.GetOrganizationResponse, error)
	UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationResponse, error)
	ListProjects(ctx context.Context, in *v1.ListProjectsRequest, opts ...grpc.CallOption) (*v1.ListProjectsResponse, error)
	CreateProject(ctx context.Context, in *v1.CreateProjectRequest, opts ...grpc.CallOption) (*v1.CreateProjectResponse, error)
	GetProject(ctx context.Context, in *v1.GetProjectRequest, opts ...grpc.CallOption) (*v1.GetProjectResponse, error)
	UpdateProject(ctx context.Context, in *v1.UpdateProjectRequest, opts ...grpc.CallOption) (*v1.UpdateProjectResponse, error)
}

ShieldServiceClient is the client API for ShieldService 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 NewShieldServiceClient

func NewShieldServiceClient(cc grpc.ClientConnInterface) ShieldServiceClient

type ShieldServiceServer

type ShieldServiceServer interface {
	ListUsers(context.Context, *v1.ListUsersRequest) (*v1.ListUsersResponse, error)
	CreateUser(context.Context, *v1.CreateUserRequest) (*v1.CreateUserResponse, error)
	GetUser(context.Context, *v1.GetUserRequest) (*v1.GetUserResponse, error)
	GetCurrentUser(context.Context, *v1.GetCurrentUserRequest) (*v1.GetCurrentUserResponse, error)
	UpdateUser(context.Context, *v1.UpdateUserRequest) (*v1.UpdateUserResponse, error)
	UpdateCurrentUser(context.Context, *v1.UpdateCurrentUserRequest) (*v1.UpdateCurrentUserResponse, error)
	ListGroups(context.Context, *v1.ListGroupsRequest) (*v1.ListGroupsResponse, error)
	CreateGroup(context.Context, *v1.CreateGroupRequest) (*v1.CreateGroupResponse, error)
	GetGroup(context.Context, *v1.GetGroupRequest) (*v1.GetGroupResponse, error)
	ListGroupUsers(context.Context, *v1.ListGroupUsersRequest) (*v1.ListGroupUsersResponse, error)
	UpdateGroup(context.Context, *v1.UpdateGroupRequest) (*v1.UpdateGroupResponse, error)
	ListRoles(context.Context, *v1.ListRolesRequest) (*v1.ListRolesResponse, error)
	CreateRole(context.Context, *v1.CreateRoleRequest) (*v1.CreateRoleResponse, error)
	GetRole(context.Context, *v1.GetRoleRequest) (*v1.GetRoleResponse, error)
	UpdateRole(context.Context, *v1.UpdateRoleRequest) (*v1.UpdateRoleResponse, error)
	ListOrganizations(context.Context, *v1.ListOrganizationsRequest) (*v1.ListOrganizationsResponse, error)
	CreateOrganization(context.Context, *v1.CreateOrganizationRequest) (*v1.CreateOrganizationResponse, error)
	GetOrganization(context.Context, *v1.GetOrganizationRequest) (*v1.GetOrganizationResponse, error)
	UpdateOrganization(context.Context, *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationResponse, error)
	ListProjects(context.Context, *v1.ListProjectsRequest) (*v1.ListProjectsResponse, error)
	CreateProject(context.Context, *v1.CreateProjectRequest) (*v1.CreateProjectResponse, error)
	GetProject(context.Context, *v1.GetProjectRequest) (*v1.GetProjectResponse, error)
	UpdateProject(context.Context, *v1.UpdateProjectRequest) (*v1.UpdateProjectResponse, error)
}

ShieldServiceServer is the server API for ShieldService service. All implementations should embed UnimplementedShieldServiceServer for forward compatibility

type UnimplementedShieldServiceServer

type UnimplementedShieldServiceServer struct {
}

UnimplementedShieldServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedShieldServiceServer) CreateGroup

func (UnimplementedShieldServiceServer) CreateOrganization

func (UnimplementedShieldServiceServer) CreateProject

func (UnimplementedShieldServiceServer) CreateRole

func (UnimplementedShieldServiceServer) CreateUser

func (UnimplementedShieldServiceServer) GetCurrentUser

func (UnimplementedShieldServiceServer) GetGroup

func (UnimplementedShieldServiceServer) GetOrganization

func (UnimplementedShieldServiceServer) GetProject

func (UnimplementedShieldServiceServer) GetRole

func (UnimplementedShieldServiceServer) GetUser

func (UnimplementedShieldServiceServer) ListGroupUsers

func (UnimplementedShieldServiceServer) ListGroups

func (UnimplementedShieldServiceServer) ListOrganizations

func (UnimplementedShieldServiceServer) ListProjects

func (UnimplementedShieldServiceServer) ListRoles

func (UnimplementedShieldServiceServer) ListUsers

func (UnimplementedShieldServiceServer) UpdateCurrentUser

func (UnimplementedShieldServiceServer) UpdateGroup

func (UnimplementedShieldServiceServer) UpdateOrganization

func (UnimplementedShieldServiceServer) UpdateProject

func (UnimplementedShieldServiceServer) UpdateRole

func (UnimplementedShieldServiceServer) UpdateUser

type UnsafeShieldServiceServer

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

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

Jump to

Keyboard shortcuts

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