identity

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Identity_PowerboxTag_TypeID = 0xf35052cfb1d3bbe8

Identity_PowerboxTag_TypeID is the unique identifier for the type Identity_PowerboxTag.

View Source
const Identity_TypeID = 0xc084987aa951dd18

Identity_TypeID is the unique identifier for the type Identity.

View Source
const Identity_getProfile_Params_TypeID = 0xf32d79a7b575d94c

Identity_getProfile_Params_TypeID is the unique identifier for the type Identity_getProfile_Params.

View Source
const Identity_getProfile_Results_TypeID = 0xcd7272b855c92f6d

Identity_getProfile_Results_TypeID is the unique identifier for the type Identity_getProfile_Results.

View Source
const Profile_Pronouns_TypeID = 0x84752dcf8539ab01

Profile_Pronouns_TypeID is the unique identifier for the type Profile_Pronouns.

View Source
const Profile_TypeID = 0xd3d0c34d7201fcef

Profile_TypeID is the unique identifier for the type Profile.

View Source
const UserInfo_TypeID = 0x94b9d1efb35d11d3

UserInfo_TypeID is the unique identifier for the type UserInfo.

Variables

This section is empty.

Functions

func Identity_Methods

func Identity_Methods(methods []server.Method, s Identity_Server) []server.Method

Identity_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Identity_NewServer

func Identity_NewServer(s Identity_Server) *server.Server

Identity_NewServer creates a new Server from an implementation of Identity_Server.

Types

type Identity

type Identity capnp.Client

func Identity_ServerToClient

func Identity_ServerToClient(s Identity_Server) Identity

Identity_ServerToClient creates a new Client from an implementation of Identity_Server. The caller is responsible for calling Release on the returned Client.

func (Identity) AddRef

func (c Identity) AddRef() Identity

AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.

func (Identity) DecodeFromPtr

func (Identity) DecodeFromPtr(p capnp.Ptr) Identity

func (Identity) EncodeAsPtr

func (c Identity) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Identity) GetFlowLimiter

func (c Identity) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Identity) GetProfile

func (Identity) IsSame

func (c Identity) IsSame(other Identity) bool

IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.

func (Identity) IsValid

func (c Identity) IsValid() bool

IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.

func (Identity) Release

func (c Identity) Release()

Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.

Release will panic if c has already been released, but not if c is nil or resolved to null.

func (Identity) Resolve

func (c Identity) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Identity) SetFlowLimiter

func (c Identity) SetFlowLimiter(lim fc.FlowLimiter)

Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.

func (Identity) String

func (c Identity) String() string

String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.

type Identity_List

type Identity_List = capnp.CapList[Identity]

Identity_List is a list of Identity.

func NewIdentity_List

func NewIdentity_List(s *capnp.Segment, sz int32) (Identity_List, error)

NewIdentity creates a new list of Identity.

type Identity_PowerboxTag

type Identity_PowerboxTag capnp.Struct

func NewIdentity_PowerboxTag

func NewIdentity_PowerboxTag(s *capnp.Segment) (Identity_PowerboxTag, error)

func NewRootIdentity_PowerboxTag

func NewRootIdentity_PowerboxTag(s *capnp.Segment) (Identity_PowerboxTag, error)

func ReadRootIdentity_PowerboxTag

func ReadRootIdentity_PowerboxTag(msg *capnp.Message) (Identity_PowerboxTag, error)

func (Identity_PowerboxTag) DecodeFromPtr

func (Identity_PowerboxTag) EncodeAsPtr

func (s Identity_PowerboxTag) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Identity_PowerboxTag) HasPermissions

func (s Identity_PowerboxTag) HasPermissions() bool

func (Identity_PowerboxTag) IsValid

func (s Identity_PowerboxTag) IsValid() bool

func (Identity_PowerboxTag) Message

func (s Identity_PowerboxTag) Message() *capnp.Message

func (Identity_PowerboxTag) NewPermissions

func (s Identity_PowerboxTag) NewPermissions(n int32) (capnp.BitList, error)

NewPermissions sets the permissions field to a newly allocated capnp.BitList, preferring placement in s's segment.

func (Identity_PowerboxTag) Permissions

func (s Identity_PowerboxTag) Permissions() (capnp.BitList, error)

func (Identity_PowerboxTag) Segment

func (s Identity_PowerboxTag) Segment() *capnp.Segment

func (Identity_PowerboxTag) SetPermissions

func (s Identity_PowerboxTag) SetPermissions(v capnp.BitList) error

func (Identity_PowerboxTag) String

func (s Identity_PowerboxTag) String() string

