{"modulePath":"github.com/WorldProgrammingLtd/dex","version":"v2.13.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is a generated protocol buffer package.\n\nIt is generated from these files:\n\n\tapi/api.proto\n\nIt has these top-level messages:\n\n\tClient\n\tCreateClientReq\n\tCreateClientResp\n\tDeleteClientReq\n\tDeleteClientResp\n\tPassword\n\tCreatePasswordReq\n\tCreatePasswordResp\n\tUpdatePasswordReq\n\tUpdatePasswordResp\n\tDeletePasswordReq\n\tDeletePasswordResp\n\tListPasswordReq\n\tListPasswordResp\n\tVersionReq\n\tVersionResp\n\tRefreshTokenRef\n\tListRefreshReq\n\tListRefreshResp\n\tRevokeRefreshReq\n\tRevokeRefreshResp\n\n## Functions\n\n```go\nfunc RegisterDexServer(s *grpc.Server, srv DexServer)\n```\n\n## Types\n\n```go\ntype Client struct {\n\tId           string   `protobuf:\"bytes,1,opt,name=id\" json:\"id,omitempty\"`\n\tSecret       string   `protobuf:\"bytes,2,opt,name=secret\" json:\"secret,omitempty\"`\n\tRedirectUris []string `protobuf:\"bytes,3,rep,name=redirect_uris,json=redirectUris\" json:\"redirect_uris,omitempty\"`\n\tTrustedPeers []string `protobuf:\"bytes,4,rep,name=trusted_peers,json=trustedPeers\" json:\"trusted_peers,omitempty\"`\n\tPublic       bool     `protobuf:\"varint,5,opt,name=public\" json:\"public,omitempty\"`\n\tName         string   `protobuf:\"bytes,6,opt,name=name\" json:\"name,omitempty\"`\n\tLogoUrl      string   `protobuf:\"bytes,7,opt,name=logo_url,json=logoUrl\" json:\"logo_url,omitempty\"`\n}\n```\nClient represents an OAuth2 client.\n\n```go\nfunc (*Client) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Client) GetId() string\n```\n\n```go\nfunc (m *Client) GetLogoUrl() string\n```\n\n```go\nfunc (m *Client) GetName() string\n```\n\n```go\nfunc (m *Client) GetPublic() bool\n```\n\n```go\nfunc (m *Client) GetRedirectUris() []string\n```\n\n```go\nfunc (m *Client) GetSecret() string\n```\n\n```go\nfunc (m *Client) GetTrustedPeers() []string\n```\n\n```go\nfunc (*Client) ProtoMessage()\n```\n\n```go\nfunc (m *Client) Reset()\n```\n\n```go\nfunc (m *Client) String() string\n```\n\n```go\ntype CreateClientReq struct {\n\tClient *Client `protobuf:\"bytes,1,opt,name=client\" json:\"client,omitempty\"`\n}\n```\nCreateClientReq is a request to make a client.\n\n```go\nfunc (*CreateClientReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CreateClientReq) GetClient() *Client\n```\n\n```go\nfunc (*CreateClientReq) ProtoMessage()\n```\n\n```go\nfunc (m *CreateClientReq) Reset()\n```\n\n```go\nfunc (m *CreateClientReq) String() string\n```\n\n```go\ntype CreateClientResp struct {\n\tAlreadyExists bool    `protobuf:\"varint,1,opt,name=already_exists,json=alreadyExists\" json:\"already_exists,omitempty\"`\n\tClient        *Client `protobuf:\"bytes,2,opt,name=client\" json:\"client,omitempty\"`\n}\n```\nCreateClientResp returns the response from creating a client.\n\n```go\nfunc (*CreateClientResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CreateClientResp) GetAlreadyExists() bool\n```\n\n```go\nfunc (m *CreateClientResp) GetClient() *Client\n```\n\n```go\nfunc (*CreateClientResp) ProtoMessage()\n```\n\n```go\nfunc (m *CreateClientResp) Reset()\n```\n\n```go\nfunc (m *CreateClientResp) String() string\n```\n\n```go\ntype CreatePasswordReq struct {\n\tPassword *Password `protobuf:\"bytes,1,opt,name=password\" json:\"password,omitempty\"`\n}\n```\nCreatePasswordReq is a request to make a password.\n\n```go\nfunc (*CreatePasswordReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CreatePasswordReq) GetPassword() *Password\n```\n\n```go\nfunc (*CreatePasswordReq) ProtoMessage()\n```\n\n```go\nfunc (m *CreatePasswordReq) Reset()\n```\n\n```go\nfunc (m *CreatePasswordReq) String() string\n```\n\n```go\ntype CreatePasswordResp struct {\n\tAlreadyExists bool `protobuf:\"varint,1,opt,name=already_exists,json=alreadyExists\" json:\"already_exists,omitempty\"`\n}\n```\nCreatePasswordResp returns the response from creating a password.\n\n```go\nfunc (*CreatePasswordResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CreatePasswordResp) GetAlreadyExists() bool\n```\n\n```go\nfunc (*CreatePasswordResp) ProtoMessage()\n```\n\n```go\nfunc (m *CreatePasswordResp) Reset()\n```\n\n```go\nfunc (m *CreatePasswordResp) String() string\n```\n\n```go\ntype DeleteClientReq struct {\n\t// The ID of the client.\n\tId string `protobuf:\"bytes,1,opt,name=id\" json:\"id,omitempty\"`\n}\n```\nDeleteClientReq is a request to delete a client.\n\n```go\nfunc (*DeleteClientReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *DeleteClientReq) GetId() string\n```\n\n```go\nfunc (*DeleteClientReq) ProtoMessage()\n```\n\n```go\nfunc (m *DeleteClientReq) Reset()\n```\n\n```go\nfunc (m *DeleteClientReq) String() string\n```\n\n```go\ntype DeleteClientResp struct {\n\tNotFound bool `protobuf:\"varint,1,opt,name=not_found,json=notFound\" json:\"not_found,omitempty\"`\n}\n```\nDeleteClientResp determines if the client is deleted successfully.\n\n```go\nfunc (*DeleteClientResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *DeleteClientResp) GetNotFound() bool\n```\n\n```go\nfunc (*DeleteClientResp) ProtoMessage()\n```\n\n```go\nfunc (m *DeleteClientResp) Reset()\n```\n\n```go\nfunc (m *DeleteClientResp) String() string\n```\n\n```go\ntype DeletePasswordReq struct {\n\tEmail string `protobuf:\"bytes,1,opt,name=email\" json:\"email,omitempty\"`\n}\n```\nDeletePasswordReq is a request to delete a password.\n\n```go\nfunc (*DeletePasswordReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *DeletePasswordReq) GetEmail() string\n```\n\n```go\nfunc (*DeletePasswordReq) ProtoMessage()\n```\n\n```go\nfunc (m *DeletePasswordReq) Reset()\n```\n\n```go\nfunc (m *DeletePasswordReq) String() string\n```\n\n```go\ntype DeletePasswordResp struct {\n\tNotFound bool `protobuf:\"varint,1,opt,name=not_found,json=notFound\" json:\"not_found,omitempty\"`\n}\n```\nDeletePasswordResp returns the response from deleting a password.\n\n```go\nfunc (*DeletePasswordResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *DeletePasswordResp) GetNotFound() bool\n```\n\n```go\nfunc (*DeletePasswordResp) ProtoMessage()\n```\n\n```go\nfunc (m *DeletePasswordResp) Reset()\n```\n\n```go\nfunc (m *DeletePasswordResp) String() string\n```\n\n```go\ntype DexClient interface {\n\t// CreateClient creates a client.\n\tCreateClient(ctx context.Context, in *CreateClientReq, opts ...grpc.CallOption) (*CreateClientResp, error)\n\t// DeleteClient deletes the provided client.\n\tDeleteClient(ctx context.Context, in *DeleteClientReq, opts ...grpc.CallOption) (*DeleteClientResp, error)\n\t// CreatePassword creates a password.\n\tCreatePassword(ctx context.Context, in *CreatePasswordReq, opts ...grpc.CallOption) (*CreatePasswordResp, error)\n\t// UpdatePassword modifies existing password.\n\tUpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordResp, error)\n\t// DeletePassword deletes the password.\n\tDeletePassword(ctx context.Context, in *DeletePasswordReq, opts ...grpc.CallOption) (*DeletePasswordResp, error)\n\t// ListPassword lists all password entries.\n\tListPasswords(ctx context.Context, in *ListPasswordReq, opts ...grpc.CallOption) (*ListPasswordResp, error)\n\t// GetVersion returns version information of the server.\n\tGetVersion(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error)\n\t// ListRefresh lists all the refresh token entries for a particular user.\n\tListRefresh(ctx context.Context, in *ListRefreshReq, opts ...grpc.CallOption) (*ListRefreshResp, error)\n\t// RevokeRefresh revokes the refresh token for the provided user-client pair.\n\t//\n\t// Note that each user-client pair can have only one refresh token at a time.\n\tRevokeRefresh(ctx context.Context, in *RevokeRefreshReq, opts ...grpc.CallOption) (*RevokeRefreshResp, error)\n}\n```\n\n```go\nfunc NewDexClient(cc *grpc.ClientConn) DexClient\n```\n\n```go\ntype DexServer interface {\n\t// CreateClient creates a client.\n\tCreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)\n\t// DeleteClient deletes the provided client.\n\tDeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)\n\t// CreatePassword creates a password.\n\tCreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)\n\t// UpdatePassword modifies existing password.\n\tUpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)\n\t// DeletePassword deletes the password.\n\tDeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)\n\t// ListPassword lists all password entries.\n\tListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)\n\t// GetVersion returns version information of the server.\n\tGetVersion(context.Context, *VersionReq) (*VersionResp, error)\n\t// ListRefresh lists all the refresh token entries for a particular user.\n\tListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)\n\t// RevokeRefresh revokes the refresh token for the provided user-client pair.\n\t//\n\t// Note that each user-client pair can have only one refresh token at a time.\n\tRevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)\n}\n```\n\n```go\ntype ListPasswordReq struct {\n}\n```\nListPasswordReq is a request to enumerate passwords.\n\n```go\nfunc (*ListPasswordReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*ListPasswordReq) ProtoMessage()\n```\n\n```go\nfunc (m *ListPasswordReq) Reset()\n```\n\n```go\nfunc (m *ListPasswordReq) String() string\n```\n\n```go\ntype ListPasswordResp struct {\n\tPasswords []*Password `protobuf:\"bytes,1,rep,name=passwords\" json:\"passwords,omitempty\"`\n}\n```\nListPasswordResp returns a list of passwords.\n\n```go\nfunc (*ListPasswordResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ListPasswordResp) GetPasswords() []*Password\n```\n\n```go\nfunc (*ListPasswordResp) ProtoMessage()\n```\n\n```go\nfunc (m *ListPasswordResp) Reset()\n```\n\n```go\nfunc (m *ListPasswordResp) String() string\n```\n\n```go\ntype ListRefreshReq struct {\n\t// The \"sub\" claim returned in the ID Token.\n\tUserId string `protobuf:\"bytes,1,opt,name=user_id,json=userId\" json:\"user_id,omitempty\"`\n}\n```\nListRefreshReq is a request to enumerate the refresh tokens of a user.\n\n```go\nfunc (*ListRefreshReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ListRefreshReq) GetUserId() string\n```\n\n```go\nfunc (*ListRefreshReq) ProtoMessage()\n```\n\n```go\nfunc (m *ListRefreshReq) Reset()\n```\n\n```go\nfunc (m *ListRefreshReq) String() string\n```\n\n```go\ntype ListRefreshResp struct {\n\tRefreshTokens []*RefreshTokenRef `protobuf:\"bytes,1,rep,name=refresh_tokens,json=refreshTokens\" json:\"refresh_tokens,omitempty\"`\n}\n```\nListRefreshResp returns a list of refresh tokens for a user.\n\n```go\nfunc (*ListRefreshResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef\n```\n\n```go\nfunc (*ListRefreshResp) ProtoMessage()\n```\n\n```go\nfunc (m *ListRefreshResp) Reset()\n```\n\n```go\nfunc (m *ListRefreshResp) String() string\n```\n\n```go\ntype Password struct {\n\tEmail string `protobuf:\"bytes,1,opt,name=email\" json:\"email,omitempty\"`\n\t// Currently we do not accept plain text passwords. Could be an option in the future.\n\tHash     []byte `protobuf:\"bytes,2,opt,name=hash,proto3\" json:\"hash,omitempty\"`\n\tUsername string `protobuf:\"bytes,3,opt,name=username\" json:\"username,omitempty\"`\n\tUserId   string `protobuf:\"bytes,4,opt,name=user_id,json=userId\" json:\"user_id,omitempty\"`\n}\n```\nPassword is an email for password mapping managed by the storage.\n\n```go\nfunc (*Password) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Password) GetEmail() string\n```\n\n```go\nfunc (m *Password) GetHash() []byte\n```\n\n```go\nfunc (m *Password) GetUserId() string\n```\n\n```go\nfunc (m *Password) GetUsername() string\n```\n\n```go\nfunc (*Password) ProtoMessage()\n```\n\n```go\nfunc (m *Password) Reset()\n```\n\n```go\nfunc (m *Password) String() string\n```\n\n```go\ntype RefreshTokenRef struct {\n\t// ID of the refresh token.\n\tId        string `protobuf:\"bytes,1,opt,name=id\" json:\"id,omitempty\"`\n\tClientId  string `protobuf:\"bytes,2,opt,name=client_id,json=clientId\" json:\"client_id,omitempty\"`\n\tCreatedAt int64  `protobuf:\"varint,5,opt,name=created_at,json=createdAt\" json:\"created_at,omitempty\"`\n\tLastUsed  int64  `protobuf:\"varint,6,opt,name=last_used,json=lastUsed\" json:\"last_used,omitempty\"`\n}\n```\nRefreshTokenRef contains the metadata for a refresh token that is managed by the storage.\n\n```go\nfunc (*RefreshTokenRef) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *RefreshTokenRef) GetClientId() string\n```\n\n```go\nfunc (m *RefreshTokenRef) GetCreatedAt() int64\n```\n\n```go\nfunc (m *RefreshTokenRef) GetId() string\n```\n\n```go\nfunc (m *RefreshTokenRef) GetLastUsed() int64\n```\n\n```go\nfunc (*RefreshTokenRef) ProtoMessage()\n```\n\n```go\nfunc (m *RefreshTokenRef) Reset()\n```\n\n```go\nfunc (m *RefreshTokenRef) String() string\n```\n\n```go\ntype RevokeRefreshReq struct {\n\t// The \"sub\" claim returned in the ID Token.\n\tUserId   string `protobuf:\"bytes,1,opt,name=user_id,json=userId\" json:\"user_id,omitempty\"`\n\tClientId string `protobuf:\"bytes,2,opt,name=client_id,json=clientId\" json:\"client_id,omitempty\"`\n}\n```\nRevokeRefreshReq is a request to revoke the refresh token of the user-client pair.\n\n```go\nfunc (*RevokeRefreshReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *RevokeRefreshReq) GetClientId() string\n```\n\n```go\nfunc (m *RevokeRefreshReq) GetUserId() string\n```\n\n```go\nfunc (*RevokeRefreshReq) ProtoMessage()\n```\n\n```go\nfunc (m *RevokeRefreshReq) Reset()\n```\n\n```go\nfunc (m *RevokeRefreshReq) String() string\n```\n\n```go\ntype RevokeRefreshResp struct {\n\t// Set to true is refresh token was not found and token could not be revoked.\n\tNotFound bool `protobuf:\"varint,1,opt,name=not_found,json=notFound\" json:\"not_found,omitempty\"`\n}\n```\nRevokeRefreshResp determines if the refresh token is revoked successfully.\n\n```go\nfunc (*RevokeRefreshResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *RevokeRefreshResp) GetNotFound() bool\n```\n\n```go\nfunc (*RevokeRefreshResp) ProtoMessage()\n```\n\n```go\nfunc (m *RevokeRefreshResp) Reset()\n```\n\n```go\nfunc (m *RevokeRefreshResp) String() string\n```\n\n```go\ntype UpdatePasswordReq struct {\n\t// The email used to lookup the password. This field cannot be modified\n\tEmail       string `protobuf:\"bytes,1,opt,name=email\" json:\"email,omitempty\"`\n\tNewHash     []byte `protobuf:\"bytes,2,opt,name=new_hash,json=newHash,proto3\" json:\"new_hash,omitempty\"`\n\tNewUsername string `protobuf:\"bytes,3,opt,name=new_username,json=newUsername\" json:\"new_username,omitempty\"`\n}\n```\nUpdatePasswordReq is a request to modify an existing password.\n\n```go\nfunc (*UpdatePasswordReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *UpdatePasswordReq) GetEmail() string\n```\n\n```go\nfunc (m *UpdatePasswordReq) GetNewHash() []byte\n```\n\n```go\nfunc (m *UpdatePasswordReq) GetNewUsername() string\n```\n\n```go\nfunc (*UpdatePasswordReq) ProtoMessage()\n```\n\n```go\nfunc (m *UpdatePasswordReq) Reset()\n```\n\n```go\nfunc (m *UpdatePasswordReq) String() string\n```\n\n```go\ntype UpdatePasswordResp struct {\n\tNotFound bool `protobuf:\"varint,1,opt,name=not_found,json=notFound\" json:\"not_found,omitempty\"`\n}\n```\nUpdatePasswordResp returns the response from modifying an existing password.\n\n```go\nfunc (*UpdatePasswordResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *UpdatePasswordResp) GetNotFound() bool\n```\n\n```go\nfunc (*UpdatePasswordResp) ProtoMessage()\n```\n\n```go\nfunc (m *UpdatePasswordResp) Reset()\n```\n\n```go\nfunc (m *UpdatePasswordResp) String() string\n```\n\n```go\ntype VersionReq struct {\n}\n```\nVersionReq is a request to fetch version info.\n\n```go\nfunc (*VersionReq) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*VersionReq) ProtoMessage()\n```\n\n```go\nfunc (m *VersionReq) Reset()\n```\n\n```go\nfunc (m *VersionReq) String() string\n```\n\n```go\ntype VersionResp struct {\n\t// Semantic version of the server.\n\tServer string `protobuf:\"bytes,1,opt,name=server\" json:\"server,omitempty\"`\n\t// Numeric version of the API. It increases everytime a new call is added to the API.\n\t// Clients should use this info to determine if the server supports specific features.\n\tApi int32 `protobuf:\"varint,2,opt,name=api\" json:\"api,omitempty\"`\n}\n```\nVersionResp holds the version info of components.\n\n```go\nfunc (*VersionResp) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *VersionResp) GetApi() int32\n```\n\n```go\nfunc (m *VersionResp) GetServer() string\n```\n\n```go\nfunc (*VersionResp) ProtoMessage()\n```\n\n```go\nfunc (m *VersionResp) Reset()\n```\n\n```go\nfunc (m *VersionResp) String() string\n```\n\n","path":"github.com/WorldProgrammingLtd/dex/api","name":"api","synopsis":"Package api is a generated protocol buffer package.","isRedistributable":true}
