Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEnvironmentRoleBindings
- func (c *FakeEnvironmentRoleBindings) Create(environmentRoleBinding *jenkinsiov1.EnvironmentRoleBinding) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
- func (c *FakeEnvironmentRoleBindings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeEnvironmentRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeEnvironmentRoleBindings) Get(name string, options v1.GetOptions) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
- func (c *FakeEnvironmentRoleBindings) List(opts v1.ListOptions) (result *jenkinsiov1.EnvironmentRoleBindingList, err error)
- func (c *FakeEnvironmentRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
- func (c *FakeEnvironmentRoleBindings) Update(environmentRoleBinding *jenkinsiov1.EnvironmentRoleBinding) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
- func (c *FakeEnvironmentRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeEnvironments
- func (c *FakeEnvironments) Create(environment *jenkinsiov1.Environment) (result *jenkinsiov1.Environment, err error)
- func (c *FakeEnvironments) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeEnvironments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeEnvironments) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Environment, err error)
- func (c *FakeEnvironments) List(opts v1.ListOptions) (result *jenkinsiov1.EnvironmentList, err error)
- func (c *FakeEnvironments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Environment, err error)
- func (c *FakeEnvironments) Update(environment *jenkinsiov1.Environment) (result *jenkinsiov1.Environment, err error)
- func (c *FakeEnvironments) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGitServices
- func (c *FakeGitServices) Create(gitService *jenkinsiov1.GitService) (result *jenkinsiov1.GitService, err error)
- func (c *FakeGitServices) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeGitServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeGitServices) Get(name string, options v1.GetOptions) (result *jenkinsiov1.GitService, err error)
- func (c *FakeGitServices) List(opts v1.ListOptions) (result *jenkinsiov1.GitServiceList, err error)
- func (c *FakeGitServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.GitService, err error)
- func (c *FakeGitServices) Update(gitService *jenkinsiov1.GitService) (result *jenkinsiov1.GitService, err error)
- func (c *FakeGitServices) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeJenkinsV1
- func (c *FakeJenkinsV1) EnvironmentRoleBindings(namespace string) v1.EnvironmentRoleBindingInterface
- func (c *FakeJenkinsV1) Environments(namespace string) v1.EnvironmentInterface
- func (c *FakeJenkinsV1) GitServices(namespace string) v1.GitServiceInterface
- func (c *FakeJenkinsV1) PipelineActivities(namespace string) v1.PipelineActivityInterface
- func (c *FakeJenkinsV1) RESTClient() rest.Interface
- func (c *FakeJenkinsV1) Releases(namespace string) v1.ReleaseInterface
- func (c *FakeJenkinsV1) Teams(namespace string) v1.TeamInterface
- func (c *FakeJenkinsV1) Users(namespace string) v1.UserInterface
- type FakePipelineActivities
- func (c *FakePipelineActivities) Create(pipelineActivity *jenkinsiov1.PipelineActivity) (result *jenkinsiov1.PipelineActivity, err error)
- func (c *FakePipelineActivities) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePipelineActivities) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePipelineActivities) Get(name string, options v1.GetOptions) (result *jenkinsiov1.PipelineActivity, err error)
- func (c *FakePipelineActivities) List(opts v1.ListOptions) (result *jenkinsiov1.PipelineActivityList, err error)
- func (c *FakePipelineActivities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.PipelineActivity, err error)
- func (c *FakePipelineActivities) Update(pipelineActivity *jenkinsiov1.PipelineActivity) (result *jenkinsiov1.PipelineActivity, err error)
- func (c *FakePipelineActivities) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeReleases
- func (c *FakeReleases) Create(release *jenkinsiov1.Release) (result *jenkinsiov1.Release, err error)
- func (c *FakeReleases) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeReleases) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeReleases) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Release, err error)
- func (c *FakeReleases) List(opts v1.ListOptions) (result *jenkinsiov1.ReleaseList, err error)
- func (c *FakeReleases) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Release, err error)
- func (c *FakeReleases) Update(release *jenkinsiov1.Release) (result *jenkinsiov1.Release, err error)
- func (c *FakeReleases) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeTeams
- func (c *FakeTeams) Create(team *jenkinsiov1.Team) (result *jenkinsiov1.Team, err error)
- func (c *FakeTeams) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeTeams) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeTeams) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Team, err error)
- func (c *FakeTeams) List(opts v1.ListOptions) (result *jenkinsiov1.TeamList, err error)
- func (c *FakeTeams) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Team, err error)
- func (c *FakeTeams) Update(team *jenkinsiov1.Team) (result *jenkinsiov1.Team, err error)
- func (c *FakeTeams) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeUsers
- func (c *FakeUsers) Create(user *jenkinsiov1.User) (result *jenkinsiov1.User, err error)
- func (c *FakeUsers) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeUsers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *jenkinsiov1.User, err error)
- func (c *FakeUsers) List(opts v1.ListOptions) (result *jenkinsiov1.UserList, err error)
- func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.User, err error)
- func (c *FakeUsers) Update(user *jenkinsiov1.User) (result *jenkinsiov1.User, err error)
- func (c *FakeUsers) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEnvironmentRoleBindings ¶ added in v1.3.16
type FakeEnvironmentRoleBindings struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeEnvironmentRoleBindings implements EnvironmentRoleBindingInterface
func (*FakeEnvironmentRoleBindings) Create ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Create(environmentRoleBinding *jenkinsiov1.EnvironmentRoleBinding) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
Create takes the representation of a environmentRoleBinding and creates it. Returns the server's representation of the environmentRoleBinding, and an error, if there is any.
func (*FakeEnvironmentRoleBindings) Delete ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the environmentRoleBinding and deletes it. Returns an error if one occurs.
func (*FakeEnvironmentRoleBindings) DeleteCollection ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEnvironmentRoleBindings) Get ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Get(name string, options v1.GetOptions) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
Get takes name of the environmentRoleBinding, and returns the corresponding environmentRoleBinding object, and an error if there is any.
func (*FakeEnvironmentRoleBindings) List ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) List(opts v1.ListOptions) (result *jenkinsiov1.EnvironmentRoleBindingList, err error)
List takes label and field selectors, and returns the list of EnvironmentRoleBindings that match those selectors.
func (*FakeEnvironmentRoleBindings) Patch ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
Patch applies the patch and returns the patched environmentRoleBinding.
func (*FakeEnvironmentRoleBindings) Update ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Update(environmentRoleBinding *jenkinsiov1.EnvironmentRoleBinding) (result *jenkinsiov1.EnvironmentRoleBinding, err error)
Update takes the representation of a environmentRoleBinding and updates it. Returns the server's representation of the environmentRoleBinding, and an error, if there is any.
func (*FakeEnvironmentRoleBindings) Watch ¶ added in v1.3.16
func (c *FakeEnvironmentRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested environmentRoleBindings.
type FakeEnvironments ¶
type FakeEnvironments struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeEnvironments implements EnvironmentInterface
func (*FakeEnvironments) Create ¶
func (c *FakeEnvironments) Create(environment *jenkinsiov1.Environment) (result *jenkinsiov1.Environment, err error)
Create takes the representation of a environment and creates it. Returns the server's representation of the environment, and an error, if there is any.
func (*FakeEnvironments) Delete ¶
func (c *FakeEnvironments) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the environment and deletes it. Returns an error if one occurs.
func (*FakeEnvironments) DeleteCollection ¶
func (c *FakeEnvironments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeEnvironments) Get ¶
func (c *FakeEnvironments) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Environment, err error)
Get takes name of the environment, and returns the corresponding environment object, and an error if there is any.
func (*FakeEnvironments) List ¶
func (c *FakeEnvironments) List(opts v1.ListOptions) (result *jenkinsiov1.EnvironmentList, err error)
List takes label and field selectors, and returns the list of Environments that match those selectors.
func (*FakeEnvironments) Patch ¶
func (c *FakeEnvironments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Environment, err error)
Patch applies the patch and returns the patched environment.
func (*FakeEnvironments) Update ¶
func (c *FakeEnvironments) Update(environment *jenkinsiov1.Environment) (result *jenkinsiov1.Environment, err error)
Update takes the representation of a environment and updates it. Returns the server's representation of the environment, and an error, if there is any.
func (*FakeEnvironments) Watch ¶
func (c *FakeEnvironments) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested environments.
type FakeGitServices ¶ added in v1.0.114
type FakeGitServices struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeGitServices implements GitServiceInterface
func (*FakeGitServices) Create ¶ added in v1.0.114
func (c *FakeGitServices) Create(gitService *jenkinsiov1.GitService) (result *jenkinsiov1.GitService, err error)
Create takes the representation of a gitService and creates it. Returns the server's representation of the gitService, and an error, if there is any.
func (*FakeGitServices) Delete ¶ added in v1.0.114
func (c *FakeGitServices) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the gitService and deletes it. Returns an error if one occurs.
func (*FakeGitServices) DeleteCollection ¶ added in v1.0.114
func (c *FakeGitServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGitServices) Get ¶ added in v1.0.114
func (c *FakeGitServices) Get(name string, options v1.GetOptions) (result *jenkinsiov1.GitService, err error)
Get takes name of the gitService, and returns the corresponding gitService object, and an error if there is any.
func (*FakeGitServices) List ¶ added in v1.0.114
func (c *FakeGitServices) List(opts v1.ListOptions) (result *jenkinsiov1.GitServiceList, err error)
List takes label and field selectors, and returns the list of GitServices that match those selectors.
func (*FakeGitServices) Patch ¶ added in v1.0.114
func (c *FakeGitServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.GitService, err error)
Patch applies the patch and returns the patched gitService.
func (*FakeGitServices) Update ¶ added in v1.0.114
func (c *FakeGitServices) Update(gitService *jenkinsiov1.GitService) (result *jenkinsiov1.GitService, err error)
Update takes the representation of a gitService and updates it. Returns the server's representation of the gitService, and an error, if there is any.
func (*FakeGitServices) Watch ¶ added in v1.0.114
func (c *FakeGitServices) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested gitServices.
type FakeJenkinsV1 ¶
func (*FakeJenkinsV1) EnvironmentRoleBindings ¶ added in v1.3.16
func (c *FakeJenkinsV1) EnvironmentRoleBindings(namespace string) v1.EnvironmentRoleBindingInterface
func (*FakeJenkinsV1) Environments ¶
func (c *FakeJenkinsV1) Environments(namespace string) v1.EnvironmentInterface
func (*FakeJenkinsV1) GitServices ¶ added in v1.0.114
func (c *FakeJenkinsV1) GitServices(namespace string) v1.GitServiceInterface
func (*FakeJenkinsV1) PipelineActivities ¶ added in v1.0.84
func (c *FakeJenkinsV1) PipelineActivities(namespace string) v1.PipelineActivityInterface
func (*FakeJenkinsV1) RESTClient ¶
func (c *FakeJenkinsV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeJenkinsV1) Releases ¶ added in v1.0.90
func (c *FakeJenkinsV1) Releases(namespace string) v1.ReleaseInterface
func (*FakeJenkinsV1) Teams ¶ added in v1.3.146
func (c *FakeJenkinsV1) Teams(namespace string) v1.TeamInterface
func (*FakeJenkinsV1) Users ¶ added in v1.2.63
func (c *FakeJenkinsV1) Users(namespace string) v1.UserInterface
type FakePipelineActivities ¶ added in v1.0.84
type FakePipelineActivities struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakePipelineActivities implements PipelineActivityInterface
func (*FakePipelineActivities) Create ¶ added in v1.0.84
func (c *FakePipelineActivities) Create(pipelineActivity *jenkinsiov1.PipelineActivity) (result *jenkinsiov1.PipelineActivity, err error)
Create takes the representation of a pipelineActivity and creates it. Returns the server's representation of the pipelineActivity, and an error, if there is any.
func (*FakePipelineActivities) Delete ¶ added in v1.0.84
func (c *FakePipelineActivities) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the pipelineActivity and deletes it. Returns an error if one occurs.
func (*FakePipelineActivities) DeleteCollection ¶ added in v1.0.84
func (c *FakePipelineActivities) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePipelineActivities) Get ¶ added in v1.0.84
func (c *FakePipelineActivities) Get(name string, options v1.GetOptions) (result *jenkinsiov1.PipelineActivity, err error)
Get takes name of the pipelineActivity, and returns the corresponding pipelineActivity object, and an error if there is any.
func (*FakePipelineActivities) List ¶ added in v1.0.84
func (c *FakePipelineActivities) List(opts v1.ListOptions) (result *jenkinsiov1.PipelineActivityList, err error)
List takes label and field selectors, and returns the list of PipelineActivities that match those selectors.
func (*FakePipelineActivities) Patch ¶ added in v1.0.84
func (c *FakePipelineActivities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.PipelineActivity, err error)
Patch applies the patch and returns the patched pipelineActivity.
func (*FakePipelineActivities) Update ¶ added in v1.0.84
func (c *FakePipelineActivities) Update(pipelineActivity *jenkinsiov1.PipelineActivity) (result *jenkinsiov1.PipelineActivity, err error)
Update takes the representation of a pipelineActivity and updates it. Returns the server's representation of the pipelineActivity, and an error, if there is any.
func (*FakePipelineActivities) Watch ¶ added in v1.0.84
func (c *FakePipelineActivities) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pipelineActivities.
type FakeReleases ¶ added in v1.0.90
type FakeReleases struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeReleases implements ReleaseInterface
func (*FakeReleases) Create ¶ added in v1.0.90
func (c *FakeReleases) Create(release *jenkinsiov1.Release) (result *jenkinsiov1.Release, err error)
Create takes the representation of a release and creates it. Returns the server's representation of the release, and an error, if there is any.
func (*FakeReleases) Delete ¶ added in v1.0.90
func (c *FakeReleases) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the release and deletes it. Returns an error if one occurs.
func (*FakeReleases) DeleteCollection ¶ added in v1.0.90
func (c *FakeReleases) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeReleases) Get ¶ added in v1.0.90
func (c *FakeReleases) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Release, err error)
Get takes name of the release, and returns the corresponding release object, and an error if there is any.
func (*FakeReleases) List ¶ added in v1.0.90
func (c *FakeReleases) List(opts v1.ListOptions) (result *jenkinsiov1.ReleaseList, err error)
List takes label and field selectors, and returns the list of Releases that match those selectors.
func (*FakeReleases) Patch ¶ added in v1.0.90
func (c *FakeReleases) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Release, err error)
Patch applies the patch and returns the patched release.
func (*FakeReleases) Update ¶ added in v1.0.90
func (c *FakeReleases) Update(release *jenkinsiov1.Release) (result *jenkinsiov1.Release, err error)
Update takes the representation of a release and updates it. Returns the server's representation of the release, and an error, if there is any.
func (*FakeReleases) Watch ¶ added in v1.0.90
func (c *FakeReleases) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested releases.
type FakeTeams ¶ added in v1.3.146
type FakeTeams struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeTeams implements TeamInterface
func (*FakeTeams) Create ¶ added in v1.3.146
func (c *FakeTeams) Create(team *jenkinsiov1.Team) (result *jenkinsiov1.Team, err error)
Create takes the representation of a team and creates it. Returns the server's representation of the team, and an error, if there is any.
func (*FakeTeams) Delete ¶ added in v1.3.146
func (c *FakeTeams) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the team and deletes it. Returns an error if one occurs.
func (*FakeTeams) DeleteCollection ¶ added in v1.3.146
func (c *FakeTeams) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTeams) Get ¶ added in v1.3.146
func (c *FakeTeams) Get(name string, options v1.GetOptions) (result *jenkinsiov1.Team, err error)
Get takes name of the team, and returns the corresponding team object, and an error if there is any.
func (*FakeTeams) List ¶ added in v1.3.146
func (c *FakeTeams) List(opts v1.ListOptions) (result *jenkinsiov1.TeamList, err error)
List takes label and field selectors, and returns the list of Teams that match those selectors.
func (*FakeTeams) Patch ¶ added in v1.3.146
func (c *FakeTeams) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.Team, err error)
Patch applies the patch and returns the patched team.
func (*FakeTeams) Update ¶ added in v1.3.146
func (c *FakeTeams) Update(team *jenkinsiov1.Team) (result *jenkinsiov1.Team, err error)
Update takes the representation of a team and updates it. Returns the server's representation of the team, and an error, if there is any.
type FakeUsers ¶ added in v1.2.63
type FakeUsers struct { Fake *FakeJenkinsV1 // contains filtered or unexported fields }
FakeUsers implements UserInterface
func (*FakeUsers) Create ¶ added in v1.2.63
func (c *FakeUsers) Create(user *jenkinsiov1.User) (result *jenkinsiov1.User, err error)
Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any.
func (*FakeUsers) Delete ¶ added in v1.2.63
func (c *FakeUsers) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the user and deletes it. Returns an error if one occurs.
func (*FakeUsers) DeleteCollection ¶ added in v1.2.63
func (c *FakeUsers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeUsers) Get ¶ added in v1.2.63
func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *jenkinsiov1.User, err error)
Get takes name of the user, and returns the corresponding user object, and an error if there is any.
func (*FakeUsers) List ¶ added in v1.2.63
func (c *FakeUsers) List(opts v1.ListOptions) (result *jenkinsiov1.UserList, err error)
List takes label and field selectors, and returns the list of Users that match those selectors.
func (*FakeUsers) Patch ¶ added in v1.2.63
func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.User, err error)
Patch applies the patch and returns the patched user.
func (*FakeUsers) Update ¶ added in v1.2.63
func (c *FakeUsers) Update(user *jenkinsiov1.User) (result *jenkinsiov1.User, err error)
Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any.