func (Identity_PowerboxTag) ToPtr

func (s Identity_PowerboxTag) ToPtr() capnp.Ptr

type Identity_PowerboxTag_Future

type Identity_PowerboxTag_Future struct{ *capnp.Future }

Identity_PowerboxTag_Future is a wrapper for a Identity_PowerboxTag promised by a client call.

func (Identity_PowerboxTag_Future) Struct

type Identity_PowerboxTag_List

type Identity_PowerboxTag_List = capnp.StructList[Identity_PowerboxTag]

Identity_PowerboxTag_List is a list of Identity_PowerboxTag.

func NewIdentity_PowerboxTag_List

func NewIdentity_PowerboxTag_List(s *capnp.Segment, sz int32) (Identity_PowerboxTag_List, error)

NewIdentity_PowerboxTag creates a new list of Identity_PowerboxTag.

type Identity_Server

type Identity_Server interface {
	GetProfile(context.Context, Identity_getProfile) error
}

type Identity_getProfile

type Identity_getProfile struct {
	*server.Call
}

Identity_getProfile holds the state for a server call to Identity.getProfile. See server.Call for documentation.

func (Identity_getProfile) AllocResults

AllocResults allocates the results struct.

func (Identity_getProfile) Args

Args returns the call's arguments.

type Identity_getProfile_Params

type Identity_getProfile_Params capnp.Struct

func NewIdentity_getProfile_Params

func NewIdentity_getProfile_Params(s *capnp.Segment) (Identity_getProfile_Params, error)

func NewRootIdentity_getProfile_Params

func NewRootIdentity_getProfile_Params(s *capnp.Segment) (Identity_getProfile_Params, error)

func ReadRootIdentity_getProfile_Params

func ReadRootIdentity_getProfile_Params(msg *capnp.Message) (Identity_getProfile_Params, error)

func (Identity_getProfile_Params) DecodeFromPtr

func (Identity_getProfile_Params) EncodeAsPtr

func (s Identity_getProfile_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Identity_getProfile_Params) IsValid

func (s Identity_getProfile_Params) IsValid() bool

func (Identity_getProfile_Params) Message

func (Identity_getProfile_Params) Segment

func (Identity_getProfile_Params) String

func (Identity_getProfile_Params) ToPtr

type Identity_getProfile_Params_Future

type Identity_getProfile_Params_Future struct{ *capnp.Future }

Identity_getProfile_Params_Future is a wrapper for a Identity_getProfile_Params promised by a client call.

func (Identity_getProfile_Params_Future) Struct

type Identity_getProfile_Params_List

type Identity_getProfile_Params_List = capnp.StructList[Identity_getProfile_Params]

Identity_getProfile_Params_List is a list of Identity_getProfile_Params.

func NewIdentity_getProfile_Params_List

func NewIdentity_getProfile_Params_List(s *capnp.Segment, sz int32) (Identity_getProfile_Params_List, error)

NewIdentity_getProfile_Params creates a new list of Identity_getProfile_Params.

type Identity_getProfile_Results

type Identity_getProfile_Results capnp.Struct

func NewIdentity_getProfile_Results

func NewIdentity_getProfile_Results(s *capnp.Segment) (Identity_getProfile_Results, error)

func NewRootIdentity_getProfile_Results

func NewRootIdentity_getProfile_Results(s *capnp.Segment) (Identity_getProfile_Results, error)

func ReadRootIdentity_getProfile_Results

func ReadRootIdentity_getProfile_Results(msg *capnp.Message) (Identity_getProfile_Results, error)

func (Identity_getProfile_Results) DecodeFromPtr

func (Identity_getProfile_Results) EncodeAsPtr

func (s Identity_getProfile_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Identity_getProfile_Results) HasProfile

func (s Identity_getProfile_Results) HasProfile() bool

func (Identity_getProfile_Results) IsValid

func (s Identity_getProfile_Results) IsValid() bool

func (Identity_getProfile_Results) Message

func (Identity_getProfile_Results) NewProfile

func (s Identity_getProfile_Results) NewProfile() (Profile, error)

NewProfile sets the profile field to a newly allocated Profile struct, preferring placement in s's segment.

func (Identity_getProfile_Results) Profile

func (s Identity_getProfile_Results) Profile() (Profile, error)

func (Identity_getProfile_Results) Segment

func (Identity_getProfile_Results) SetProfile

func (s Identity_getProfile_Results) SetProfile(v Profile) error

func (Identity_getProfile_Results) String

func (Identity_getProfile_Results) ToPtr

type Identity_getProfile_Results_Future

