protos

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

README

perm-go

Generated go clients for the CloudFoundry Permissions Service (Perm).

Documentation

Overview

Package protos is a generated protocol buffer package.

It is generated from these files:

actor.proto
permission.proto
permission_service.proto
role.proto
role_service.proto

It has these top-level messages:

Actor
Permission
HasPermissionRequest
HasPermissionResponse
ListResourcePatternsRequest
ListResourcePatternsResponse
Role
CreateRoleRequest
CreateRoleResponse
GetRoleRequest
GetRoleResponse
DeleteRoleRequest
DeleteRoleResponse
AssignRoleRequest
AssignRoleResponse
UnassignRoleRequest
UnassignRoleResponse
HasRoleRequest
HasRoleResponse
ListActorRolesRequest
ListActorRolesResponse
ListRolePermissionsRequest
ListRolePermissionsResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthActor = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowActor   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthPermission = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPermission   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthPermissionService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPermissionService   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRole = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRole   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRoleService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRoleService   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterPermissionServiceServer

func RegisterPermissionServiceServer(s *grpc.Server, srv PermissionServiceServer)

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s *grpc.Server, srv RoleServiceServer)

Types

type Actor

type Actor struct {
	ID        string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
}

func (*Actor) Descriptor

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

func (*Actor) GetID

func (m *Actor) GetID() string

func (*Actor) GetNamespace added in v0.0.4

func (m *Actor) GetNamespace() string

func (*Actor) Marshal

func (m *Actor) Marshal() (dAtA []byte, err error)

func (*Actor) MarshalTo

func (m *Actor) MarshalTo(dAtA []byte) (int, error)

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) Reset

func (m *Actor) Reset()

func (*Actor) Size

func (m *Actor) Size() (n int)

func (*Actor) String

func (m *Actor) String() string

func (*Actor) Unmarshal

func (m *Actor) Unmarshal(dAtA []byte) error

type AssignRoleRequest

type AssignRoleRequest struct {
	Actor    *Actor `protobuf:"bytes,1,opt,name=actor" json:"actor,omitempty"`
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
}

func (*AssignRoleRequest) Descriptor

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

func (*AssignRoleRequest) GetActor

func (m *AssignRoleRequest) GetActor() *Actor

func (*AssignRoleRequest) GetRoleName

func (m *AssignRoleRequest) GetRoleName() string

func (*AssignRoleRequest) Marshal

func (m *AssignRoleRequest) Marshal() (dAtA []byte, err error)

func (*AssignRoleRequest) MarshalTo

func (m *AssignRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*AssignRoleRequest) ProtoMessage

func (*AssignRoleRequest) ProtoMessage()

func (*AssignRoleRequest) Reset

func (m *AssignRoleRequest) Reset()

func (*AssignRoleRequest) Size

func (m *AssignRoleRequest) Size() (n int)

func (*AssignRoleRequest) String

func (m *AssignRoleRequest) String() string

func (*AssignRoleRequest) Unmarshal

func (m *AssignRoleRequest) Unmarshal(dAtA []byte) error

type AssignRoleResponse

type AssignRoleResponse struct {
}

func (*AssignRoleResponse) Descriptor

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

func (*AssignRoleResponse) Marshal

func (m *AssignRoleResponse) Marshal() (dAtA []byte, err error)

func (*AssignRoleResponse) MarshalTo

func (m *AssignRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*AssignRoleResponse) ProtoMessage

func (*AssignRoleResponse) ProtoMessage()

func (*AssignRoleResponse) Reset

func (m *AssignRoleResponse) Reset()

func (*AssignRoleResponse) Size

func (m *AssignRoleResponse) Size() (n int)

func (*AssignRoleResponse) String

func (m *AssignRoleResponse) String() string

func (*AssignRoleResponse) Unmarshal

func (m *AssignRoleResponse) Unmarshal(dAtA []byte) error

type CreateRoleRequest

type CreateRoleRequest struct {
	Name        string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions" json:"permissions,omitempty"`
}

func (*CreateRoleRequest) Descriptor

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

func (*CreateRoleRequest) GetName

func (m *CreateRoleRequest) GetName() string

func (*CreateRoleRequest) GetPermissions

func (m *CreateRoleRequest) GetPermissions() []*Permission

func (*CreateRoleRequest) Marshal

