Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAccesses
- func (c *FakeAccesses) Create(ctx context.Context, access *v1alpha1.Access, opts v1.CreateOptions) (result *v1alpha1.Access, err error)
- func (c *FakeAccesses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAccesses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAccesses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Access, err error)
- func (c *FakeAccesses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AccessList, err error)
- func (c *FakeAccesses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Access, err error)
- func (c *FakeAccesses) Update(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (result *v1alpha1.Access, err error)
- func (c *FakeAccesses) UpdateStatus(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (*v1alpha1.Access, error)
- func (c *FakeAccesses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeServers
- func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error)
- func (c *FakeServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Server, err error)
- func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)
- func (c *FakeServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSshKeys
- func (c *FakeSshKeys) Create(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.CreateOptions) (result *v1alpha1.SshKey, err error)
- func (c *FakeSshKeys) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSshKeys) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSshKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SshKey, err error)
- func (c *FakeSshKeys) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SshKeyList, err error)
- func (c *FakeSshKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.SshKey, err error)
- func (c *FakeSshKeys) Update(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.UpdateOptions) (result *v1alpha1.SshKey, err error)
- func (c *FakeSshKeys) UpdateStatus(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.UpdateOptions) (*v1alpha1.SshKey, error)
- func (c *FakeSshKeys) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTransferV1alpha1
- func (c *FakeTransferV1alpha1) Accesses(namespace string) v1alpha1.AccessInterface
- func (c *FakeTransferV1alpha1) RESTClient() rest.Interface
- func (c *FakeTransferV1alpha1) Servers(namespace string) v1alpha1.ServerInterface
- func (c *FakeTransferV1alpha1) SshKeys(namespace string) v1alpha1.SshKeyInterface
- func (c *FakeTransferV1alpha1) Users(namespace string) v1alpha1.UserInterface
- type FakeUsers
- func (c *FakeUsers) Create(ctx context.Context, user *v1alpha1.User, opts v1.CreateOptions) (result *v1alpha1.User, err error)
- func (c *FakeUsers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeUsers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.User, err error)
- func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.UserList, err error)
- func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.User, err error)
- func (c *FakeUsers) Update(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (result *v1alpha1.User, err error)
- func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (*v1alpha1.User, error)
- func (c *FakeUsers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAccesses ¶ added in v0.5.0
type FakeAccesses struct { Fake *FakeTransferV1alpha1 // contains filtered or unexported fields }
FakeAccesses implements AccessInterface
func (*FakeAccesses) Create ¶ added in v0.5.0
func (c *FakeAccesses) Create(ctx context.Context, access *v1alpha1.Access, opts v1.CreateOptions) (result *v1alpha1.Access, err error)
Create takes the representation of a access and creates it. Returns the server's representation of the access, and an error, if there is any.
func (*FakeAccesses) Delete ¶ added in v0.5.0
func (c *FakeAccesses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the access and deletes it. Returns an error if one occurs.
func (*FakeAccesses) DeleteCollection ¶ added in v0.5.0
func (c *FakeAccesses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAccesses) Get ¶ added in v0.5.0
func (c *FakeAccesses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Access, err error)
Get takes name of the access, and returns the corresponding access object, and an error if there is any.
func (*FakeAccesses) List ¶ added in v0.5.0
func (c *FakeAccesses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AccessList, err error)
List takes label and field selectors, and returns the list of Accesses that match those selectors.
func (*FakeAccesses) Patch ¶ added in v0.5.0
func (c *FakeAccesses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Access, err error)
Patch applies the patch and returns the patched access.
func (*FakeAccesses) Update ¶ added in v0.5.0
func (c *FakeAccesses) Update(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (result *v1alpha1.Access, err error)
Update takes the representation of a access and updates it. Returns the server's representation of the access, and an error, if there is any.
func (*FakeAccesses) UpdateStatus ¶ added in v0.5.0
func (c *FakeAccesses) UpdateStatus(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (*v1alpha1.Access, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeAccesses) Watch ¶ added in v0.5.0
func (c *FakeAccesses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested accesses.
type FakeServers ¶
type FakeServers struct { Fake *FakeTransferV1alpha1 // contains filtered or unexported fields }
FakeServers implements ServerInterface
func (*FakeServers) Create ¶
func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)
Create takes the representation of a server and creates it. Returns the server's representation of the server, and an error, if there is any.
func (*FakeServers) Delete ¶
func (c *FakeServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the server and deletes it. Returns an error if one occurs.
func (*FakeServers) DeleteCollection ¶
func (c *FakeServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeServers) Get ¶
func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error)
Get takes name of the server, and returns the corresponding server object, and an error if there is any.
func (*FakeServers) List ¶
func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error)
List takes label and field selectors, and returns the list of Servers that match those selectors.
func (*FakeServers) Patch ¶
func (c *FakeServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Server, err error)
Patch applies the patch and returns the patched server.
func (*FakeServers) Update ¶
func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)
Update takes the representation of a server and updates it. Returns the server's representation of the server, and an error, if there is any.
func (*FakeServers) UpdateStatus ¶
func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeServers) Watch ¶
func (c *FakeServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested servers.
type FakeSshKeys ¶
type FakeSshKeys struct { Fake *FakeTransferV1alpha1 // contains filtered or unexported fields }
FakeSshKeys implements SshKeyInterface
func (*FakeSshKeys) Create ¶
func (c *FakeSshKeys) Create(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.CreateOptions) (result *v1alpha1.SshKey, err error)
Create takes the representation of a sshKey and creates it. Returns the server's representation of the sshKey, and an error, if there is any.
func (*FakeSshKeys) Delete ¶
func (c *FakeSshKeys) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the sshKey and deletes it. Returns an error if one occurs.
func (*FakeSshKeys) DeleteCollection ¶
func (c *FakeSshKeys) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSshKeys) Get ¶
func (c *FakeSshKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SshKey, err error)
Get takes name of the sshKey, and returns the corresponding sshKey object, and an error if there is any.
func (*FakeSshKeys) List ¶
func (c *FakeSshKeys) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SshKeyList, err error)
List takes label and field selectors, and returns the list of SshKeys that match those selectors.
func (*FakeSshKeys) Patch ¶
func (c *FakeSshKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SshKey, err error)
Patch applies the patch and returns the patched sshKey.
func (*FakeSshKeys) Update ¶
func (c *FakeSshKeys) Update(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.UpdateOptions) (result *v1alpha1.SshKey, err error)
Update takes the representation of a sshKey and updates it. Returns the server's representation of the sshKey, and an error, if there is any.
func (*FakeSshKeys) UpdateStatus ¶
func (c *FakeSshKeys) UpdateStatus(ctx context.Context, sshKey *v1alpha1.SshKey, opts v1.UpdateOptions) (*v1alpha1.SshKey, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSshKeys) Watch ¶
func (c *FakeSshKeys) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested sshKeys.
type FakeTransferV1alpha1 ¶
func (*FakeTransferV1alpha1) Accesses ¶ added in v0.5.0
func (c *FakeTransferV1alpha1) Accesses(namespace string) v1alpha1.AccessInterface
func (*FakeTransferV1alpha1) RESTClient ¶
func (c *FakeTransferV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeTransferV1alpha1) Servers ¶
func (c *FakeTransferV1alpha1) Servers(namespace string) v1alpha1.ServerInterface
func (*FakeTransferV1alpha1) SshKeys ¶
func (c *FakeTransferV1alpha1) SshKeys(namespace string) v1alpha1.SshKeyInterface
func (*FakeTransferV1alpha1) Users ¶
func (c *FakeTransferV1alpha1) Users(namespace string) v1alpha1.UserInterface
type FakeUsers ¶
type FakeUsers struct { Fake *FakeTransferV1alpha1 // contains filtered or unexported fields }
FakeUsers implements UserInterface
func (*FakeUsers) Create ¶
func (c *FakeUsers) Create(ctx context.Context, user *v1alpha1.User, opts v1.CreateOptions) (result *v1alpha1.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 ¶
Delete takes name of the user and deletes it. Returns an error if one occurs.
func (*FakeUsers) DeleteCollection ¶
func (c *FakeUsers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeUsers) Get ¶
func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 ¶
func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.UserList, err error)
List takes label and field selectors, and returns the list of Users that match those selectors.
func (*FakeUsers) Patch ¶
func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.User, err error)
Patch applies the patch and returns the patched user.
func (*FakeUsers) Update ¶
func (c *FakeUsers) Update(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (result *v1alpha1.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.
func (*FakeUsers) UpdateStatus ¶
func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (*v1alpha1.User, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().