type Identity_getProfile_Results_Future struct{ *capnp.Future }

Identity_getProfile_Results_Future is a wrapper for a Identity_getProfile_Results promised by a client call.

func (Identity_getProfile_Results_Future) Profile

func (Identity_getProfile_Results_Future) Struct

type Identity_getProfile_Results_List

type Identity_getProfile_Results_List = capnp.StructList[Identity_getProfile_Results]

Identity_getProfile_Results_List is a list of Identity_getProfile_Results.

func NewIdentity_getProfile_Results_List

func NewIdentity_getProfile_Results_List(s *capnp.Segment, sz int32) (Identity_getProfile_Results_List, error)

NewIdentity_getProfile_Results creates a new list of Identity_getProfile_Results.

type Profile

type Profile capnp.Struct

func NewProfile

func NewProfile(s *capnp.Segment) (Profile, error)

func NewRootProfile

func NewRootProfile(s *capnp.Segment) (Profile, error)

func ReadRootProfile

func ReadRootProfile(msg *capnp.Message) (Profile, error)

func (Profile) DecodeFromPtr

func (Profile) DecodeFromPtr(p capnp.Ptr) Profile

func (Profile) DisplayName

func (s Profile) DisplayName() (util.LocalizedText, error)

func (Profile) EncodeAsPtr

func (s Profile) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Profile) HasDisplayName

func (s Profile) HasDisplayName() bool

func (Profile) HasPicture

func (s Profile) HasPicture() bool

func (Profile) HasPreferredHandle

func (s Profile) HasPreferredHandle() bool

func (Profile) IsValid

func (s Profile) IsValid() bool

func (Profile) Message

func (s Profile) Message() *capnp.Message

func (Profile) NewDisplayName

func (s Profile) NewDisplayName() (util.LocalizedText, error)

NewDisplayName sets the displayName field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.

func (Profile) Picture

func (s Profile) Picture() util.StaticAsset

func (Profile) PreferredHandle

func (s Profile) PreferredHandle() (string, error)

func (Profile) PreferredHandleBytes

func (s Profile) PreferredHandleBytes() ([]byte, error)

func (Profile) Pronouns

func (s Profile) Pronouns() Profile_Pronouns

func (Profile) Segment

func (s Profile) Segment() *capnp.Segment

func (Profile) SetDisplayName

func (s Profile) SetDisplayName(v util.LocalizedText) error

func (Profile) SetPicture

func (s Profile) SetPicture(v util.StaticAsset) error

func (Profile) SetPreferredHandle

func (s Profile) SetPreferredHandle(v string) error

func (Profile) SetPronouns

func (s Profile) SetPronouns(v Profile_Pronouns)

func (Profile) String

func (s Profile) String() string

func (Profile) ToPtr

func (s Profile) ToPtr() capnp.Ptr

type Profile_Future

type Profile_Future struct{ *capnp.Future }

Profile_Future is a wrapper for a Profile promised by a client call.

func (Profile_Future) DisplayName

func (p Profile_Future) DisplayName() util.LocalizedText_Future

func (Profile_Future) Picture

func (p Profile_Future) Picture() util.StaticAsset

func (Profile_Future) Struct

func (f Profile_Future) Struct() (Profile, error)

type Profile_List

type Profile_List = capnp.StructList[Profile]

Profile_List is a list of Profile.

func NewProfile_List

func NewProfile_List(s *capnp.Segment, sz int32) (Profile_List, error)

NewProfile creates a new list of Profile.

type Profile_Pronouns

type Profile_Pronouns uint16
const (
	Profile_Pronouns_neutral Profile_Pronouns = 0
	Profile_Pronouns_male    Profile_Pronouns = 1
	Profile_Pronouns_female  Profile_Pronouns = 2
	Profile_Pronouns_robot   Profile_Pronouns = 3
)

Values of Profile_Pronouns.

func Profile_PronounsFromString

func Profile_PronounsFromString(c string) Profile_Pronouns

Profile_PronounsFromString returns the enum value with a name, or the zero value if there's no such value.

func (Profile_Pronouns) String

func (c Profile_Pronouns) String() string

String returns the enum's constant name.

type Profile_Pronouns_List

type Profile_Pronouns_List = capnp.EnumList[Profile_Pronouns]

func NewProfile_Pronouns_List

func NewProfile_Pronouns_List(s *capnp.Segment, sz int32) (Profile_Pronouns_List, error)

type UserInfo

type UserInfo capnp.Struct

func NewRootUserInfo

func NewRootUserInfo(s *capnp.Segment) (UserInfo, error)