func (m *CreateRoleRequest) Marshal() (dAtA []byte, err error)

func (*CreateRoleRequest) MarshalTo

func (m *CreateRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) Reset

func (m *CreateRoleRequest) Reset()

func (*CreateRoleRequest) Size

func (m *CreateRoleRequest) Size() (n int)

func (*CreateRoleRequest) String

func (m *CreateRoleRequest) String() string

func (*CreateRoleRequest) Unmarshal

func (m *CreateRoleRequest) Unmarshal(dAtA []byte) error

type CreateRoleResponse

type CreateRoleResponse struct {
	Role *Role `protobuf:"bytes,1,opt,name=role" json:"role,omitempty"`
}

func (*CreateRoleResponse) Descriptor

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

func (*CreateRoleResponse) GetRole

func (m *CreateRoleResponse) GetRole() *Role

func (*CreateRoleResponse) Marshal

func (m *CreateRoleResponse) Marshal() (dAtA []byte, err error)

func (*CreateRoleResponse) MarshalTo

func (m *CreateRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*CreateRoleResponse) ProtoMessage

func (*CreateRoleResponse) ProtoMessage()

func (*CreateRoleResponse) Reset

func (m *CreateRoleResponse) Reset()

func (*CreateRoleResponse) Size

func (m *CreateRoleResponse) Size() (n int)

func (*CreateRoleResponse) String

func (m *CreateRoleResponse) String() string

func (*CreateRoleResponse) Unmarshal

func (m *CreateRoleResponse) Unmarshal(dAtA []byte) error

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*DeleteRoleRequest) Descriptor

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

func (*DeleteRoleRequest) GetName

func (m *DeleteRoleRequest) GetName() string

func (*DeleteRoleRequest) Marshal

func (m *DeleteRoleRequest) Marshal() (dAtA []byte, err error)

func (*DeleteRoleRequest) MarshalTo

func (m *DeleteRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) Reset

func (m *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) Size

func (m *DeleteRoleRequest) Size() (n int)

func (*DeleteRoleRequest) String

func (m *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Unmarshal

func (m *DeleteRoleRequest) Unmarshal(dAtA []byte) error

type DeleteRoleResponse

type DeleteRoleResponse struct {
}

func (*DeleteRoleResponse) Descriptor

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

func (*DeleteRoleResponse) Marshal

func (m *DeleteRoleResponse) Marshal() (dAtA []byte, err error)

func (*DeleteRoleResponse) MarshalTo

func (m *DeleteRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRoleResponse) ProtoMessage

func (*DeleteRoleResponse) ProtoMessage()

func (*DeleteRoleResponse) Reset

func (m *DeleteRoleResponse) Reset()

func (*DeleteRoleResponse) Size

func (m *DeleteRoleResponse) Size() (n int)

func (*DeleteRoleResponse) String

func (m *DeleteRoleResponse) String() string

func (*DeleteRoleResponse) Unmarshal

func (m *DeleteRoleResponse) Unmarshal(dAtA []byte) error

type GetRoleRequest

type GetRoleRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*GetRoleRequest) Descriptor

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

func (*GetRoleRequest) GetName

func (m *GetRoleRequest) GetName() string

func (*GetRoleRequest) Marshal

func (m *GetRoleRequest) Marshal() (dAtA []byte, err error)

func (*GetRoleRequest) MarshalTo

func (m *GetRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) Reset

func (m *GetRoleRequest) Reset()

func (*GetRoleRequest) Size

func (m *GetRoleRequest) Size() (n int)

func (*GetRoleRequest) String

func (m *GetRoleRequest) String() string

func (*GetRoleRequest) Unmarshal

func (m *GetRoleRequest) Unmarshal(dAtA []byte) error

type GetRoleResponse

type GetRoleResponse struct {
	Role *Role `protobuf:"bytes,1,opt,name=role" json:"role,omitempty"`
}

func (*GetRoleResponse) Descriptor

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

func (*GetRoleResponse) GetRole

func (m *GetRoleResponse) GetRole() *Role

func (*GetRoleResponse) Marshal

func (m *GetRoleResponse) Marshal() (dAtA []byte, err error)

func (*GetRoleResponse) MarshalTo

func (m *GetRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetRoleResponse) ProtoMessage

func (*GetRoleResponse) ProtoMessage()

