Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePublicKeys
- func (c *FakePublicKeys) Create(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.CreateOptions) (result *v1alpha1.PublicKey, err error)
- func (c *FakePublicKeys) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePublicKeys) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePublicKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PublicKey, err error)
- func (c *FakePublicKeys) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PublicKeyList, err error)
- func (c *FakePublicKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PublicKey, err error)
- func (c *FakePublicKeys) Update(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.UpdateOptions) (result *v1alpha1.PublicKey, err error)
- func (c *FakePublicKeys) UpdateStatus(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.UpdateOptions) (*v1alpha1.PublicKey, error)
- func (c *FakePublicKeys) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSshV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePublicKeys ¶
type FakePublicKeys struct { Fake *FakeSshV1alpha1 // contains filtered or unexported fields }
FakePublicKeys implements PublicKeyInterface
func (*FakePublicKeys) Create ¶
func (c *FakePublicKeys) Create(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.CreateOptions) (result *v1alpha1.PublicKey, err error)
Create takes the representation of a publicKey and creates it. Returns the server's representation of the publicKey, and an error, if there is any.
func (*FakePublicKeys) Delete ¶
func (c *FakePublicKeys) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the publicKey and deletes it. Returns an error if one occurs.
func (*FakePublicKeys) DeleteCollection ¶
func (c *FakePublicKeys) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePublicKeys) Get ¶
func (c *FakePublicKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PublicKey, err error)
Get takes name of the publicKey, and returns the corresponding publicKey object, and an error if there is any.
func (*FakePublicKeys) List ¶
func (c *FakePublicKeys) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PublicKeyList, err error)
List takes label and field selectors, and returns the list of PublicKeys that match those selectors.
func (*FakePublicKeys) Patch ¶
func (c *FakePublicKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PublicKey, err error)
Patch applies the patch and returns the patched publicKey.
func (*FakePublicKeys) Update ¶
func (c *FakePublicKeys) Update(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.UpdateOptions) (result *v1alpha1.PublicKey, err error)
Update takes the representation of a publicKey and updates it. Returns the server's representation of the publicKey, and an error, if there is any.
func (*FakePublicKeys) UpdateStatus ¶
func (c *FakePublicKeys) UpdateStatus(ctx context.Context, publicKey *v1alpha1.PublicKey, opts v1.UpdateOptions) (*v1alpha1.PublicKey, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePublicKeys) Watch ¶
func (c *FakePublicKeys) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested publicKeys.
type FakeSshV1alpha1 ¶
func (*FakeSshV1alpha1) PublicKeys ¶
func (c *FakeSshV1alpha1) PublicKeys(namespace string) v1alpha1.PublicKeyInterface
func (*FakeSshV1alpha1) RESTClient ¶
func (c *FakeSshV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.