Documentation
¶
Index ¶
- Variables
- type Identity
- func (*Identity) Descriptor() ([]byte, []int)deprecated
- func (x *Identity) GetLocalId() string
- func (x *Identity) GetOrigin() Origin
- func (x *Identity) GetOriginId() string
- func (*Identity) ProtoMessage()
- func (x *Identity) ProtoReflect() protoreflect.Message
- func (x *Identity) Reset()
- func (x *Identity) String() string
- type Kind
- type Object
- type Origin
- type Principal
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)deprecated
- func (x *Relationship) GetKind() Kind
- func (x *Relationship) GetObject() *Object
- func (x *Relationship) GetRole() *Role
- func (x *Relationship) GetSubject() *Subject
- func (x *Relationship) GetTimestamp() *timestamppb.Timestamp
- func (*Relationship) ProtoMessage()
- func (x *Relationship) ProtoReflect() protoreflect.Message
- func (x *Relationship) Reset()
- func (x *Relationship) String() string
- type RelationshipInput
- func (*RelationshipInput) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipInput) GetKind() Kind
- func (x *RelationshipInput) GetObject() *Object
- func (x *RelationshipInput) GetRole() *Role
- func (x *RelationshipInput) GetSubject() *Subject
- func (*RelationshipInput) ProtoMessage()
- func (x *RelationshipInput) ProtoReflect() protoreflect.Message
- func (x *RelationshipInput) Reset()
- func (x *RelationshipInput) String() string
- type RelationshipKey
- func (*RelationshipKey) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipKey) GetKind() Kind
- func (x *RelationshipKey) GetObject() *Object
- func (x *RelationshipKey) GetSubject() *Subject
- func (*RelationshipKey) ProtoMessage()
- func (x *RelationshipKey) ProtoReflect() protoreflect.Message
- func (x *RelationshipKey) Reset()
- func (x *RelationshipKey) String() string
- type Role
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetId() isSubject_Id
- func (x *Subject) GetIdentity() *Identity
- func (x *Subject) GetPrincipal() *Principal
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- type Subject_Identity
- type Subject_Principal
Constants ¶
This section is empty.
Variables ¶
var ( Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_ASSIGNMENT", } Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_ASSIGNMENT": 1, } )
Enum value maps for Kind.
var ( Origin_name = map[int32]string{ 0: "ORIGIN_UNSPECIFIED", 1: "ORIGIN_SELF", 2: "ORIGIN_GITLAB_FEDERATED", } Origin_value = map[string]int32{ "ORIGIN_UNSPECIFIED": 0, "ORIGIN_SELF": 1, "ORIGIN_GITLAB_FEDERATED": 2, } )
Enum value maps for Origin.
var File_proto_relationships_relationships_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct {
Origin Origin `protobuf:"varint,1,opt,name=origin,proto3,enum=gitlab.iam.relationships.v1.Origin" json:"origin,omitempty"`
OriginId string `protobuf:"bytes,2,opt,name=origin_id,json=originId,proto3" json:"origin_id,omitempty"`
LocalId string `protobuf:"bytes,3,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"`
// contains filtered or unexported fields
}
Identity carries an external identity. The server resolves it to a Principal. local_id is the integer user_id encoded as a decimal string.
func (*Identity) Descriptor
deprecated
func (*Identity) GetLocalId ¶
func (*Identity) GetOriginId ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) ProtoReflect ¶
func (x *Identity) ProtoReflect() protoreflect.Message
type Kind ¶
type Kind int32
func (Kind) Descriptor ¶
func (Kind) Descriptor() protoreflect.EnumDescriptor
func (Kind) EnumDescriptor
deprecated
func (Kind) Number ¶
func (x Kind) Number() protoreflect.EnumNumber
func (Kind) Type ¶
func (Kind) Type() protoreflect.EnumType
type Object ¶
type Object struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Object) Descriptor
deprecated
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
type Origin ¶
type Origin int32
func (Origin) Descriptor ¶
func (Origin) Descriptor() protoreflect.EnumDescriptor
func (Origin) EnumDescriptor
deprecated
func (Origin) Number ¶
func (x Origin) Number() protoreflect.EnumNumber
func (Origin) Type ¶
func (Origin) Type() protoreflect.EnumType
type Principal ¶
type Principal struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Principal) Descriptor
deprecated
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
type Relationship ¶
type Relationship struct {
Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // identity echoed from input; principal resolved by server on Read
Object *Object `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=gitlab.iam.relationships.v1.Kind" json:"kind,omitempty"` // never _UNSPECIFIED
Role *Role `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // server-assigned
// contains filtered or unexported fields
}
Relationship is the response shape (not validated on input).
func (*Relationship) Descriptor
deprecated
func (*Relationship) Descriptor() ([]byte, []int)
Deprecated: Use Relationship.ProtoReflect.Descriptor instead.
func (*Relationship) GetKind ¶
func (x *Relationship) GetKind() Kind
func (*Relationship) GetObject ¶
func (x *Relationship) GetObject() *Object
func (*Relationship) GetRole ¶
func (x *Relationship) GetRole() *Role
func (*Relationship) GetSubject ¶
func (x *Relationship) GetSubject() *Subject
func (*Relationship) GetTimestamp ¶
func (x *Relationship) GetTimestamp() *timestamppb.Timestamp
func (*Relationship) ProtoMessage ¶
func (*Relationship) ProtoMessage()
func (*Relationship) ProtoReflect ¶
func (x *Relationship) ProtoReflect() protoreflect.Message
func (*Relationship) Reset ¶
func (x *Relationship) Reset()
func (*Relationship) String ¶
func (x *Relationship) String() string
type RelationshipInput ¶
type RelationshipInput struct {
Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Object *Object `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=gitlab.iam.relationships.v1.Kind" json:"kind,omitempty"`
Role *Role `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
RelationshipInput is the write-input shape. The server resolves subject and assigns the timestamp.
func (*RelationshipInput) Descriptor
deprecated
func (*RelationshipInput) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipInput.ProtoReflect.Descriptor instead.
func (*RelationshipInput) GetKind ¶
func (x *RelationshipInput) GetKind() Kind
func (*RelationshipInput) GetObject ¶
func (x *RelationshipInput) GetObject() *Object
func (*RelationshipInput) GetRole ¶
func (x *RelationshipInput) GetRole() *Role
func (*RelationshipInput) GetSubject ¶
func (x *RelationshipInput) GetSubject() *Subject
func (*RelationshipInput) ProtoMessage ¶
func (*RelationshipInput) ProtoMessage()
func (*RelationshipInput) ProtoReflect ¶
func (x *RelationshipInput) ProtoReflect() protoreflect.Message
func (*RelationshipInput) Reset ¶
func (x *RelationshipInput) Reset()
func (*RelationshipInput) String ¶
func (x *RelationshipInput) String() string
type RelationshipKey ¶
type RelationshipKey struct {
Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Object *Object `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=gitlab.iam.relationships.v1.Kind" json:"kind,omitempty"`
// contains filtered or unexported fields
}
RelationshipKey identifies a single tuple for key-based deletes.
func (*RelationshipKey) Descriptor
deprecated
func (*RelationshipKey) Descriptor() ([]byte, []int)
Deprecated: Use RelationshipKey.ProtoReflect.Descriptor instead.
func (*RelationshipKey) GetKind ¶
func (x *RelationshipKey) GetKind() Kind
func (*RelationshipKey) GetObject ¶
func (x *RelationshipKey) GetObject() *Object
func (*RelationshipKey) GetSubject ¶
func (x *RelationshipKey) GetSubject() *Subject
func (*RelationshipKey) ProtoMessage ¶
func (*RelationshipKey) ProtoMessage()
func (*RelationshipKey) ProtoReflect ¶
func (x *RelationshipKey) ProtoReflect() protoreflect.Message
func (*RelationshipKey) Reset ¶
func (x *RelationshipKey) Reset()
func (*RelationshipKey) String ¶
func (x *RelationshipKey) String() string
type Role ¶
type Role struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
Role values are owned by the shared role-permissions library.
func (*Role) Descriptor
deprecated
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Subject ¶
type Subject struct {
// Types that are valid to be assigned to Id:
//
// *Subject_Identity
// *Subject_Principal
Id isSubject_Id `protobuf_oneof:"id"`
// contains filtered or unexported fields
}
Subject is the polymorphic identity type used on all RPCs. identity is used on input and in Lookup/Write responses. principal is used in ReadRelationshipsResponse.
func (*Subject) Descriptor
deprecated
func (*Subject) GetIdentity ¶
func (*Subject) GetPrincipal ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
type Subject_Identity ¶
type Subject_Identity struct {
Identity *Identity `protobuf:"bytes,1,opt,name=identity,proto3,oneof"`
}
type Subject_Principal ¶
type Subject_Principal struct {
Principal *Principal `protobuf:"bytes,2,opt,name=principal,proto3,oneof"`
}