func (*GetRoleResponse) Reset

func (m *GetRoleResponse) Reset()

func (*GetRoleResponse) Size

func (m *GetRoleResponse) Size() (n int)

func (*GetRoleResponse) String

func (m *GetRoleResponse) String() string

func (*GetRoleResponse) Unmarshal

func (m *GetRoleResponse) Unmarshal(dAtA []byte) error

type HasPermissionRequest

type HasPermissionRequest struct {
	Actor    *Actor `protobuf:"bytes,1,opt,name=actor" json:"actor,omitempty"`
	Action   string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
}

func (*HasPermissionRequest) Descriptor

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

func (*HasPermissionRequest) GetAction added in v0.0.5

func (m *HasPermissionRequest) GetAction() string

func (*HasPermissionRequest) GetActor

func (m *HasPermissionRequest) GetActor() *Actor

func (*HasPermissionRequest) GetResource added in v0.0.5

func (m *HasPermissionRequest) GetResource() string

func (*HasPermissionRequest) Marshal

func (m *HasPermissionRequest) Marshal() (dAtA []byte, err error)

func (*HasPermissionRequest) MarshalTo

func (m *HasPermissionRequest) MarshalTo(dAtA []byte) (int, error)

func (*HasPermissionRequest) ProtoMessage

func (*HasPermissionRequest) ProtoMessage()

func (*HasPermissionRequest) Reset

func (m *HasPermissionRequest) Reset()

func (*HasPermissionRequest) Size

func (m *HasPermissionRequest) Size() (n int)

func (*HasPermissionRequest) String

func (m *HasPermissionRequest) String() string

func (*HasPermissionRequest) Unmarshal

func (m *HasPermissionRequest) Unmarshal(dAtA []byte) error

type HasPermissionResponse

type HasPermissionResponse struct {
	HasPermission bool `protobuf:"varint,1,opt,name=has_permission,json=hasPermission,proto3" json:"has_permission,omitempty"`
}

func (*HasPermissionResponse) Descriptor

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

func (*HasPermissionResponse) GetHasPermission

func (m *HasPermissionResponse) GetHasPermission() bool

func (*HasPermissionResponse) Marshal

func (m *HasPermissionResponse) Marshal() (dAtA []byte, err error)

func (*HasPermissionResponse) MarshalTo

func (m *HasPermissionResponse) MarshalTo(dAtA []byte) (int, error)

func (*HasPermissionResponse) ProtoMessage

func (*HasPermissionResponse) ProtoMessage()

func (*HasPermissionResponse) Reset

func (m *HasPermissionResponse) Reset()

func (*HasPermissionResponse) Size

func (m *HasPermissionResponse) Size() (n int)

func (*HasPermissionResponse) String

func (m *HasPermissionResponse) String() string

func (*HasPermissionResponse) Unmarshal

func (m *HasPermissionResponse) Unmarshal(dAtA []byte) error

type HasRoleRequest

type HasRoleRequest struct {
	Actor    *Actor `protobuf:"bytes,1,opt,name=actor" json:"actor,omitempty"`
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
}

func (*HasRoleRequest) Descriptor

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

func (*HasRoleRequest) GetActor

func (m *HasRoleRequest) GetActor() *Actor

func (*HasRoleRequest) GetRoleName

func (m *HasRoleRequest) GetRoleName() string

func (*HasRoleRequest) Marshal

func (m *HasRoleRequest) Marshal() (dAtA []byte, err error)

func (*HasRoleRequest) MarshalTo

func (m *HasRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*HasRoleRequest) ProtoMessage

func (*HasRoleRequest) ProtoMessage()

func (*HasRoleRequest) Reset

func (m *HasRoleRequest) Reset()

func (*HasRoleRequest) Size

func (m *HasRoleRequest) Size() (n int)

func (*HasRoleRequest) String

func (m *HasRoleRequest) String() string

func (*HasRoleRequest) Unmarshal

func (m *HasRoleRequest) Unmarshal(dAtA []byte) error

type HasRoleResponse

type HasRoleResponse struct {
	HasRole bool `protobuf:"varint,1,opt,name=has_role,json=hasRole,proto3" json:"has_role,omitempty"`
}

func (*HasRoleResponse) Descriptor

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

func (*HasRoleResponse) GetHasRole

