user

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package user contains protobuf types for users.

Index

Constants

This section is empty.

Variables

Functions

func Put added in v0.14.0

Put sets a user in the databroker.

func PutServiceAccount added in v0.14.0

PutServiceAccount sets a service account in the databroker.

Types

type Claim added in v0.11.0

type Claim struct {
	Key    string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Claim) Descriptor deprecated added in v0.11.0

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

Deprecated: Use Claim.ProtoReflect.Descriptor instead.

func (*Claim) GetKey added in v0.11.0

func (x *Claim) GetKey() string

func (*Claim) GetValues added in v0.11.0

func (x *Claim) GetValues() []string

func (*Claim) ProtoMessage added in v0.11.0

func (*Claim) ProtoMessage()

func (*Claim) ProtoReflect added in v0.11.0

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

func (*Claim) Reset added in v0.11.0

func (x *Claim) Reset()

func (*Claim) String added in v0.11.0

func (x *Claim) String() string

type ServiceAccount added in v0.11.0

type ServiceAccount struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NamespaceId *string                `protobuf:"bytes,8,opt,name=namespace_id,json=namespaceId,proto3,oneof" json:"namespace_id,omitempty"`
	UserId      string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ExpiresAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	IssuedAt    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceAccount) Descriptor deprecated added in v0.11.0

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

Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead.

func (*ServiceAccount) GetExpiresAt added in v0.11.0

func (x *ServiceAccount) GetExpiresAt() *timestamppb.Timestamp

func (*ServiceAccount) GetId added in v0.11.0

func (x *ServiceAccount) GetId() string

func (*ServiceAccount) GetIssuedAt added in v0.11.0

func (x *ServiceAccount) GetIssuedAt() *timestamppb.Timestamp

func (*ServiceAccount) GetNamespaceId added in v0.15.0

func (x *ServiceAccount) GetNamespaceId() string

func (*ServiceAccount) GetUserId added in v0.11.0

func (x *ServiceAccount) GetUserId() string

func (*ServiceAccount) ProtoMessage added in v0.11.0

func (*ServiceAccount) ProtoMessage()

func (*ServiceAccount) ProtoReflect added in v0.11.0

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

func (*ServiceAccount) Reset added in v0.11.0

func (x *ServiceAccount) Reset()

func (*ServiceAccount) String added in v0.11.0

func (x *ServiceAccount) String() string

type User

type User struct {
	Version string                         `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Id      string                         `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Name    string                         `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Email   string                         `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Claims  map[string]*structpb.ListValue `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func Get

func Get(ctx context.Context, client databroker.DataBrokerServiceClient, userID string) (*User, error)

Get gets a user from the databroker.

func (*User) AddClaims added in v0.11.0

func (x *User) AddClaims(claims identity.FlattenedClaims)

AddClaims adds the flattened claims to the user.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetClaim

func (x *User) GetClaim(claim string) []interface{}

GetClaim returns a claim.

This method is used by the dashboard template HTML to display claim data.

func (*User) GetClaims

func (x *User) GetClaims() map[string]*structpb.ListValue

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetVersion

func (x *User) GetVersion() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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