Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusters
- func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha2.Cluster, opts v1.CreateOptions) (result *v1alpha2.Cluster, err error)
- func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Cluster, err error)
- func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterList, err error)
- func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.Cluster, err error)
- func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha2.Cluster, opts v1.UpdateOptions) (result *v1alpha2.Cluster, err error)
- func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeHosts
- func (c *FakeHosts) Create(ctx context.Context, host *v1alpha2.Host, opts v1.CreateOptions) (result *v1alpha2.Host, err error)
- func (c *FakeHosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Host, err error)
- func (c *FakeHosts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.HostList, err error)
- func (c *FakeHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.Host, err error)
- func (c *FakeHosts) Update(ctx context.Context, host *v1alpha2.Host, opts v1.UpdateOptions) (result *v1alpha2.Host, err error)
- func (c *FakeHosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeInstanceGroups
- func (c *FakeInstanceGroups) Create(ctx context.Context, instanceGroup *v1alpha2.InstanceGroup, ...) (result *v1alpha2.InstanceGroup, err error)
- func (c *FakeInstanceGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeInstanceGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeInstanceGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.InstanceGroup, err error)
- func (c *FakeInstanceGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.InstanceGroupList, err error)
- func (c *FakeInstanceGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.InstanceGroup, err error)
- func (c *FakeInstanceGroups) Update(ctx context.Context, instanceGroup *v1alpha2.InstanceGroup, ...) (result *v1alpha2.InstanceGroup, err error)
- func (c *FakeInstanceGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKeysets
- func (c *FakeKeysets) Create(ctx context.Context, keyset *v1alpha2.Keyset, opts v1.CreateOptions) (result *v1alpha2.Keyset, err error)
- func (c *FakeKeysets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeKeysets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeKeysets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Keyset, err error)
- func (c *FakeKeysets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.KeysetList, err error)
- func (c *FakeKeysets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.Keyset, err error)
- func (c *FakeKeysets) Update(ctx context.Context, keyset *v1alpha2.Keyset, opts v1.UpdateOptions) (result *v1alpha2.Keyset, err error)
- func (c *FakeKeysets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKopsV1alpha2
- func (c *FakeKopsV1alpha2) Clusters(namespace string) v1alpha2.ClusterInterface
- func (c *FakeKopsV1alpha2) Hosts(namespace string) v1alpha2.HostInterface
- func (c *FakeKopsV1alpha2) InstanceGroups(namespace string) v1alpha2.InstanceGroupInterface
- func (c *FakeKopsV1alpha2) Keysets(namespace string) v1alpha2.KeysetInterface
- func (c *FakeKopsV1alpha2) RESTClient() rest.Interface
- func (c *FakeKopsV1alpha2) SSHCredentials(namespace string) v1alpha2.SSHCredentialInterface
- type FakeSSHCredentials
- func (c *FakeSSHCredentials) Create(ctx context.Context, sSHCredential *v1alpha2.SSHCredential, ...) (result *v1alpha2.SSHCredential, err error)
- func (c *FakeSSHCredentials) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSSHCredentials) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSSHCredentials) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.SSHCredential, err error)
- func (c *FakeSSHCredentials) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.SSHCredentialList, err error)
- func (c *FakeSSHCredentials) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha2.SSHCredential, err error)
- func (c *FakeSSHCredentials) Update(ctx context.Context, sSHCredential *v1alpha2.SSHCredential, ...) (result *v1alpha2.SSHCredential, err error)
- func (c *FakeSSHCredentials) 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 FakeClusters ¶
type FakeClusters struct { Fake *FakeKopsV1alpha2 // contains filtered or unexported fields }
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha2.Cluster, opts v1.CreateOptions) (result *v1alpha2.Cluster, err error)
Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) Delete ¶
func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the cluster and deletes it. Returns an error if one occurs.
func (*FakeClusters) DeleteCollection ¶
func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusters) Get ¶
func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Cluster, err error)
Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any.
func (*FakeClusters) List ¶
func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterList, err error)
List takes label and field selectors, and returns the list of Clusters that match those selectors.
func (*FakeClusters) Patch ¶
func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Cluster, err error)
Patch applies the patch and returns the patched cluster.
func (*FakeClusters) Update ¶
func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha2.Cluster, opts v1.UpdateOptions) (result *v1alpha2.Cluster, err error)
Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) Watch ¶
func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusters.
type FakeHosts ¶ added in v1.29.0
type FakeHosts struct { Fake *FakeKopsV1alpha2 // contains filtered or unexported fields }
FakeHosts implements HostInterface
func (*FakeHosts) Create ¶ added in v1.29.0
func (c *FakeHosts) Create(ctx context.Context, host *v1alpha2.Host, opts v1.CreateOptions) (result *v1alpha2.Host, err error)
Create takes the representation of a host and creates it. Returns the server's representation of the host, and an error, if there is any.
func (*FakeHosts) Delete ¶ added in v1.29.0
Delete takes name of the host and deletes it. Returns an error if one occurs.
func (*FakeHosts) DeleteCollection ¶ added in v1.29.0
func (c *FakeHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeHosts) Get ¶ added in v1.29.0
func (c *FakeHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Host, err error)
Get takes name of the host, and returns the corresponding host object, and an error if there is any.
func (*FakeHosts) List ¶ added in v1.29.0
func (c *FakeHosts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.HostList, err error)
List takes label and field selectors, and returns the list of Hosts that match those selectors.
func (*FakeHosts) Patch ¶ added in v1.29.0
func (c *FakeHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Host, err error)
Patch applies the patch and returns the patched host.
func (*FakeHosts) Update ¶ added in v1.29.0
func (c *FakeHosts) Update(ctx context.Context, host *v1alpha2.Host, opts v1.UpdateOptions) (result *v1alpha2.Host, err error)
Update takes the representation of a host and updates it. Returns the server's representation of the host, and an error, if there is any.
type FakeInstanceGroups ¶
type FakeInstanceGroups struct { Fake *FakeKopsV1alpha2 // contains filtered or unexported fields }
FakeInstanceGroups implements InstanceGroupInterface
func (*FakeInstanceGroups) Create ¶
func (c *FakeInstanceGroups) Create(ctx context.Context, instanceGroup *v1alpha2.InstanceGroup, opts v1.CreateOptions) (result *v1alpha2.InstanceGroup, err error)
Create takes the representation of a instanceGroup and creates it. Returns the server's representation of the instanceGroup, and an error, if there is any.
func (*FakeInstanceGroups) Delete ¶
func (c *FakeInstanceGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the instanceGroup and deletes it. Returns an error if one occurs.
func (*FakeInstanceGroups) DeleteCollection ¶
func (c *FakeInstanceGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeInstanceGroups) Get ¶
func (c *FakeInstanceGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.InstanceGroup, err error)
Get takes name of the instanceGroup, and returns the corresponding instanceGroup object, and an error if there is any.
func (*FakeInstanceGroups) List ¶
func (c *FakeInstanceGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.InstanceGroupList, err error)
List takes label and field selectors, and returns the list of InstanceGroups that match those selectors.
func (*FakeInstanceGroups) Patch ¶
func (c *FakeInstanceGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.InstanceGroup, err error)
Patch applies the patch and returns the patched instanceGroup.
func (*FakeInstanceGroups) Update ¶
func (c *FakeInstanceGroups) Update(ctx context.Context, instanceGroup *v1alpha2.InstanceGroup, opts v1.UpdateOptions) (result *v1alpha2.InstanceGroup, err error)
Update takes the representation of a instanceGroup and updates it. Returns the server's representation of the instanceGroup, and an error, if there is any.
func (*FakeInstanceGroups) Watch ¶
func (c *FakeInstanceGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested instanceGroups.
type FakeKeysets ¶
type FakeKeysets struct { Fake *FakeKopsV1alpha2 // contains filtered or unexported fields }
FakeKeysets implements KeysetInterface
func (*FakeKeysets) Create ¶
func (c *FakeKeysets) Create(ctx context.Context, keyset *v1alpha2.Keyset, opts v1.CreateOptions) (result *v1alpha2.Keyset, err error)
Create takes the representation of a keyset and creates it. Returns the server's representation of the keyset, and an error, if there is any.
func (*FakeKeysets) Delete ¶
func (c *FakeKeysets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the keyset and deletes it. Returns an error if one occurs.
func (*FakeKeysets) DeleteCollection ¶
func (c *FakeKeysets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeKeysets) Get ¶
func (c *FakeKeysets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Keyset, err error)
Get takes name of the keyset, and returns the corresponding keyset object, and an error if there is any.
func (*FakeKeysets) List ¶
func (c *FakeKeysets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.KeysetList, err error)
List takes label and field selectors, and returns the list of Keysets that match those selectors.
func (*FakeKeysets) Patch ¶
func (c *FakeKeysets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Keyset, err error)
Patch applies the patch and returns the patched keyset.
func (*FakeKeysets) Update ¶
func (c *FakeKeysets) Update(ctx context.Context, keyset *v1alpha2.Keyset, opts v1.UpdateOptions) (result *v1alpha2.Keyset, err error)
Update takes the representation of a keyset and updates it. Returns the server's representation of the keyset, and an error, if there is any.
func (*FakeKeysets) Watch ¶
func (c *FakeKeysets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested keysets.
type FakeKopsV1alpha2 ¶
func (*FakeKopsV1alpha2) Clusters ¶
func (c *FakeKopsV1alpha2) Clusters(namespace string) v1alpha2.ClusterInterface
func (*FakeKopsV1alpha2) Hosts ¶ added in v1.29.0
func (c *FakeKopsV1alpha2) Hosts(namespace string) v1alpha2.HostInterface
func (*FakeKopsV1alpha2) InstanceGroups ¶
func (c *FakeKopsV1alpha2) InstanceGroups(namespace string) v1alpha2.InstanceGroupInterface
func (*FakeKopsV1alpha2) Keysets ¶
func (c *FakeKopsV1alpha2) Keysets(namespace string) v1alpha2.KeysetInterface
func (*FakeKopsV1alpha2) RESTClient ¶
func (c *FakeKopsV1alpha2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeKopsV1alpha2) SSHCredentials ¶
func (c *FakeKopsV1alpha2) SSHCredentials(namespace string) v1alpha2.SSHCredentialInterface
type FakeSSHCredentials ¶
type FakeSSHCredentials struct { Fake *FakeKopsV1alpha2 // contains filtered or unexported fields }
FakeSSHCredentials implements SSHCredentialInterface
func (*FakeSSHCredentials) Create ¶
func (c *FakeSSHCredentials) Create(ctx context.Context, sSHCredential *v1alpha2.SSHCredential, opts v1.CreateOptions) (result *v1alpha2.SSHCredential, err error)
Create takes the representation of a sSHCredential and creates it. Returns the server's representation of the sSHCredential, and an error, if there is any.
func (*FakeSSHCredentials) Delete ¶
func (c *FakeSSHCredentials) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the sSHCredential and deletes it. Returns an error if one occurs.
func (*FakeSSHCredentials) DeleteCollection ¶
func (c *FakeSSHCredentials) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSSHCredentials) Get ¶
func (c *FakeSSHCredentials) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.SSHCredential, err error)
Get takes name of the sSHCredential, and returns the corresponding sSHCredential object, and an error if there is any.
func (*FakeSSHCredentials) List ¶
func (c *FakeSSHCredentials) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.SSHCredentialList, err error)
List takes label and field selectors, and returns the list of SSHCredentials that match those selectors.
func (*FakeSSHCredentials) Patch ¶
func (c *FakeSSHCredentials) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.SSHCredential, err error)
Patch applies the patch and returns the patched sSHCredential.
func (*FakeSSHCredentials) Update ¶
func (c *FakeSSHCredentials) Update(ctx context.Context, sSHCredential *v1alpha2.SSHCredential, opts v1.UpdateOptions) (result *v1alpha2.SSHCredential, err error)
Update takes the representation of a sSHCredential and updates it. Returns the server's representation of the sSHCredential, and an error, if there is any.
func (*FakeSSHCredentials) Watch ¶
func (c *FakeSSHCredentials) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested sSHCredentials.