func (m *HasRoleResponse) GetHasRole() bool

func (*HasRoleResponse) Marshal

func (m *HasRoleResponse) Marshal() (dAtA []byte, err error)

func (*HasRoleResponse) MarshalTo

func (m *HasRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*HasRoleResponse) ProtoMessage

func (*HasRoleResponse) ProtoMessage()

func (*HasRoleResponse) Reset

func (m *HasRoleResponse) Reset()

func (*HasRoleResponse) Size

func (m *HasRoleResponse) Size() (n int)

func (*HasRoleResponse) String

func (m *HasRoleResponse) String() string

func (*HasRoleResponse) Unmarshal

func (m *HasRoleResponse) Unmarshal(dAtA []byte) error

type ListActorRolesRequest

type ListActorRolesRequest struct {
	Actor *Actor `protobuf:"bytes,2,opt,name=actor" json:"actor,omitempty"`
}

func (*ListActorRolesRequest) Descriptor

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

func (*ListActorRolesRequest) GetActor

func (m *ListActorRolesRequest) GetActor() *Actor

func (*ListActorRolesRequest) Marshal

func (m *ListActorRolesRequest) Marshal() (dAtA []byte, err error)

func (*ListActorRolesRequest) MarshalTo

func (m *ListActorRolesRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListActorRolesRequest) ProtoMessage

func (*ListActorRolesRequest) ProtoMessage()

func (*ListActorRolesRequest) Reset

func (m *ListActorRolesRequest) Reset()

func (*ListActorRolesRequest) Size

func (m *ListActorRolesRequest) Size() (n int)

func (*ListActorRolesRequest) String

func (m *ListActorRolesRequest) String() string

func (*ListActorRolesRequest) Unmarshal

func (m *ListActorRolesRequest) Unmarshal(dAtA []byte) error

type ListActorRolesResponse

type ListActorRolesResponse struct {
	Roles []*Role `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"`
}

func (*ListActorRolesResponse) Descriptor

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

func (*ListActorRolesResponse) GetRoles

func (m *ListActorRolesResponse) GetRoles() []*Role

func (*ListActorRolesResponse) Marshal

func (m *ListActorRolesResponse) Marshal() (dAtA []byte, err error)

func (*ListActorRolesResponse) MarshalTo

func (m *ListActorRolesResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListActorRolesResponse) ProtoMessage

func (*ListActorRolesResponse) ProtoMessage()

func (*ListActorRolesResponse) Reset

func (m *ListActorRolesResponse) Reset()

func (*ListActorRolesResponse) Size

func (m *ListActorRolesResponse) Size() (n int)

func (*ListActorRolesResponse) String

func (m *ListActorRolesResponse) String() string

func (*ListActorRolesResponse) Unmarshal

func (m *ListActorRolesResponse) Unmarshal(dAtA []byte) error

type ListResourcePatternsRequest

type ListResourcePatternsRequest struct {
	Actor  *Actor `protobuf:"bytes,2,opt,name=actor" json:"actor,omitempty"`
	Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
}

func (*ListResourcePatternsRequest) Descriptor

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

func (*ListResourcePatternsRequest) GetAction added in v0.0.5

func (m *ListResourcePatternsRequest) GetAction() string

func (*ListResourcePatternsRequest) GetActor

func (m *ListResourcePatternsRequest) GetActor() *Actor

func (*ListResourcePatternsRequest) Marshal

func (m *ListResourcePatternsRequest) Marshal() (dAtA []byte, err error)

func (*ListResourcePatternsRequest) MarshalTo

func (m *ListResourcePatternsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListResourcePatternsRequest) ProtoMessage

func (*ListResourcePatternsRequest) ProtoMessage()

func (*ListResourcePatternsRequest) Reset

func (m *ListResourcePatternsRequest) Reset()

func (*ListResourcePatternsRequest) Size

func (m *ListResourcePatternsRequest) Size() (n int)

func (*ListResourcePatternsRequest) String

func (m *ListResourcePatternsRequest) String() string

func (*ListResourcePatternsRequest) Unmarshal

func (m *ListResourcePatternsRequest) Unmarshal(dAtA []byte) error

type ListResourcePatternsResponse

type ListResourcePatternsResponse struct {
	ResourcePatterns []string `protobuf:"bytes,2,rep,name=resource_patterns,json=resourcePatterns" json:"resource_patterns,omitempty"`
}

