authz

package
v0.0.0-...-5212a78 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_zenia_authz_v1_acl_proto protoreflect.FileDescriptor
View Source
var File_zenia_authz_v1_authz_service_proto protoreflect.FileDescriptor

Functions

func RegisterAuthzServiceServer

func RegisterAuthzServiceServer(s grpc.ServiceRegistrar, srv AuthzServiceServer)

Types

type AuthzServiceClient

type AuthzServiceClient interface {
	Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
}

AuthzServiceClient is the client API for AuthzService 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 AuthzServiceServer

type AuthzServiceServer interface {
	Check(context.Context, *CheckRequest) (*CheckResponse, error)
}

AuthzServiceServer is the server API for AuthzService service. All implementations should embed UnimplementedAuthzServiceServer for forward compatibility

type CheckRequest

type CheckRequest struct {
	Object    *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Relation  string  `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	SubjectId string  `protobuf:"bytes,3,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	// optional but highly recommend
	Zookie string `protobuf:"bytes,4,opt,name=zookie,proto3" json:"zookie,omitempty"`
	// follow subjectsets
	Expand bool `protobuf:"varint,5,opt,name=expand,proto3" json:"expand,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRequest) Descriptor deprecated

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

Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.

func (*CheckRequest) GetExpand

func (x *CheckRequest) GetExpand() bool

func (*CheckRequest) GetObject

func (x *CheckRequest) GetObject() *Object

func (*CheckRequest) GetRelation

func (x *CheckRequest) GetRelation() string

func (*CheckRequest) GetSubjectId

func (x *CheckRequest) GetSubjectId() string

func (*CheckRequest) GetZookie

func (x *CheckRequest) GetZookie() string

func (*CheckRequest) ProtoMessage

func (*CheckRequest) ProtoMessage()

func (*CheckRequest) ProtoReflect

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

func (*CheckRequest) Reset

func (x *CheckRequest) Reset()

func (*CheckRequest) String

func (x *CheckRequest) String() string

type CheckResponse

type CheckResponse struct {
	Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckResponse) Descriptor deprecated

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

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetAllowed

func (x *CheckResponse) GetAllowed() bool

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

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

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type Object

type Object struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Id        string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Object) Descriptor deprecated

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

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetId

func (x *Object) GetId() string

func (*Object) GetNamespace

func (x *Object) GetNamespace() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

type RelationTuple

type RelationTuple struct {
	Object   *Object  `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Relation string   `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	Subject  *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*RelationTuple) Descriptor deprecated

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

Deprecated: Use RelationTuple.ProtoReflect.Descriptor instead.

func (*RelationTuple) GetObject

func (x *RelationTuple) GetObject() *Object

func (*RelationTuple) GetRelation

func (x *RelationTuple) GetRelation() string

func (*RelationTuple) GetSubject

func (x *RelationTuple) GetSubject() *Subject

func (*RelationTuple) ProtoMessage

func (*RelationTuple) ProtoMessage()

func (*RelationTuple) ProtoReflect

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

func (*RelationTuple) Reset

func (x *RelationTuple) Reset()

func (*RelationTuple) String

func (x *RelationTuple) String() string

type Subject

type Subject struct {

	// Types that are assignable to Type:
	//	*Subject_SubjectId
	//	*Subject_SubjectSet
	Type isSubject_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetSubjectId

func (x *Subject) GetSubjectId() string

func (*Subject) GetSubjectSet

func (x *Subject) GetSubjectSet() *SubjectSet

func (*Subject) GetType

func (m *Subject) GetType() isSubject_Type

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

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

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) String

func (x *Subject) String() string

type SubjectSet

type SubjectSet struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ObjectId  string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Relation  string `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectSet) Descriptor deprecated

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

Deprecated: Use SubjectSet.ProtoReflect.Descriptor instead.

func (*SubjectSet) GetNamespace

func (x *SubjectSet) GetNamespace() string

func (*SubjectSet) GetObjectId

func (x *SubjectSet) GetObjectId() string

func (*SubjectSet) GetRelation

func (x *SubjectSet) GetRelation() string

func (*SubjectSet) ProtoMessage

func (*SubjectSet) ProtoMessage()

func (*SubjectSet) ProtoReflect

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

func (*SubjectSet) Reset

func (x *SubjectSet) Reset()

func (*SubjectSet) String

func (x *SubjectSet) String() string

type Subject_SubjectId

type Subject_SubjectId struct {
	SubjectId string `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3,oneof"`
}

type Subject_SubjectSet

type Subject_SubjectSet struct {
	SubjectSet *SubjectSet `protobuf:"bytes,2,opt,name=subject_set,json=subjectSet,proto3,oneof"`
}

type UnimplementedAuthzServiceServer

type UnimplementedAuthzServiceServer struct {
}

UnimplementedAuthzServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthzServiceServer) Check

type UnsafeAuthzServiceServer

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

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

Jump to

Keyboard shortcuts

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