func NewUserInfo

func NewUserInfo(s *capnp.Segment) (UserInfo, error)

func ReadRootUserInfo

func ReadRootUserInfo(msg *capnp.Message) (UserInfo, error)

func (UserInfo) DecodeFromPtr

func (UserInfo) DecodeFromPtr(p capnp.Ptr) UserInfo

func (UserInfo) DeprecatedPermissionsBlob

func (s UserInfo) DeprecatedPermissionsBlob() ([]byte, error)

func (UserInfo) DisplayName

func (s UserInfo) DisplayName() (util.LocalizedText, error)

func (UserInfo) EncodeAsPtr

func (s UserInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (UserInfo) HasDeprecatedPermissionsBlob

func (s UserInfo) HasDeprecatedPermissionsBlob() bool

func (UserInfo) HasDisplayName

func (s UserInfo) HasDisplayName() bool

func (UserInfo) HasIdentity

func (s UserInfo) HasIdentity() bool

func (UserInfo) HasIdentityId

func (s UserInfo) HasIdentityId() bool

func (UserInfo) HasPermissions

func (s UserInfo) HasPermissions() bool

func (UserInfo) HasPictureUrl

func (s UserInfo) HasPictureUrl() bool

func (UserInfo) HasPreferredHandle

func (s UserInfo) HasPreferredHandle() bool

func (UserInfo) Identity

func (s UserInfo) Identity() Identity

func (UserInfo) IdentityId

func (s UserInfo) IdentityId() ([]byte, error)

func (UserInfo) IsValid

func (s UserInfo) IsValid() bool

func (UserInfo) Message

func (s UserInfo) Message() *capnp.Message

func (UserInfo) NewDisplayName

func (s UserInfo) NewDisplayName() (util.LocalizedText, error)

NewDisplayName sets the displayName field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.

func (UserInfo) NewPermissions

func (s UserInfo) NewPermissions(n int32) (capnp.BitList, error)

NewPermissions sets the permissions field to a newly allocated capnp.BitList, preferring placement in s's segment.

func (UserInfo) Permissions

func (s UserInfo) Permissions() (capnp.BitList, error)

func (UserInfo) PictureUrl

func (s UserInfo) PictureUrl() (string, error)

func (UserInfo) PictureUrlBytes

func (s UserInfo) PictureUrlBytes() ([]byte, error)

func (UserInfo) PreferredHandle

func (s UserInfo) PreferredHandle() (string, error)

func (UserInfo) PreferredHandleBytes

func (s UserInfo) PreferredHandleBytes() ([]byte, error)

func (UserInfo) Pronouns

func (s UserInfo) Pronouns() Profile_Pronouns

func (UserInfo) Segment

func (s UserInfo) Segment() *capnp.Segment

func (UserInfo) SetDeprecatedPermissionsBlob

func (s UserInfo) SetDeprecatedPermissionsBlob(v []byte) error

func (UserInfo) SetDisplayName

func (s UserInfo) SetDisplayName(v util.LocalizedText) error

func (UserInfo) SetIdentity

func (s UserInfo) SetIdentity(v Identity) error

func (UserInfo) SetIdentityId

func (s UserInfo) SetIdentityId(v []byte) error

func (UserInfo) SetPermissions

func (s UserInfo) SetPermissions(v capnp.BitList) error

func (UserInfo) SetPictureUrl

func (s UserInfo) SetPictureUrl(v string) error

func (UserInfo) SetPreferredHandle

func (s UserInfo) SetPreferredHandle(v string) error

func (UserInfo) SetPronouns

func (s UserInfo) SetPronouns(v Profile_Pronouns)

func (UserInfo) String

func (s UserInfo) String() string

func (UserInfo) ToPtr

func (s UserInfo) ToPtr() capnp.Ptr

type UserInfo_Future

type UserInfo_Future struct{ *capnp.Future }

UserInfo_Future is a wrapper for a UserInfo promised by a client call.

func (UserInfo_Future) DisplayName

func (p UserInfo_Future) DisplayName() util.LocalizedText_Future

func (UserInfo_Future) Identity

func (p UserInfo_Future) Identity() Identity

func (UserInfo_Future) Struct

func (f UserInfo_Future) Struct() (UserInfo, error)

type UserInfo_List

type UserInfo_List = capnp.StructList[UserInfo]

UserInfo_List is a list of UserInfo.

func NewUserInfo_List

func NewUserInfo_List(s *capnp.Segment, sz int32) (UserInfo_List, error)

NewUserInfo creates a new list of UserInfo.

Jump to

Keyboard shortcuts

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