func (*ListResourcePatternsResponse) Descriptor

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

func (*ListResourcePatternsResponse) GetResourcePatterns

func (m *ListResourcePatternsResponse) GetResourcePatterns() []string

func (*ListResourcePatternsResponse) Marshal

func (m *ListResourcePatternsResponse) Marshal() (dAtA []byte, err error)

func (*ListResourcePatternsResponse) MarshalTo

func (m *ListResourcePatternsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListResourcePatternsResponse) ProtoMessage

func (*ListResourcePatternsResponse) ProtoMessage()

func (*ListResourcePatternsResponse) Reset

func (m *ListResourcePatternsResponse) Reset()

func (*ListResourcePatternsResponse) Size

func (m *ListResourcePatternsResponse) Size() (n int)

func (*ListResourcePatternsResponse) String

func (*ListResourcePatternsResponse) Unmarshal

func (m *ListResourcePatternsResponse) Unmarshal(dAtA []byte) error

type ListRolePermissionsRequest

type ListRolePermissionsRequest struct {
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
}

func (*ListRolePermissionsRequest) Descriptor

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

func (*ListRolePermissionsRequest) GetRoleName

func (m *ListRolePermissionsRequest) GetRoleName() string

func (*ListRolePermissionsRequest) Marshal

func (m *ListRolePermissionsRequest) Marshal() (dAtA []byte, err error)

func (*ListRolePermissionsRequest) MarshalTo

func (m *ListRolePermissionsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListRolePermissionsRequest) ProtoMessage

func (*ListRolePermissionsRequest) ProtoMessage()

func (*ListRolePermissionsRequest) Reset

func (m *ListRolePermissionsRequest) Reset()

func (*ListRolePermissionsRequest) Size

func (m *ListRolePermissionsRequest) Size() (n int)

func (*ListRolePermissionsRequest) String

func (m *ListRolePermissionsRequest) String() string

func (*ListRolePermissionsRequest) Unmarshal

func (m *ListRolePermissionsRequest) Unmarshal(dAtA []byte) error

type ListRolePermissionsResponse

type ListRolePermissionsResponse struct {
	Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions" json:"permissions,omitempty"`
}

func (*ListRolePermissionsResponse) Descriptor

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

func (*ListRolePermissionsResponse) GetPermissions

func (m *ListRolePermissionsResponse) GetPermissions() []*Permission

func (*ListRolePermissionsResponse) Marshal

func (m *ListRolePermissionsResponse) Marshal() (dAtA []byte, err error)

func (*ListRolePermissionsResponse) MarshalTo

func (m *ListRolePermissionsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListRolePermissionsResponse) ProtoMessage

func (*ListRolePermissionsResponse) ProtoMessage()

func (*ListRolePermissionsResponse) Reset

func (m *ListRolePermissionsResponse) Reset()

func (*ListRolePermissionsResponse) Size

func (m *ListRolePermissionsResponse) Size() (n int)

func (*ListRolePermissionsResponse) String

func (m *ListRolePermissionsResponse) String() string

func (*ListRolePermissionsResponse) Unmarshal

func (m *ListRolePermissionsResponse) Unmarshal(dAtA []byte) error

type Permission

type Permission struct {
	Action          string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	ResourcePattern string `protobuf:"bytes,3,opt,name=resource_pattern,json=resourcePattern,proto3" json:"resource_pattern,omitempty"`
}

func (*Permission) Descriptor

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

func (*Permission) GetAction added in v0.0.5

func (m *Permission) GetAction() string

func (*Permission) GetResourcePattern

func (m *Permission) GetResourcePattern() string

func (*Permission) Marshal

func (m *Permission) Marshal() (dAtA []byte, err error)

func (*Permission) MarshalTo

func (m *Permission) MarshalTo(dAtA []byte) (int, error)

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) Reset

func (m *Permission) Reset()

func (*Permission) Size

func (m *Permission) Size() (n int)

func (*Permission) String

func (m *Permission) String() string

func (*Permission) Unmarshal

func (m *Permission) Unmarshal(dAtA []byte) error

type PermissionServiceClient

type PermissionServiceClient interface {
	HasPermission(ctx context.Context, in *HasPermissionRequest, opts ...grpc.CallOption) (*HasPermissionResponse, error)
	ListResourcePatterns(ctx context.Context, in *ListResourcePatternsRequest, opts ...grpc.CallOption) (*ListResourcePatternsResponse, error)
}

func NewPermissionServiceClient

func NewPermissionServiceClient(cc *grpc.ClientConn) PermissionServiceClient

type PermissionServiceServer

type PermissionServiceServer interface {
	HasPermission(context.Context, *HasPermissionRequest) (*HasPermissionResponse, error)
	ListResourcePatterns(context.Context, *ListResourcePatternsRequest) (*ListResourcePatternsResponse, error)
}

type Role

type Role struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func (*Role) Descriptor

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

func (*Role) GetName

func (m *Role) GetName() string

func (*Role) Marshal

func (m *Role) Marshal() (dAtA []byte, err error)

func (*Role) MarshalTo

func (m *Role) MarshalTo(dAtA []byte) (int, error)

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) Reset

func (m *Role) Reset()

func (*Role) Size

func (m *Role) Size() (n int)

func (*Role) String

func (m *Role) String() string

func (*Role) Unmarshal

func (m *Role) Unmarshal(dAtA []byte) error

type RoleServiceClient

type RoleServiceClient interface {
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
	AssignRole(ctx context.Context, in *AssignRoleRequest, opts ...grpc.CallOption) (*AssignRoleResponse, error)
	UnassignRole(ctx context.Context, in *UnassignRoleRequest, opts ...grpc.CallOption) (*UnassignRoleResponse, error)
	HasRole(ctx context.Context, in *HasRoleRequest, opts ...grpc.CallOption) (*HasRoleResponse, error)
	ListActorRoles(ctx context.Context, in *ListActorRolesRequest, opts ...grpc.CallOption) (*ListActorRolesResponse, error)
	ListRolePermissions(ctx context.Context, in *ListRolePermissionsRequest, opts ...grpc.CallOption) (*ListRolePermissionsResponse, error)
}

func NewRoleServiceClient

func NewRoleServiceClient(cc *grpc.ClientConn) RoleServiceClient

type UnassignRoleRequest

type UnassignRoleRequest struct {
	Actor    *Actor `protobuf:"bytes,1,opt,name=actor" json:"actor,omitempty"`
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
}

func (*UnassignRoleRequest) Descriptor

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

func (*UnassignRoleRequest) GetActor

func (m *UnassignRoleRequest) GetActor() *Actor

func (*UnassignRoleRequest) GetRoleName

func (m *UnassignRoleRequest) GetRoleName() string

func (*UnassignRoleRequest) Marshal

func (m *UnassignRoleRequest) Marshal() (dAtA []byte, err error)

func (*UnassignRoleRequest) MarshalTo

func (m *UnassignRoleRequest) MarshalTo(dAtA []byte) (int, error)

func (*UnassignRoleRequest) ProtoMessage

func (*UnassignRoleRequest) ProtoMessage()

func (*UnassignRoleRequest) Reset

func (m *UnassignRoleRequest) Reset()

func (*UnassignRoleRequest) Size

func (m *UnassignRoleRequest) Size() (n int)

func (*UnassignRoleRequest) String

func (m *UnassignRoleRequest) String() string

func (*UnassignRoleRequest) Unmarshal

func (m *UnassignRoleRequest) Unmarshal(dAtA []byte) error

type UnassignRoleResponse

type UnassignRoleResponse struct {
}

func (*UnassignRoleResponse) Descriptor

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

func (*UnassignRoleResponse) Marshal

func (m *UnassignRoleResponse) Marshal() (dAtA []byte, err error)

func (*UnassignRoleResponse) MarshalTo

func (m *UnassignRoleResponse) MarshalTo(dAtA []byte) (int, error)

func (*UnassignRoleResponse) ProtoMessage

func (*UnassignRoleResponse) ProtoMessage()

func (*UnassignRoleResponse) Reset

func (m *UnassignRoleResponse) Reset()

func (*UnassignRoleResponse) Size

func (m *UnassignRoleResponse) Size() (n int)

func (*UnassignRoleResponse) String

func (m *UnassignRoleResponse) String() string

func (*UnassignRoleResponse) Unmarshal

func (m *UnassignRoleResponse) Unmarshal(dAtA []byte) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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